|
||||||||||
| 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
|
+--amber.server.component.MenuComponentHandler
This class corresponds to a standard java.awt.MenuComponent component. It differs in terms of being Amber aware. For this reason the component communicates with the remote client to perform the standard operations.
BaseComponent, Serialized Form| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
protected java.lang.String |
name
|
protected MenuContainer |
parent
|
| Fields inherited from class amber.server.component.ComponentHandler |
actionCommand, active, ApplicationId, CancelReturn, dataEncoder, DefaultTimeout, enabledState, encoderBytes, id, InvalidId, MaximumId, NoReturn, OkCancelType, OkReturn, OkType, OkYesReturn, parentPage, responsePackets, timeoutValue, UnchangeableInvalidId, visibleState, YesNoCancelType, YesNoType, 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 | |
MenuComponentHandler()
|
|
MenuComponentHandler(ApplicationInterface pageHandler)
The initialising constructor. |
|
MenuComponentHandler(int id,
ApplicationInterface pageHandler)
The initialising constructor. |
|
| Method Summary | |
int |
getId()
Overridden function to ensure that the base id is altered to match the internal base offset. |
int |
getIdBaseOffset(int id)
Converts the input ID into the corresponding ID given the base offset the main menu must use. |
MenuContainer |
getMenuParent()
Returns the parent container for this menu component. |
java.lang.String |
getName()
Gets the name of the menu component. |
java.lang.String |
getPanelType()
This function returns the panel component to use with this class. |
MenuContainer |
getTopMenuParent()
Returns the top parent container for this menu component. |
boolean |
isMyId(int inId)
Checks that the unique ID passed to this page is handled by this ComponentHandler. |
protected java.lang.String |
paramString()
Returns the parameter string representing the state of this menu component. |
int |
removeIdBaseOffset(int id)
Converts the input ID into the corresponding internal ID by removing the menu base offset. |
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. |
void |
setName(java.lang.String name)
Sets the name of the component to the specified string. |
java.lang.String |
toString()
Returns a representation of this menu component as a string. |
| 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, 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, 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, setSize, setSize, show, show, size, transferFocus, update, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected MenuContainer parent
protected java.lang.String name
| Constructor Detail |
public MenuComponentHandler()
public MenuComponentHandler(ApplicationInterface pageHandler)
pageHandler - The handle to the main ApplicationInterface which handles the functions of page overall.
residing on the browser.
public MenuComponentHandler(int id,
ApplicationInterface pageHandler)
id - The int containing the id of the corresponding remote component
residing on the browser.pageHandler - The handle to the main ApplicationInterface which handles the functions of page overall.| Method Detail |
public java.lang.String getName()
getName in class java.awt.ComponentMenuComponent.setName(java.lang.String)public void setName(java.lang.String name)
setName in class java.awt.Componentname - the name of the menu component.MenuComponent.getName()public MenuContainer getMenuParent()
public MenuContainer getTopMenuParent()
public int getIdBaseOffset(int id)
id - int which is the menu item ID.public int removeIdBaseOffset(int id)
id - int which is the menu item ID.public boolean isMyId(int inId)
isMyId in class ComponentHandlerid - int component handler ID.public int getId()
getId in class ComponentHandlerprotected java.lang.String paramString()
paramString in class java.awt.Componentpublic java.lang.String toString()
toString in class java.awt.Component
public void sendPacket(Packet packet)
throws ApplicationHandlerException
ComponentHandlersendPacket in class ComponentHandleramber.server.component.ComponentHandlerpacket - Packet containing the packet to send.ApplicationHandlerException - containing transmission errors.
protected PacketData sendPacketAndBlock(Packet packet,
byte responseId)
throws ComponentHandlerException
sendPacketAndBlock in class ComponentHandlerpacket - Packet containing the packet to send.responseId - byte response value expected.ComponentHandlerException - containing transmission errors.public java.lang.String getPanelType()
getPanelType in class ComponentHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||