|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--amber.server.component.ComponentHandler
This class handles the requirements for the manipulation of the packets moving to and from the actual components themselves.
ApplicationInterface,
XYConstraints, Serialized Form| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
protected java.lang.String |
actionCommand
String containing the action command name. |
protected boolean |
active
This variable enables/disables the ComponentHandler. |
static int |
ApplicationId
This constant defines that this is the client application ID. |
static int |
CancelReturn
Constant which defines the return value of the queryMessageBox function. |
protected AmberOutputStream |
dataEncoder
|
static long |
DefaultTimeout
The default timeout waiting for a packet. |
protected boolean |
enabledState
This flag maintains the enabled state of the control. |
protected java.io.ByteArrayOutputStream |
encoderBytes
The data encoding data stream that is used by all components to send information. |
protected int |
id
The ID of the corresponding remote component at the browser. |
static int |
InvalidId
This constant defines that the component ID is invalid. |
static int |
MaximumId
This constant defines the maximum possible component ID allowed. |
static int |
NoReturn
|
static int |
OkCancelType
|
static int |
OkReturn
|
static int |
OkType
Constant used to define the type of MessageBox displayed by the queryMessageBox function. |
static int |
OkYesReturn
|
protected ApplicationInterface |
parentPage
The Page Handler which will send the packets for this handler. |
protected java.util.Vector |
responsePackets
Vector containing response packets. |
protected long |
timeoutValue
The amount of time the component handler will wait for a response to a command. |
static int |
UnchangeableInvalidId
This constant defines that the component ID is invalid. |
protected boolean |
visibleState
This flag maintains the visible state of the control. |
static int |
YesNoCancelType
|
static int |
YesNoType
|
static int |
YesReturn
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ComponentHandler()
Default constructor. |
|
ComponentHandler(ApplicationInterface pageHandler)
The initialising constructor. |
|
ComponentHandler(int id,
ApplicationInterface pageHandler)
The initialising constructor. |
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
|
void |
addComponentListener(java.awt.event.ComponentListener l)
|
protected void |
addEventMask(int newEvents)
Adds in the specified events to the current event mask. |
void |
addFocusListener(java.awt.event.FocusListener l)
|
void |
addItemListener(java.awt.event.ItemListener l)
|
void |
addKeyListener(java.awt.event.KeyListener l)
|
void |
addMouseListener(java.awt.event.MouseListener l)
|
void |
addMouseMotionListener(java.awt.event.MouseMotionListener l)
|
void |
addNotify()
This function is analogous to the addNotify function in component. |
void |
addReceivedPacket(Packet packet)
Called by the ReceiveThread when a packet has been received. |
void |
addTextListener(java.awt.event.TextListener l)
|
void |
addWindowListener(ComponentWindowListener l)
Add a window listener to this component. |
int |
booleanToInt(boolean value)
|
protected PacketData |
createDataInput(Packet packet)
This function creates a data input stream from the data in the packet. |
void |
directPacket(Packet packet)
Called by the thread which needs to have the packet directed to a specific location. |
void |
displayMessageBox(java.lang.String title,
java.lang.String caption)
This function causes the corresponding component to display a modeless MessageBox type control. |
protected void |
fireWindowActivated(ComponentWindowEvent e)
|
protected void |
fireWindowClosed(ComponentWindowEvent e)
|
protected void |
fireWindowClosing(ComponentWindowEvent e)
|
protected void |
fireWindowDeactivated(ComponentWindowEvent e)
|
protected void |
fireWindowDeiconified(ComponentWindowEvent e)
|
protected void |
fireWindowEvent(PacketData packet)
This function creates a ComponentWindowEvent for the corresponding packet and sends it to all listeners. |
protected void |
fireWindowIconified(ComponentWindowEvent e)
|
protected void |
fireWindowOpened(ComponentWindowEvent e)
|
void |
forceComponentGetUrl(java.lang.String urlString)
This function tells the component to get the specified URL. |
void |
forceComponentGetUrl(java.lang.String urlString,
java.lang.String location)
This function tells the component to get the specified URL. |
void |
forwardEventPacket(Packet packet)
Called by the EventThread when a packet has been received. |
protected java.awt.event.ActionEvent |
generateActionEvent(int eventType,
PacketData packet)
This function generates an action event from the input packet. |
protected java.awt.event.FocusEvent |
generateFocusEvent(int eventType,
PacketData packet)
This function generates a focus event from the input packet. |
protected java.awt.event.ItemEvent |
generateItemEvent(int eventType,
PacketData packet)
This function generates an item event from the input packet. |
protected java.awt.event.KeyEvent |
generateKeyEvent(int eventType,
PacketData packet)
This function generates a key event from the input packet. |
protected java.awt.event.MouseEvent |
generateMouseEvent(int eventType,
PacketData packet)
This function generates a mouse event from the input packet. |
java.lang.String |
getActionCommand()
Returns the action command string contained in the action event should an action occur. |
java.awt.Rectangle |
getBounds()
Returns the bounds of the component at the remote client. |
java.lang.String |
getComponentStructure()
This function dumps component information about this page. |
java.lang.String |
getDefaultParameters()
This function returns the default parameters string required by the component. |
int |
getEventMask()
This function returns the current value of the event mask defining which events generated by the remote component will transmit events. |
FontCharacteristics |
getFontCharacteristics()
This function returns the font characteristics for the current font in the client object. |
FontCharacteristics |
getFontCharacteristics(java.lang.String text)
This function returns the font characteristics for the current font in the client object. |
FontCharacteristics |
getFontCharacteristics(java.lang.String text,
java.awt.Font font)
This function returns the font characteristics for the specified font in the client object. |
FontCharacteristics |
getFontCharacteristics(java.lang.String text,
java.lang.String fontName,
int fontStyle,
int fontSize)
This function returns the font characteristics for the specified font in the client object. |
int |
getFontStyle()
This returns the current style for the component. |
int |
getId()
This function gets the component ID. |
java.awt.Point |
getLocation()
Returns the location of the component at the remote client. |
Log |
getLog()
Returns the Log object. |
ApplicationInterface |
getModalObject()
Returns the current object which is receiving all input packets. |
abstract java.lang.String |
getPanelType()
This function returns the panel component to use with this class. |
ApplicationInterface |
getParentApplication()
This function gets the current page handler. |
ContainerHandler |
getParentContainer()
Get the parent container for this component. |
CoreInterface |
getParentServer()
Returns the original server which started this ApplicationInterface. |
protected PendingResponsePacket |
getResponsePacket(byte id,
boolean filled)
This function is used to locate a packet which is expected. |
java.lang.Object[] |
getSelectedObjects()
|
java.awt.Dimension |
getSize()
Returns the size of the component at the remote client. |
long |
getTimeout()
This function gets how long the component waits for a response to a command. |
int |
getValidId()
This function allocates a valid unused ID from a pool of ID's held within the Application. |
int |
getX()
|
int |
getY()
|
protected void |
handleMessages()
This function is called inside setComponentModal ( true ) It handles the input messaging which is performed normally by the ApplicationInterface if this function is not called NO INPUT PACKETS WILL BE PROCESSED. |
protected void |
handlePacket(PacketData packet)
This function handles base component commands. |
protected void |
internalForwardPacket(Packet packet)
Called by the internal processing loop to work out who to send the packet to. |
protected java.awt.Rectangle |
internalGetBounds()
|
boolean |
intToBoolean(int value)
|
boolean |
isActive()
This function returns the enabled/disabled state of the ComponentHandler. |
boolean |
isApplicationActive()
Returns the state of the parent application. |
protected boolean |
isComponentModal()
This function returns if the component is modal. |
boolean |
isConnected()
This function returns the state of the application handler. |
boolean |
isEnabled()
Returns if the component is enabled. |
boolean |
isMyId(int inId)
Checks that the unique ID passed to this page is handled by this ComponentHandler. |
boolean |
isVisible()
Returns if the component is visible. |
protected void |
processActionEvent(java.awt.event.ActionEvent e)
Processes action events occurring on this component by dispatching them to any registered listeners. |
protected void |
processComponentEvent(java.awt.event.ComponentEvent e)
Processes component events occurring on this component by dispatching them to any registered listeners. |
void |
processCurrentPacket(Packet packet)
This function receives the packet given to it by the ApplicationInterface. |
protected void |
processEvent(java.awt.AWTEvent e)
Processes events on this button. |
protected void |
processFocusEvent(java.awt.event.FocusEvent e)
Processes focus events occurring on this component by dispatching them to any registered listeners. |
protected void |
processItemEvent(java.awt.event.ItemEvent e)
Processes item events occurring on this component by dispatching them to any registered listeners. |
protected void |
processKeyEvent(java.awt.event.KeyEvent e)
Processes key events occurring on this component by dispatching them to any registered listeners. |
protected void |
processMouseEvent(java.awt.event.MouseEvent e)
Processes mouse events occurring on this component by dispatching them to any registered listeners. |
protected void |
processMouseMotionEvent(java.awt.event.MouseEvent e)
Processes mouse motion events occurring on this component by dispatching them to any registered listeners. |
protected void |
processNormalResponse(PacketData packet)
|
protected void |
processTextEvent(java.awt.event.TextEvent e)
Processes text events occurring on this component by dispatching them to any registered listeners. |
int |
queryMessageBox(java.lang.String title,
java.lang.String caption,
int type)
This function causes the corresponding component to display a modal MessageBox type control. |
void |
removeActionListener(java.awt.event.ActionListener l)
|
void |
removeComponentListener(java.awt.event.ComponentListener l)
|
protected void |
removeEventMask(int newEvents)
Removes the specified events from the current event mask. |
void |
removeFocusListener(java.awt.event.FocusListener l)
|
void |
removeItemListener(java.awt.event.ItemListener l)
|
void |
removeKeyListener(java.awt.event.KeyListener l)
|
void |
removeMouseListener(java.awt.event.MouseListener l)
|
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener l)
|
void |
removeNotify()
This function is the opposite of addNotify. |
void |
removeTextListener(java.awt.event.TextListener l)
|
void |
removeWindowListener(ComponentWindowListener l)
Remove a specified window listener. |
void |
requestFocus()
This function requests that this component get the input focus. |
void |
resetState()
This function resets the component to a default state. |
void |
restart(java.net.Socket newConnection)
This function restarts the functioning of the ApplicationInterface. |
void |
sendPacket(Packet packet)
This function is sends the created packet to the ApplicationInterface for transmission. |
protected PacketData |
sendPacketAndBlock(Packet packet,
byte responseId)
This function is similar to sendPacket in that it sends the created packet to the PageHandle for transmission. |
protected void |
sendPendingPackets()
This function is rarely called by outside classes. |
void |
setActionCommand(java.lang.String name)
Sets the action command string contained in the action event should an action occur. |
void |
setActive(boolean state)
This function tells the ComponentHandler that there is a corresponding remote component to communicate with and that the link is active. |
void |
setBackground(java.awt.Color background)
This function tells the component to set the specified drawing colours. |
protected void |
setComponentModal(boolean state)
This function allows the component to take over the handling of receiving events and received packets. |
void |
setConnectedState(boolean state)
This function will force the application to go active/inactive. |
void |
setCursor(java.awt.Cursor cursor)
This function sets the cursor to the specified type. |
void |
setEnabled(boolean state)
This function tells the component to become enabled/disabled. |
void |
setEventMask(int eventMask)
This function alters the events which the component listens to. |
void |
setFont(java.awt.Font font)
This function tells the component to set the font. |
void |
setFont(java.lang.String name,
int style,
int size)
This function tells the component to set the font. |
void |
setFontStyle(int style)
This function tells the component to set the font style only. |
void |
setForeground(java.awt.Color foreground)
This function tells the component to set the specified drawing colours. |
void |
setForegroundBackground(java.awt.Color foreground,
java.awt.Color background)
This function tells the component to set the specified drawing colours. |
void |
setId(int newId)
This function sets the component ID. |
void |
setLog(Log logFile)
Sets the Log for this ApplicationInterface. |
void |
setModalObject(ApplicationInterface object)
Sets the current object which is to receive all input packets. |
void |
setParentApplication(ApplicationInterface page)
This function sets the current page handler. |
void |
setParentContainer(ContainerHandler handler)
Set the parent container for this component. |
void |
setParentServer(CoreInterface server)
Sets the original server which started this ApplicationInterface. |
void |
setTimeout(long milliseconds)
This function specifies how long to wait for the component to respond to a command. |
void |
setVisible(boolean state)
This function tells the component to become visible/invisible. |
void |
setX(int newX)
|
void |
setY(int newY)
|
void |
shutDown()
This function attempts to shut down the page handler gracefully. |
void |
shutDownClient()
This function will force the client to shut down. |
void |
shutDownClient(java.lang.String message)
This function will force the client to shut down. |
void |
start(java.net.Socket newConnection)
This function initiates the functioning of the ApplicationInterface. |
| Methods inherited from class java.awt.Component |
action, add, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getToolkit, getTreeLock, getWidth, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, remove, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, update, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final long DefaultTimeout
public static final int UnchangeableInvalidId
public static final int InvalidId
public static final int ApplicationId
public static final int MaximumId
public static final int OkType
public static final int OkCancelType
public static final int YesNoType
public static final int YesNoCancelType
public static final int CancelReturn
public static final int OkYesReturn
public static final int OkReturn
public static final int YesReturn
public static final int NoReturn
protected int id
protected java.util.Vector responsePackets
protected ApplicationInterface parentPage
protected long timeoutValue
protected java.io.ByteArrayOutputStream encoderBytes
protected AmberOutputStream dataEncoder
protected java.lang.String actionCommand
protected boolean active
protected boolean visibleState
protected boolean enabledState
| Constructor Detail |
public ComponentHandler()
public ComponentHandler(ApplicationInterface pageHandler)
pageHandler - The handle to the main ApplicationInterface which handles the functions of page overall.
residing on the browser.
public ComponentHandler(int id,
ApplicationInterface pageHandler)
id - The int containing the id of the corresponding remote componentpageHandler - The handle to the main ApplicationInterface which handles the functions of page overall.
residing on the browser.| Method Detail |
public void processCurrentPacket(Packet packet)
throws ComponentHandlerException
packet - Packet containing the packet to handle.ComponentHandlerException - containing the error information.
protected PendingResponsePacket getResponsePacket(byte id,
boolean filled)
id - byte which is the expected return packet command.filled - boolean when true only objects which have packets are
searched otherwise objects without packets.
protected void handlePacket(PacketData packet)
throws ComponentHandlerException
packet - Packet containing the packet to handle.ComponentHandlerException - containing the error information.
protected void processNormalResponse(PacketData packet)
throws ComponentHandlerException
protected java.awt.event.ActionEvent generateActionEvent(int eventType,
PacketData packet)
throws ComponentHandlerException
eventType - int containing the event type. While this information is
contained in the packet it is more convenient to preprocess it in this form.packet - PacketData containing the packet to handle.ComponentHandlerException - containing any error.
protected java.awt.event.ItemEvent generateItemEvent(int eventType,
PacketData packet)
throws ComponentHandlerException
eventType - int containing the event type. While this information is
contained in the packet it is more convenient to preprocess it in this form.packet - PacketData containing the packet to handle.ComponentHandlerException - containing any error.
protected java.awt.event.KeyEvent generateKeyEvent(int eventType,
PacketData packet)
throws ComponentHandlerException
eventType - int containing the event type. While this information is
contained in the packet it is more convenient to preprocess it in this form.packet - PacketData containing the packet to handle.ComponentHandlerException - containing any error.
protected java.awt.event.MouseEvent generateMouseEvent(int eventType,
PacketData packet)
throws ComponentHandlerException
eventType - int containing the event type. While this information is
contained in the packet it is more convenient to preprocess it in this form.packet - PacketData containing the packet to handle.ComponentHandlerException - containing any error.
protected java.awt.event.FocusEvent generateFocusEvent(int eventType,
PacketData packet)
throws ComponentHandlerException
eventType - int containing the event type. While this information is
contained in the packet it is more convenient to preprocess it in this form.packet - PacketData containing the packet to handle.ComponentHandlerException - containing any error.public ApplicationInterface getParentApplication()
public boolean isApplicationActive()
public boolean isConnected()
isConnected in interface ApplicationInterfacepublic void resetState()
public ContainerHandler getParentContainer()
public void setParentContainer(ContainerHandler handler)
ContainerHandler - which is the parent of this Component.public void setParentApplication(ApplicationInterface page)
page - ApplicationInterface handle to the handler for the page.
public void sendPacket(Packet packet)
throws ApplicationHandlerException
sendPacket in interface ApplicationInterfacepacket - Packet containing the packet to send.ApplicationHandlerException - containing transmission errors.
protected PacketData sendPacketAndBlock(Packet packet,
byte responseId)
throws ComponentHandlerException
packet - Packet containing the packet to send.responseId - byte response value expected.java.server.exception.ComponentHandlerException - containing transmission errors.public void setId(int newId)
newId - int containing the id to set the component handler to.public int getId()
public boolean isMyId(int inId)
id - int component handler ID.public void addNotify()
addNotify in class java.awt.ComponentremoveNotify(),
Component.addNotify()public void removeNotify()
removeNotify in class java.awt.ComponentaddNotify(),
Component.removeNotify()protected PacketData createDataInput(Packet packet)
packet - Packet containing the data to decode.
public void forceComponentGetUrl(java.lang.String urlString)
throws ComponentHandlerException
urlString - String containing the URL to force the component to get.ComponentHandlerException - containing the error information.
public void forceComponentGetUrl(java.lang.String urlString,
java.lang.String location)
throws ComponentHandlerException
urlString - String containing the URL to force the component to get.location - String containing the location for the browser to put the URL.ComponentHandlerException - containing the error information.public void setForeground(java.awt.Color foreground)
setForeground in class java.awt.Componentforeground - Color containing the specified foreground colour.public void setBackground(java.awt.Color background)
setBackground in class java.awt.Componentbackground - Color containing the specified background colour.
public void setForegroundBackground(java.awt.Color foreground,
java.awt.Color background)
throws ComponentHandlerException
foreground - Color containing the specified foreground colour.background - Color containing the specified background colour.ComponentHandlerException - containing the error information.public void setFont(java.awt.Font font)
setFont in class java.awt.Componentfont - Font containing the specified font.java.lang.RuntimeException - containing the error information.public int getFontStyle()
public void setFontStyle(int style)
throws ComponentHandlerException
style - int containing the style of the font.java.lang.RuntimeException - containing the error information.Font.PLAIN,
Font.BOLD,
Font.ITALIC
public void setFont(java.lang.String name,
int style,
int size)
throws ComponentHandlerException
name - String containing the name of the font.style - int containing the style of the font.size - int containing the size of the font.java.lang.RuntimeException - containing the error information.public FontCharacteristics getFontCharacteristics()
public FontCharacteristics getFontCharacteristics(java.lang.String text)
text - This text is a String on which the length is to be computed.
This allows the string width of a text string to be determined.
public FontCharacteristics getFontCharacteristics(java.lang.String text,
java.awt.Font font)
text - This text is a String on which the length is to be computed.
This allows the string width of a text string to be determined.font - The font to use when determining the characteristics.
public FontCharacteristics getFontCharacteristics(java.lang.String text,
java.lang.String fontName,
int fontStyle,
int fontSize)
text - This text is a String on which the length is to be computed.
This allows the string width of a text string to be determined.fontName - The String name of the font to use when determining the characteristics.fontStyle - The int style of the font to use when determining the characteristics.fontSize - The int size of the font to use when determining the characteristics.public boolean isEnabled()
isEnabled in class java.awt.Componentpublic void setEnabled(boolean state)
setEnabled in class java.awt.Componentstate - boolean containing the enabled state for the control.java.lang.RuntimeException - containing the error information.
This exception is used to avoid conflict with the base Component function.public boolean isVisible()
isVisible in class java.awt.Componentpublic void setVisible(boolean state)
setVisible in class java.awt.Componentenabled - boolean containing the visible state for the control.java.lang.RuntimeException - containing the error information.
This exception is used to avoid conflict with the base Component function.public void requestFocus()
requestFocus in class java.awt.Componentjava.lang.RuntimeException - containing the error information.
This exception is used to avoid conflict with the base Component function.public long getTimeout()
public void setTimeout(long milliseconds)
milliseconds - long containing the number of milliseconds to wait.
public void displayMessageBox(java.lang.String title,
java.lang.String caption)
title - String containing the title of the MessageBox.caption - String containing the caption of the MessageBox.
public int queryMessageBox(java.lang.String title,
java.lang.String caption,
int type)
title - String containing the title of the MessageBox.caption - String containing the caption of the MessageBox.type - int defining the type of message box to display. These values
correspond to the constants in this class.RMessageBoxpublic void setCursor(java.awt.Cursor cursor)
setCursor in class java.awt.Componentcursor - Cursor containing the type of cursor to set.public void setConnectedState(boolean state)
setConnectedState in interface ApplicationInterface
public void setActive(boolean state)
throws ComponentHandlerException
state - boolean state which when true enables the component.
This is the default.ComponentHandlerException - with any errors.
protected void sendPendingPackets()
throws ComponentHandlerException
ComponentHandlerException - with any errors.public boolean isActive()
public int getEventMask()
RConstants
public void setEventMask(int eventMask)
throws ComponentHandlerException
eventMask - int containing the mask defining which events to
respond to. The value of this parameter is defined by the EventMask constants
in the RConstants object.ComponentHandlerException - containing the error information.RConstantspublic void setActionCommand(java.lang.String name)
name - String name to use.public java.lang.String getActionCommand()
public boolean intToBoolean(int value)
public int booleanToInt(boolean value)
protected void addEventMask(int newEvents)
newEvents - New Event mask bits to add to the current event mask.RConstantsprotected void removeEventMask(int newEvents)
newEvents - New Event mask bits to remove from the current event mask.RConstantspublic void addFocusListener(java.awt.event.FocusListener l)
addFocusListener in class java.awt.Componentpublic void removeFocusListener(java.awt.event.FocusListener l)
removeFocusListener in class java.awt.Componentpublic void addKeyListener(java.awt.event.KeyListener l)
addKeyListener in class java.awt.Componentpublic void removeKeyListener(java.awt.event.KeyListener l)
removeKeyListener in class java.awt.Componentpublic void addMouseListener(java.awt.event.MouseListener l)
addMouseListener in class java.awt.Componentpublic void removeMouseListener(java.awt.event.MouseListener l)
removeMouseListener in class java.awt.Componentpublic void addMouseMotionListener(java.awt.event.MouseMotionListener l)
addMouseMotionListener in class java.awt.Componentpublic void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
removeMouseMotionListener in class java.awt.Componentpublic void removeActionListener(java.awt.event.ActionListener l)
public void addActionListener(java.awt.event.ActionListener l)
public void removeTextListener(java.awt.event.TextListener l)
public void addTextListener(java.awt.event.TextListener l)
public void removeItemListener(java.awt.event.ItemListener l)
removeItemListener in interface java.awt.ItemSelectablepublic void addItemListener(java.awt.event.ItemListener l)
addItemListener in interface java.awt.ItemSelectablepublic void removeComponentListener(java.awt.event.ComponentListener l)
removeComponentListener in class java.awt.Componentpublic void addComponentListener(java.awt.event.ComponentListener l)
addComponentListener in class java.awt.Componentpublic java.lang.Object[] getSelectedObjects()
getSelectedObjects in interface java.awt.ItemSelectablepublic void setX(int newX)
public int getX()
getX in class java.awt.Componentpublic void setY(int newY)
public int getY()
getY in class java.awt.Component
protected void fireWindowEvent(PacketData packet)
throws ComponentHandlerException
packet - PacketData containing the window event.ComponentHandlerException - with any errors.public void removeWindowListener(ComponentWindowListener l)
l - ComponentWindowListener to remove.public void addWindowListener(ComponentWindowListener l)
l - ComponentWindowListener to respond to these windows events.public java.lang.String getComponentStructure()
protected void setComponentModal(boolean state)
state - boolean state of the modal system. The component becomes
modal when the state is true.public void setModalObject(ApplicationInterface object)
setModalObject in interface ApplicationInterfaceobject - ApplicationInterface which is the modal object.public ApplicationInterface getModalObject()
getModalObject in interface ApplicationInterfaceprotected boolean isComponentModal()
protected void handleMessages()
public void forwardEventPacket(Packet packet)
throws ApplicationException
forwardEventPacket in interface ApplicationInterfacepacket - Packet to forward to the specified component.
public void directPacket(Packet packet)
throws ApplicationException
directPacket in interface ApplicationInterfacepacket - Packet to forward to the specified component.
protected void internalForwardPacket(Packet packet)
throws ApplicationException
packet - Packet to forward to the specified component.
public void start(java.net.Socket newConnection)
throws java.lang.IllegalThreadStateException
start in interface ApplicationInterfacenewConnection - The Socket which is connected to the page in operation. If null uses the connection already set.java.lang.IllegalThreadStateException - containing any problems.
public void restart(java.net.Socket newConnection)
throws java.lang.IllegalThreadStateException
restart in interface ApplicationInterfacenewConnection - The Socket which is connected to the page in operation. If null uses the connection already set.java.lang.IllegalThreadStateException - containing any problems.public void addReceivedPacket(Packet packet)
addReceivedPacket in interface ApplicationInterfacepacket - Packet to forward to the specified component.public CoreInterface getParentServer()
getParentServer in interface ApplicationInterfacepublic void setParentServer(CoreInterface server)
setParentServer in interface ApplicationInterfaceserver - CoreInterface which is the parent server.public Log getLog()
getLog in interface ApplicationInterfacepublic void setLog(Log logFile)
setLog in interface ApplicationInterfacelogFile - Log object for logging.
public int getValidId()
throws ApplicationHandlerException
getValidId in interface ApplicationInterfaceApplicationHandlerException - should
the component ID overflow the maximum allowed.public void shutDown()
shutDown in interface ApplicationInterface
public void shutDownClient()
throws ApplicationHandlerException
shutDownClient in interface ApplicationInterfaceApplicationHandlerException - should
there be a messaging error.
public void shutDownClient(java.lang.String message)
throws ApplicationHandlerException
shutDownClient in interface ApplicationInterfacemessage - String optional message which the client will display
in a message box when the client is closed. A null value sends no
message and silently shuts down the client.ApplicationHandlerException - should
there be a messaging error.public java.awt.Rectangle getBounds()
getBounds in class java.awt.Componentpublic java.awt.Point getLocation()
getLocation in class java.awt.Componentpublic java.awt.Dimension getSize()
getSize in class java.awt.Componentprotected java.awt.Rectangle internalGetBounds()
protected void fireWindowOpened(ComponentWindowEvent e)
protected void fireWindowClosing(ComponentWindowEvent e)
protected void fireWindowClosed(ComponentWindowEvent e)
protected void fireWindowIconified(ComponentWindowEvent e)
protected void fireWindowDeiconified(ComponentWindowEvent e)
protected void fireWindowActivated(ComponentWindowEvent e)
protected void fireWindowDeactivated(ComponentWindowEvent e)
protected void processEvent(java.awt.AWTEvent e)
processEvent in class java.awt.Componente - AWTEvent to process.protected void processComponentEvent(java.awt.event.ComponentEvent e)
processComponentEvent in class java.awt.Componente - ComponentEvent to process.protected void processActionEvent(java.awt.event.ActionEvent e)
e - ActionEvent to process.protected void processTextEvent(java.awt.event.TextEvent e)
e - TextEvent to process.protected void processItemEvent(java.awt.event.ItemEvent e)
e - ItemEvent to process.protected void processFocusEvent(java.awt.event.FocusEvent e)
processFocusEvent in class java.awt.Componente - FocusEvent to process.protected void processKeyEvent(java.awt.event.KeyEvent e)
processKeyEvent in class java.awt.Componente - KeyEvent to process.protected void processMouseEvent(java.awt.event.MouseEvent e)
processMouseEvent in class java.awt.Componente - MouseEvent to process.protected void processMouseMotionEvent(java.awt.event.MouseEvent e)
processMouseMotionEvent in class java.awt.Componente - MouseEvent to process.public java.lang.String getDefaultParameters()
public abstract java.lang.String getPanelType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||