|
||||||||||
| 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.TextComponentHandler
|
+--amber.server.component.TextAreaHandler
This class handles the requirements for the manipulation of the packets moving to and from a TextArea component. It is designed to look like a standard TextArea and interacts with the ApplicationInterface as if the edit control were running on the server rather than the Browser.
The remote client class also responds to information stored in the parameters field of the XYConstraints object when this handler is added to a panel. The allowed parameters are separated in the string by '|' characters. Any unused trailing parameters are optional and will assume default values, however the parameter order is fixed.
For example, if the component takes 4 parameters which are ints, a valid parameter string would be:
"1|2|3"
In this case the fourth parameter would assume the default value.
The parameter elements for this component are:
| Name | Type | Description | Repeats | Default |
|---|---|---|---|---|
| Text | String | The text entered into the text area | No |
ApplicationInterface,
ComponentHandler,
TextComponentHandler,
XYConstraints, Serialized Form| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
static byte |
AppendText
|
static byte |
InsertText
|
static byte |
ReplaceRange
|
| Fields inherited from class amber.server.component.TextComponentHandler |
GetCaret, GetCaretResponse, GetSelectedText, GetSelectedTextResponse, GetSelection, GetSelectionResponse, GetText, GetTextResponse, Select, SelectAll, SelectBoth, SelectEnd, SelectStart, SetCaret, SetEditable, SetText, TextComponentNextAvailableCommand |
| 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 | |
TextAreaHandler()
Default constructor. |
|
TextAreaHandler(ApplicationInterface pageHandler)
The initialising constructor. |
|
TextAreaHandler(int id,
ApplicationInterface pageHandler)
The initialising constructor. |
|
| Method Summary | |
void |
append(java.lang.String item)
Appends text to the end of the text area. |
java.lang.String |
getPanelType()
This function returns the panel component to use with this class. |
void |
insert(java.lang.String item,
int position)
Inserts text to the text area at the specified location. |
void |
replaceRange(java.lang.String item,
int start,
int end)
Replaces the specified range of text with the new text specified. |
| Methods inherited from class amber.server.component.TextComponentHandler |
getCaretPosition, getSelectedText, getSelectionEnd, getSelectionPoints, getSelectionStart, getText, isEditable, select, selectAll, setCaretPosition, setEditable, setSelectionEnd, setSelectionPoints, setSelectionStart, setText |
| 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 byte AppendText
public static final byte InsertText
public static final byte ReplaceRange
| Constructor Detail |
public TextAreaHandler()
public TextAreaHandler(ApplicationInterface pageHandler)
pageHandler - The handle to the main ApplicationInterface which handles the functions of page overall.
residing on the browser.
public TextAreaHandler(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 void append(java.lang.String item)
throws ComponentHandlerException
item - String to append to the end of the current text.ComponentHandlerException - containing any errors.
public void insert(java.lang.String item,
int position)
throws ComponentHandlerException
item - String to insert into the current text.position - int containing the point in the text to insert.ComponentHandlerException - containing any errors.
public void replaceRange(java.lang.String item,
int start,
int end)
throws ComponentHandlerException
item - String to use to replace the current text.start - int starting position of the text to replace.end - int ending position of the text to replace.ComponentHandlerException - containing any 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 | |||||||||