|
||||||||||
| 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.PanelHandler
|
+--amber.server.panel.BasePanel
|
+--amber.server.panel.BaseFrame
|
+--amber.server.panel.ModalBaseFrame
|
+--amber.server.panel.TextInputDialog
This class allows a user to enter a single line of text.
ModalBaseFrame, Serialized Form| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
static int |
BaseHeight
The starting height of this dialog. |
static int |
BaseWidth
The starting width of this dialog. |
static java.lang.String |
DefaultCaption
This is the default caption for the dialog. |
static java.lang.String |
DefaultTitle
This is the default title for the dialog. |
static long |
TextInputDialogTimeout
This constant defines how long the dialog will wait for the remote user. |
| Fields inherited from class amber.server.panel.BaseFrame |
title |
| Fields inherited from class amber.server.panel.BasePanel |
autoDoLayoutState, xOffset, yOffset |
| Fields inherited from class amber.server.component.PanelHandler |
AddOperation, autoRedrawState, drawOperations, InsertOperation, PaintPanel, PanelNextAvailableCommand, postInPacketListeners, preInPacketListeners, RemoveAllOperations, RemoveOperation, ReplaceOperation, SetBorder, SetReDraw |
| 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 amber.server.panel.ContainerHandler |
AddComponent, AutoDoLayout, ForceDoLayout, GetInsets, GetInsetsResponse, NextAvailableCommand, RemoveAllComponents, RemoveComponent, SetBounds |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
TextInputDialog()
Default constructor. |
|
TextInputDialog(ApplicationInterface appHandler)
The initialising constructor. |
|
TextInputDialog(ApplicationInterface appHandler,
java.lang.String title)
The initialising constructor. |
|
TextInputDialog(ApplicationInterface appHandler,
java.lang.String title,
java.lang.String caption)
The initialising constructor. |
|
TextInputDialog(int id,
ApplicationInterface appHandler,
java.lang.String title,
java.lang.String caption)
The initialising constructor. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
protected void |
defineComponents()
This function is called to define the components which are a part of this template. |
void |
fillControls()
This function should be called at the end of recreatePanel. |
java.lang.String |
getCaption()
Gets the caption of this dialog. |
java.lang.String |
getText()
Returns the text in the edit control. |
void |
setCaption(java.lang.String caption)
Sets the caption of this dialog. |
void |
setText(java.lang.String text)
Sets the text of the text field in the entry dialog. |
void |
windowActivated(ComponentWindowEvent e)
This is called when a window is activated. |
void |
windowClosed(ComponentWindowEvent e)
This is called when a window has been closed. |
void |
windowClosing(ComponentWindowEvent e)
This is called when the window is in the process of being closed. |
void |
windowDeactivated(ComponentWindowEvent e)
This is called when a window is de-activated. |
void |
windowDeiconified(ComponentWindowEvent e)
This is called when a window is de-iconified. |
void |
windowIconified(ComponentWindowEvent e)
This is called when a window is iconified. |
void |
windowOpened(ComponentWindowEvent e)
This function is invoked when a window has been opened. |
| Methods inherited from class amber.server.panel.ModalBaseFrame |
canClose, saveData, show |
| Methods inherited from class amber.server.panel.BaseFrame |
getPanelType, getTitle, isVisible, setActive, setBounds, setBounds, setInternalBounds, setInternalBounds, setInternalLocation, setInternalLocation, setInternalSize, setInternalSize, setLocation, setLocation, setSize, setSize, setTitle, setVisible, toBack, toFront |
| 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, setComponentOrientation, setDropTarget, setLocale, setName, 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 TextInputDialogTimeout
public static final int BaseWidth
public static final int BaseHeight
public static final java.lang.String DefaultTitle
public static final java.lang.String DefaultCaption
| Constructor Detail |
public TextInputDialog()
public TextInputDialog(ApplicationInterface appHandler)
appHandler - The handle to the main ApplicationInterface which handles the functions of page overall.
public TextInputDialog(ApplicationInterface appHandler,
java.lang.String title)
appHandler - The handle to the main ApplicationInterface which handles the functions of page overall.title - String title of the window.
public TextInputDialog(ApplicationInterface appHandler,
java.lang.String title,
java.lang.String caption)
appHandler - The handle to the main ApplicationInterface which handles the functions of page overall.title - String title of the window.caption - String containing the caption to display above the text entry field.
public TextInputDialog(int id,
ApplicationInterface appHandler,
java.lang.String title,
java.lang.String caption)
id - The ID of the corresponding remote frame control.appHandler - The handle to the main ApplicationInterface which handles the functions of page overall.title - String title of the window.caption - String containing the caption to display above the text entry field.| Method Detail |
public void fillControls()
fillControls in class ModalBaseFrameamber.server.panel.ContainerHandlerBasePanel.defineComponents()protected void defineComponents()
defineComponents in class ModalBaseFrame
public java.lang.String getText()
throws ComponentHandlerException
ComponentHandlerException - with messaging errors.
public void setText(java.lang.String text)
throws ComponentHandlerException
text - String containing the text to set the text field to.ComponentHandlerException - with messaging errors.public java.lang.String getCaption()
public void setCaption(java.lang.String caption)
throws ComponentHandlerException
caption - String containing the caption of this dialog.ComponentHandlerException - with messaging errors.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void windowOpened(ComponentWindowEvent e)
ComponentWindowListenerwindowOpened in interface ComponentWindowListeneramber.awt.event.ComponentWindowListenere - ComponentWindowEvent which contains information on
what happened.public void windowClosing(ComponentWindowEvent e)
ComponentWindowListenerwindowClosing in interface ComponentWindowListeneramber.awt.event.ComponentWindowListenere - ComponentWindowEvent which contains information on
what happened.public void windowClosed(ComponentWindowEvent e)
ComponentWindowListenerwindowClosed in interface ComponentWindowListeneramber.awt.event.ComponentWindowListenere - ComponentWindowEvent which contains information on
what happened.public void windowIconified(ComponentWindowEvent e)
ComponentWindowListenerwindowIconified in interface ComponentWindowListeneramber.awt.event.ComponentWindowListenere - ComponentWindowEvent which contains information on
what happened.public void windowDeiconified(ComponentWindowEvent e)
ComponentWindowListenerwindowDeiconified in interface ComponentWindowListeneramber.awt.event.ComponentWindowListenere - ComponentWindowEvent which contains information on
what happened.public void windowActivated(ComponentWindowEvent e)
ComponentWindowListenerwindowActivated in interface ComponentWindowListeneramber.awt.event.ComponentWindowListenere - ComponentWindowEvent which contains information on
what happened.public void windowDeactivated(ComponentWindowEvent e)
ComponentWindowListenerwindowDeactivated in interface ComponentWindowListeneramber.awt.event.ComponentWindowListenere - ComponentWindowEvent which contains information on
what happened.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||