|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.ui.ControlBase
ewe.ui.Control
ewe.ui.Container
ewe.ui.Canvas
ewe.ui.Panel
ewe.ui.CellPanel
ewe.ui.FormBase
ewe.ui.Form
A Form is a CellPanel that is able to create a Frame/Window for itself for display on the screen. This is the easiest way to display controls within a Frame or Window - much easier than attempting to create Frames and Windows yourself. However you can still use a Form as an ordinary CellPanel if you wish - it will only create a Frame/Window for itself if you call one of the show()/exec()/execute() methods.
When displaying a Form within a new Window you can set flags for the properties of the new Window by adjusting windowFlagsToSet and windowFlagsToClear.
A Form can display an icon in the system taskbar by setting the taskbarIcon variable. By default, clicking on this icon will bring the application to the front.
| Field Summary | |
boolean |
acceptsDroppedFiles
Set this true to accept files dropped from the file manager. |
Control |
apply
|
Control |
back
|
protected Vector |
buttons
The buttons to be displayed at the bottom of the Form (if any) are stored here. |
static int |
BUTTONS_TO_SOFT_KEY_FIRST_BUTTON_SEPARATE
|
static int |
BUTTONS_TO_SOFT_KEY_MENU_ALWAYS
|
static int |
BUTTONS_TO_SOFT_KEY_USE_FIRST_SOFT_KEY
|
CellPanel |
buttonsPanel
This is the panel that will contain any of the special buttons you add. |
int |
buttonsPerRow
Set this to be greater than zero to limit the number of buttons displayed at the bottom of the Form. |
Control |
cancel
|
Control |
deflt
|
boolean |
dismantleOnClose
This tells the Form to dismantle itself when it closes. |
boolean |
exitButtonDefined
This is set true when doButtons() is called to add close buttons to the form. |
boolean |
exitSystemOnClose
|
int |
exitValue
This is the value that was sent to close(int exitCode) or exit(int exitCode). |
Control |
firstFocus
This explicitly sets the control which will first get focus when the Form is displayed. |
protected FormFrame |
formFrame
The Frame the Form is currently displayed in. |
static IImage |
globalIcon
|
Handle |
handle
This is used to monitor the state of the Form. |
boolean |
hasTopBar
|
boolean |
keepFrame
This option tells the Form to keep a reference to the Frame it creates for itself to save time if it is closed and then re-shown. |
boolean |
moveable
|
Control |
no
|
boolean |
noBorder
|
Control |
ok
|
protected PropertyList |
pl
The properties of the Form. |
Control |
reset
|
boolean |
resizable
|
boolean |
resizeOnSIP
If this is true then the Frame containing the Form will resize itself to avoid the SIP when the SIP is turned on. |
Window.TaskBarIconInfo |
taskbarIcon
Set this to be a valid Window.TaskBarIconInfo if you want to display an icon in the taskbar when this Form is displayed. |
String |
title
The title of the form. |
Control |
titleCancel
If this is set to a control then this control will appear to the right of the title bar. |
CellPanel |
titleControls
Use this to add controls to the title bar of the form. |
Control |
titleOK
If this is set to a control then this control will appear to the right of the title bar. |
CellPanel |
topControls
Use this to add controls to the top of the form, below the title bar. |
static String |
untitledTitle
This is the default title that will be assigned to a new Form. |
int |
windowFlagsToClear
These are flags that you want to clear for any new Window being created to display this Form. |
int |
windowFlagsToSet
These are flags that you want to set for any new Window being created to display this Form. |
IImage |
windowIcon
|
String |
windowTitle
If this is not null, then the window that the Form is displayed in will have its title set to this value regardless of whether it is the top level form or not. |
Control |
yes
|
| Fields inherited from class ewe.ui.FormBase |
BACKB, CANCELB, close, cross, defaultShowOptions, DEFCANCELB, DEFOKB, EXIT_IDBACK, EXIT_IDCANCEL, EXIT_IDNO, EXIT_IDOK, EXIT_IDYES, IDBACK, IDCANCEL, IDNO, IDOK, IDYES, MBB, MBNONE, MBOK, MBOKCANCEL, MBYESNO, MBYESNOCANCEL, NOB, OKB, stop, tick, tools, YESB |
| Fields inherited from class ewe.ui.CellPanel |
autoSpan, equalHeights, equalWidths, layout, mySplitter, nextSplitter, quickRecalculate |
| Fields inherited from class ewe.ui.Panel |
all, backgroundImage, calculated, childListeners, defaultAddToMeCellConstraints, defaultTags, grid, lastAdded, layoutManager, made, noInsets, stretchFirstColumn, stretchFirstRow, stretchLastColumn, stretchLastRow, titleGap |
| Fields inherited from class ewe.ui.Canvas |
isFullScrollClient, origin, scrollPercent, virtualSize |
| Fields inherited from class ewe.ui.Container |
closedFocus, cycleFocus, dontAutoScroll, dontFocusOnChildren |
| Fields inherited from class ewe.ui.Control |
_debug, backGround, beforeRemoved, borderColor, borderStyle, borderWidth, children, columns, constraints, DoPaintMethod, dragging, dragResolution, dragTime, exitKeys, fieldTransfer, font, foreGround, haveNativePaint, height, holdDownPause, holdTick, hotKey, image, lastSelected, listeners, maxHeight, maxWidth, menuState, minHeight, minWidth, modifiers, MyClass, name, next, np, parent, penStatus, popupSound, popupSoundClip, preferredHeight, preferredWidth, prev, prompt, promptControl, rows, ss, standardBorder, standardEdge, startDragResolution, tags, tail, text, toolTip, width, x, y |
| Fields inherited from class ewe.ui.ControlBase |
clipItems, clipObject, clipOwner, curPoint, currentPenEvent, debugControl, debugFlag, DidHoldDown, doubleBuffer, doubleClickTime, firstPress, globalDrawFlat, globalEditable, globalEnabled, globalPalmStyle, globalSmallControls, GotPenDown, PenIsOn, pressPoint, TAG_LAST_USER_DATA, TAG_USER_DATA, TAKE_FIRST_PRESS, unnamed, useNativeTextInput |
| Fields inherited from interface ewe.ui.CellConstants |
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST |
| Fields inherited from interface ewe.ui.IScroll |
Higher, Horizontal, Lower, OPTION_INDICATOR_ONLY, PageHigher, PageLower, ScrollHigher, ScrollLower, TrackTo, Vertical |
| Fields inherited from interface ewe.ui.UIConstants |
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN |
| Fields inherited from interface ewe.ui.ControlConstants |
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown |
| Fields inherited from interface ewe.fx.ImageRefresher |
KEEP_VISIBLE |
| Constructor Summary | |
Form()
|
|
| Method Summary | |
boolean |
_getSetField(String fieldName,
Wrapper wrapper,
boolean isGet)
A special method used by ewe.reflect.FieldTransfer() to transfer data to and from controls and properties. |
void |
addButton(Control b)
This is used to add custom buttons to the bottom of the bar. |
Control[] |
addTabbedPanel(boolean useExpandingTabs)
A very useful method for creating a Form with a tabbed panel. |
CellPanel[] |
addToolbar()
A very useful method for creating a Form with a toolbar or menubar. |
Menu |
buttonsToMenu(Vector buttons,
Menu destination)
Add a Vector of mButton objects to a Menu. |
boolean |
buttonsToSoftKeyBar(Container buttons,
String menuName,
int options)
Add a container which contains mButton objects to the SoftKeyBar. |
boolean |
buttonsToSoftKeyBar(Vector buttons,
String menuName,
int options)
Add a Vector of mButton objects to the SoftKeyBar. |
static void |
cancelWait()
This cancels the display of the wait Cursor IF it was requested. |
protected boolean |
canExit(int exitCode)
This is called by the exit() method to see if the form can be closed. |
protected void |
checkButtons()
This is called before the Form is displayed to setup the buttons as requested by doButtons(). |
void |
close(int exitCode)
This closes the form unconditionally and sets the exitValue to be exitCode. |
void |
closeAll(int exitCode)
If this Form is embedded within another Form, then this will close the topmost Form. |
Handle |
closeForTransfer()
This closes the Form but does not set the handle to a stopped state, instead it returns the still running handle. |
Handle |
closeForTransfer(boolean dismantle,
boolean showWait)
This closes the Form but does not set the handle to a stopped state, instead it returns the still running handle. |
static void |
continueWait()
This requests that a wait Cursor be shown IF it was shown before the last Form was displayed - otherwise it has no effect. |
MenuItem |
createMenuItem(mButton button)
Return a MenuItem that will be used as a proxy for a specific buton. |
MenuItem |
createMenuItem(String label,
String action,
IImage icon)
|
MenuItem |
createMenuItem(String label,
String action,
String iconName,
Object maskOrColor)
|
Window |
createWindow()
This creates a new Window for the Form on request (when being shown). |
void |
defaultTitleTo(String newTitle)
This will set the title of the Form if it has not already been set. |
void |
dismantle(Control stopAt)
|
void |
doButtons(int which)
This is used to add a row of buttons at the bottom of the form, using The value of "which" can be the logical OR of any of the pre-defined button values (e.g. |
protected FormFrame |
doShowExec(Frame parent,
EventListener listener,
boolean modal,
int options)
All show()/exec()/execute() methods eventually call this method. |
FormFrame |
exec()
This displays the Form modally in a new Window. |
Handle |
exec(boolean dismantleOnClose)
Display the Form modally in a new Window and return the Handle that can be used to monitor the Form's open state using waitUntilClosed(). |
Handle |
exec(boolean dismantleOnClose,
Frame parent,
int options)
Display the Form modally in a parent Frame and return the Handle that can be used to monitor the Form's open state using waitUntilClosed(). |
FormFrame |
exec(Frame parent,
EventListener listener)
Deprecated. |
FormFrame |
exec(Frame parent,
EventListener listener,
int options)
Deprecated. |
FormFrame |
exec(Frame parent,
int options)
This displays the Form modally within an already displayed parent Frame. |
FormFrame |
exec(Handle transferredHandle)
This is used to exec a Form using the Handle from another Form (usually got from closeForTransfer()). |
FormFrame |
exec(Handle transferredHandle,
Frame parent,
int options)
This is used to exec a Form using the Handle from another Form (usually got from closeForTransfer()). |
FormFrame |
exec(int options)
Deprecated. |
int |
execute()
This displays the Form modally in a new Window and waits for the Form to close. |
int |
execute(Frame parent,
int options)
This displays the Form modally within an already displayed parent Frame and then waits for the Form to close. |
int |
execute(int options)
Deprecated. |
boolean |
exit(int exitCode)
This will call the canExit() method and if it returns true, it will close the form. |
void |
filesDropped(String[] fileNames)
This is called when files are dropped on the Form and acceptsDroppedFiles is true. |
protected void |
formClosing()
This is called to indicate that the Form is about to close and it causes a FormEvent.CLOSED event to be posted. |
protected void |
formShown()
This is called to indicate that the Form has been made and has been displayed on the screen. |
static Vector |
gatherButtons(Container buttons,
Vector destination)
|
Control |
getButton(String text)
Used to create a new Button for the Form. |
protected Control |
getFirstFocus()
|
FormFrame |
getFormFrame(int options)
This is called when the Form is about to be displayed. |
PropertyList |
getProperties()
Get the PropertyList object associated with this object. |
SoftKeyBar |
getSoftKeyBarFor(Control c)
Get the SoftKeyBar for a particular Control or the default SoftKeyBar. |
Form |
getTopmostForm()
|
boolean |
handleAction(ControlEvent ev)
Handle a ControlEvent that is of type PRESSED and for which the "action" field is not null. |
boolean |
handleAction(String action)
Handle an action type event. |
boolean |
hasExitButton()
Tests if the Form has an exit button defined for it. |
void |
make(boolean reMake)
This is used to "make" the control before being displayed. |
Control |
makeButtonForForm(String text,
IImage icon,
int hotkey)
|
Control |
makeButtonForForm(String text,
String iconName,
Object maskOrColor,
int hotkey)
|
Control |
makeDefaultButton(int whichButton,
boolean useText)
Create and return the default OK or Cancel button. |
Control |
makeDefaultButton(int whichButton,
String textToUse)
Create and return the default OK or Cancel button. |
protected FormFrame |
makeFrame(int options)
This is used to actually create the frame for the form. |
MenuItem |
makeMenuItemForForm(String label,
String action,
IImage icon)
|
MenuItem |
makeMenuItemForForm(String label,
String action,
String iconName,
Object maskOrColor)
|
SoftKeyBar |
makeSoftKeys()
Create a SoftKeyBar that applies to the entire Form and return it for you to set the keys in it. |
SoftKeyBar |
makeSoftKeys(Object left,
String leftLabel,
Object right,
String rightLabel)
Create a SoftKeyBar that applies to the entire Form and set the left and right key functions. |
static void |
mb(String text)
|
void |
menuItemSelected(MenuItem selected)
|
boolean |
modifyForSmartPhone()
This modifies the setup for the Form to be one suitable to run full screen on a SmartPhone compatible IF the application actually is running on a SmartPhone device. |
void |
onControlEvent(ControlEvent ev)
Make sure you call super.onControlEvent() if you override this method. |
void |
onDataChangeEvent(DataChangeEvent ev)
|
void |
onEvent(Event ev)
|
void |
onSoftKey(int whichKey,
String action,
MenuItem selected)
The default onEvent for a Form will call this method if a SoftKeyEvent is sent to the Form. |
boolean |
placeCancelOnLeft()
|
void |
removeSoftKeyBarFor(Control c)
Remove the SoftKeyBar for a particular Control or the default SoftKeyBar. |
Form |
setOKCancel()
Set OK and Cancel keys appropriate for the platform and return this Form. |
void |
setSoftKeyBarFor(Control c,
SoftKeyBar bar)
Set the SoftKeyBar for a particular Control or the default SoftKeyBar. |
void |
setSoftKeyBarForAll(Vector controls,
SoftKeyBar bar)
Set the SoftKeyBar for a particular set of Controls. |
void |
setTitle(String newTitle)
Change the title of the Form on-screen. |
void |
setTopLevelTitle(String newTitle)
Change the title of the top-level Form on-screen even if this Form is not a top-level form. |
protected void |
setupFrame(FormFrame f,
int options)
This is used to do a customized setup of the FormFrame created for the Form. |
FormFrame |
show()
This displays the Form non-modally in a new Window. |
FormFrame |
show(Frame parent)
Deprecated. |
FormFrame |
show(Frame parent,
EventListener listener)
Deprecated. |
FormFrame |
show(Frame parent,
EventListener listener,
int options)
Deprecated. |
FormFrame |
show(Frame parent,
int options)
This displays the Form non-modally within an already displayed parent Frame. |
FormFrame |
show(int options)
Deprecated. |
void |
shown()
|
static void |
showWait()
This displays a wait cursor until the next Form is shown. |
static void |
stopFormHandle(Handle h,
int retCode)
This can be used to stop the Handle of a Form to indicate that it should be considered closed. |
boolean |
toolsOnBottom()
Returns true if tools are best added to the bottom of Forms on this platform. |
int |
waitUntilClosed()
This waits indefinitely for the form to close and returns the exitValue. |
static int |
waitUntilClosed(Handle h)
Use this to wait on the Handle of a Form, without keeping a reference to the Form. |
static int |
waitUntilClosed(Handle h,
TimeOut t)
Use this to wait on the Handle of a Form, without keeping a reference to the Form. |
boolean |
waitUntilClosed(TimeOut howLong)
This waits and returns true if it closed before the timeout. |
boolean |
waitUntilPainted(int timeOut)
Call this ONLY after a show() call. |
| Methods inherited from class ewe.ui.CellPanel |
calculateSizes, makeLayoutGrid, relayout, relayoutMe, removeAll, reShow, resize, resizeTo |
| Methods inherited from class ewe.ui.Panel |
add, addChildListener, addDirectly, addLast, addLast, addNext, addNext, addNext, doBackground, doBorder, endRow, getControlTag, getPreferredSize, getSubControls, isEmpty, layout, remove, removeChildListener, sendToChildListeners, setText |
| Methods inherited from class ewe.ui.Canvas |
canGo, canScreenScroll, checkScrolls, doScroll, fixOrigin, getActual, getBuffer, getCurrent, getDisplayedSize, getMySize, getPercent, getScrollablePanel, getScrollClient, getVisible, getVisibleArea, needScrollBar, onScroll, onSetOrigin, reduceClip, scroll, scroll, scrollToVisible, setOrigin, updateScrollServer |
| Methods inherited from class ewe.ui.Container |
_paintChildren, add, containerHasFocus, dismantle, doHotKey, findChild, focusFirst, focusFirst, focusOnContainer, focusOnData, getChildren, getChildrenBackwards, getNextKeyFocus, gotFocus, lostFocus, repaintDataNow, takeFocus, takePromptControl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Methods inherited from interface ewe.ui.ScrollClient |
getServer, setServer |
| Field Detail |
public static IImage globalIcon
public static String untitledTitle
public boolean exitSystemOnClose
public boolean dismantleOnClose
public boolean resizable
public boolean keepFrame
public boolean resizeOnSIP
public boolean moveable
public boolean hasTopBar
public boolean noBorder
public boolean acceptsDroppedFiles
public Handle handle
public Control yes
public Control no
public Control cancel
public Control ok
public Control apply
public Control reset
public Control deflt
public Control back
public IImage windowIcon
public int buttonsPerRow
public Control titleOK
public Control titleCancel
protected Vector buttons
public CellPanel topControls
public CellPanel titleControls
public CellPanel buttonsPanel
public Control firstFocus
public int exitValue
public String title
public String windowTitle
public boolean exitButtonDefined
public int windowFlagsToSet
public int windowFlagsToClear
public Window.TaskBarIconInfo taskbarIcon
public static int BUTTONS_TO_SOFT_KEY_FIRST_BUTTON_SEPARATE
public static int BUTTONS_TO_SOFT_KEY_MENU_ALWAYS
public static int BUTTONS_TO_SOFT_KEY_USE_FIRST_SOFT_KEY
protected FormFrame formFrame
protected PropertyList pl
| Constructor Detail |
public Form()
| Method Detail |
protected boolean canExit(int exitCode)
public boolean exit(int exitCode)
public boolean hasExitButton()
public MenuItem makeMenuItemForForm(String label,
String action,
String iconName,
Object maskOrColor)
public MenuItem makeMenuItemForForm(String label,
String action,
IImage icon)
public Control makeButtonForForm(String text,
IImage icon,
int hotkey)
public Control makeButtonForForm(String text,
String iconName,
Object maskOrColor,
int hotkey)
public Control makeDefaultButton(int whichButton,
String textToUse)
whichButton - one of OKB, DEFOKB, CANCELB, or DEFCANCELB.textToUse - the text to use with the button, or null to use the icon only.
public Control makeDefaultButton(int whichButton,
boolean useText)
whichButton - one of OKB, DEFOKB, CANCELB, or DEFCANCELB.useText - true to use the standard OK/Cancel lables, false to use the icon only.
public boolean placeCancelOnLeft()
public void doButtons(int which)
public void addButton(Control b)
public Control getButton(String text)
public static Vector gatherButtons(Container buttons,
Vector destination)
public boolean buttonsToSoftKeyBar(Container buttons,
String menuName,
int options)
public Menu buttonsToMenu(Vector buttons,
Menu destination)
public boolean buttonsToSoftKeyBar(Vector buttons,
String menuName,
int options)
protected void checkButtons()
public void make(boolean reMake)
Control
make in class CellPanelprotected FormFrame makeFrame(int options)
protected void setupFrame(FormFrame f,
int options)
public static void showWait()
public static void continueWait()
public static void cancelWait()
public static void mb(String text)
protected FormFrame doShowExec(Frame parent,
EventListener listener,
boolean modal,
int options)
parent - The parent Frame (may be null).listener - A listener for listening to Form events (may be null).modal - true if the Form is to be displayed modally.options - one of the Gui.XXX_FRAME options along with the Gui.NEW_WINDOW option.
public void setTitle(String newTitle)
newTitle - The new title.public void setTopLevelTitle(String newTitle)
newTitle - The new title.public boolean waitUntilPainted(int timeOut)
protected void formShown()
protected void formClosing()
formClosing in class Control
public final int waitUntilClosed()
throws IllegalStateException
IllegalStateException - if the Form has no handle (i.e. has not been opened).
public static final int waitUntilClosed(Handle h,
TimeOut t)
throws InterruptedException,
TimedOutException
h - The handle of the Form (from the "handle" variable).t - A TimeOut to wait form.
InterruptedException - If the Thread was interrupted.
TimedOutException - If the TimeOut expired.public static final int waitUntilClosed(Handle h)
h - The handle of the Form (from the "handle" variable).
public final boolean waitUntilClosed(TimeOut howLong)
throws IllegalStateException
IllegalStateException - if the Form has no handle (i.e. has not been opened).
public Handle closeForTransfer(boolean dismantle,
boolean showWait)
Transferring the handle to another Form is done using the exec(Handle) method or exec(Handle,Parent,int) method.
dismantle - dismantle this Form after closing.showWait - call the showWait() method to display a wait cursor until the next Form is
displayed.
public Handle closeForTransfer()
Transferring the handle to another Form is done using the exec(Handle) method or exec(Handle,Parent,int) method.
This Form will be dismantled after closing and the wait cursor will be displayed until the new Form is displayed.
public final int execute(Frame parent,
int options)
parent - The parent Frame for the Form. A null parent will indicate that a new Window
should be created.options - this should be one of:
public final int execute()
public final FormFrame exec()
public final FormFrame exec(Frame parent,
int options)
parent - The parent Frame for the Form. A null parent will indicate that a new Window
should be created.options - this should be one of:
public final FormFrame show()
public final FormFrame show(Frame parent,
int options)
parent - The parent Frame for the Form. A null parent will indicate that a new Window
should be created.options - this should be one of:
public final FormFrame exec(Frame parent,
EventListener listener)
public final FormFrame exec(Frame parent,
EventListener listener,
int options)
public final FormFrame show(int options)
public FormFrame exec(int options)
public final int execute(int options)
public final FormFrame show(Frame parent)
public final FormFrame show(Frame parent,
EventListener listener)
public final FormFrame show(Frame parent,
EventListener listener,
int options)
public FormFrame getFormFrame(int options)
public void dismantle(Control stopAt)
dismantle in class Containerpublic FormFrame exec(Handle transferredHandle)
transferredHandle - The Handle to use for this Form.
public FormFrame exec(Handle transferredHandle,
Frame parent,
int options)
transferredHandle - The Handle to use for this Form.parent - The parent Frame to exec() this Form in.options - this should be one of:
public Handle exec(boolean dismantleOnClose)
dismantleOnClose - The state to set the dismantleOnClose flag.
public Handle exec(boolean dismantleOnClose,
Frame parent,
int options)
dismantleOnClose - The state to set the dismantleOnClose flag.parent - The parent Frame. If this is null then the Form will be displayed in a new Window.options - this should be one of:
public Form getTopmostForm()
public void closeAll(int exitCode)
public static void stopFormHandle(Handle h,
int retCode)
h - The Handle of the open Form.retCode - The exit code the Form should report.public void close(int exitCode)
public SoftKeyBar makeSoftKeys(Object left,
String leftLabel,
Object right,
String rightLabel)
public SoftKeyBar makeSoftKeys()
public void setSoftKeyBarFor(Control c,
SoftKeyBar bar)
c - the particular Control or null to set the default SoftKeyBar.bar - The SoftKeyBar to use.
public void setSoftKeyBarForAll(Vector controls,
SoftKeyBar bar)
controls - a Vector holding a set of Controls.bar - The SoftKeyBar to use for each of the Controls.public SoftKeyBar getSoftKeyBarFor(Control c)
c - the particular Control or null to get the default SoftKeyBar.public void removeSoftKeyBarFor(Control c)
c - the particular Control or null to remove the default SoftKeyBar.public void onControlEvent(ControlEvent ev)
onControlEvent in class Controlpublic boolean handleAction(String action)
action - the action value.
public boolean handleAction(ControlEvent ev)
ev - The Control Event.
public void menuItemSelected(MenuItem selected)
public void onSoftKey(int whichKey,
String action,
MenuItem selected)
whichKey - the SoftKey that was pressed, either 1 or 2.action - the action associated with the key or menu item.selected - if a MenuItem was selected, this will be the selected item.public void onEvent(Event ev)
onEvent in interface EventListeneronEvent in class CellPanelpublic void onDataChangeEvent(DataChangeEvent ev)
public void filesDropped(String[] fileNames)
fileNames - the list of fileNames dropped.public PropertyList getProperties()
HasProperties
getProperties in interface HasProperties
public boolean _getSetField(String fieldName,
Wrapper wrapper,
boolean isGet)
public boolean toolsOnBottom()
public CellPanel[] addToolbar()
public Control[] addTabbedPanel(boolean useExpandingTabs)
useExpandingTabs - set this true if you wish for the created tabbed panel to be the autoexpanding type.
public void defaultTitleTo(String newTitle)
public Window createWindow()
protected Control getFirstFocus()
getFirstFocus in class Containerpublic void shown()
shown in class Controlpublic boolean modifyForSmartPhone()
Setup the title and other Form options before calling this method.
public Form setOKCancel()
public MenuItem createMenuItem(String label,
String action,
String iconName,
Object maskOrColor)
public MenuItem createMenuItem(String label,
String action,
IImage icon)
public MenuItem createMenuItem(mButton button)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||