|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
amber.server.application.ApplicationHandler
AppletInterface.StockTradingApplication
| Field Summary | |
private UserAddress_Data |
address
|
private LoginFrame |
frmLogin
Declare any panels or frames this application uses. |
private Stock_Data[] |
stocks
|
private User_Data |
user
|
| Fields inherited from class amber.server.application.ApplicationHandler |
closeableObjects, connection, eventHandler, input, loggingFile, output, packetHandler, pageId, pageSubId, parentServer, receivedPackets, receiver, sender, sessionInfo, waitForClientShutDown, waitForPacket |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
StockTradingApplication()
This is the constructor for StockTradingApplication.java |
|
StockTradingApplication(int appIdentifier)
The initialising constructor. |
|
StockTradingApplication(int appIdentifier,
java.net.Socket newConnection)
The initialising constructor. |
|
| Method Summary | |
protected void |
defineComponents()
Do initialisation that needs to be done within the constructor, eg add any panels/frames this application uses. |
UserAddress_Data |
getAddress()
This method is being used for getting the address details. |
amber.type.server.XYConstraints |
getCentredWindowXYConstraints(int windowWidth,
int windowHeight)
This method is being used for getting appropriate x, and y co- ordinates to support the specified width and height. |
Stock_Data[] |
getStocks()
Method: getStocks This method is being used for getting all the stocks. |
User_Data |
getUser()
This method is being used for getting user details. |
void |
setAddress(UserAddress_Data a)
This method is being used for setting the address data. |
void |
setUp()
This function is called when the program first starts. |
void |
setUser(User_Data u)
This method is being used for setting user details. |
void |
start(java.net.Socket newConnection)
This function initiates the functioning of the ApplicationHandler. |
| Methods inherited from class amber.server.application.ApplicationHandler |
activateChildren, add, addCloseable, addComponent, addComponent, addInPostPacketListener, addInPrePacketListener, addOutPostPacketListener, addOutPrePacketListener, addReceivedPacket, computeMaximumDimensions, directPacket, encodeComponentState, fireInPostPacketPerformed, fireInPrePacketPerformed, fireOutPostPacketPerformed, fireOutPrePacketPerformed, forwardEventPacket, getAllCloseable, getClientScreenSize, getComponents, getConnection, getLog, getModalObject, getPageId, getPageSubId, getParentServer, getRemoteProperties, getSessionId, getValidId, isAlreadyCreated, isConnected, isMyPageId, isMyPageId, isSpecialPacket, logComponentStructure, processApplicationPacket, remove, removeCloseable, removeInPostPacketListener, removeInPrePacketListener, removeOutPostPacketListener, removeOutPrePacketListener, restart, run, sendPacket, sendReconnectionState, sendSessionInitialisationState, setClientScreenSize, setComponents, setConnectedState, setInitialValidId, setLog, setModalObject, setPageId, setPageSubId, setParentServer, setRemoteProperties, setSize, setUpComponent, setUpComponent, shutDown, shutDownClient, shutDownClient, start, terminateThreads |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private UserAddress_Data address
private LoginFrame frmLogin
private Stock_Data[] stocks
private User_Data user
| Constructor Detail |
public StockTradingApplication()
throws java.io.IOException
public StockTradingApplication(int appIdentifier)
throws java.io.IOException
appIdentifier - An int uniquely identifying this instance of application.
public StockTradingApplication(int appIdentifier,
java.net.Socket newConnection)
throws java.io.IOException
appIdentifier - An int uniquely identifying this instance of application.newConnection - The Socket which is connected to the page in operation.| Method Detail |
protected void defineComponents()
public UserAddress_Data getAddress()
public amber.type.server.XYConstraints getCentredWindowXYConstraints(int windowWidth,
int windowHeight)
windowWidth - Width of the frame.windowHeight - Height of the frame.
public Stock_Data[] getStocks()
public User_Data getUser()
public void setAddress(UserAddress_Data a)
a - The address details.
public void setUp()
public void setUser(User_Data u)
u - The user details.
public void start(java.net.Socket newConnection)
throws java.lang.IllegalThreadStateException
newConnection - The Socket which is connected to the page in operation. If null uses the connection already set.
java.lang.IllegalThreadStateException - containing any problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||