ewe.ui
Class mApp

java.lang.Object
  extended byewe.ui.ControlBase
      extended byewe.ui.Control
          extended byewe.ui.Container
              extended byewe.ui.Window
                  extended byewe.ui.MainWindow
                      extended byewe.ui.mApp
All Implemented Interfaces:
CellConstants, ControlConstants, EventListener, FieldListener, HasProperties, ImageRefresher, ISurface, Runnable, TimerProc, UIConstants, WindowConstants
Direct Known Subclasses:
SyncApp, Welcome

public class mApp
extends MainWindow
implements EventListener, Runnable, FieldListener


Nested Class Summary
 
Nested classes inherited from class ewe.ui.Window
Window.TaskBarIconInfo
 
Field Summary
static Frame appFrame
           
protected  boolean checkMonochrome
           
static boolean counterRotated
          Set this to true before calling setupMainWindow() to display the application rotated by 90 degrees anti-clockwise (which puts the controls on the left - when the user rotates it back by 90 degrees clockwise).
static Font guiFont
           
static int lastEvent
           
static mApp mainApp
           
protected static Method mainMethod
           
protected  boolean monoMode
           
protected  Graphics myGraphics
           
static String platform
           
static String[] programArguments
           
static int ROTATE_CLOCKWISE
           
static int ROTATE_COUNTER_CLOCKWISE
           
static int ROTATE_NORMAL
           
static boolean rotated
          Set this to true before calling setupMainWindow() to display the application rotated by 90 degrees clockwise (which puts the controls on the right - when the user rotates it back by 90 degrees anti-clockwise).
static Class runClass
           
static Object runObject
           
static Object taskbarIcon
          If this is set to a valid icon in the setupMainWindow() method, then the icon will display in the taskbar as long as this application runs.
static TaskbarWindow taskbarWindow
          If you set taskbarIcon in the setupMainWindow() method, then this will be set to a TaskbarWindow that will be created.
static int tickTime
           
static VMOptions vmOptions
           
protected  int windowFlagsToClear
           
protected  int windowFlagsToSet
           
protected  boolean windowInitiallyVisible
           
protected  Rect windowRect
           
protected  String windowTitle
           
 
Fields inherited from class ewe.ui.MainWindow
defaultFont
 
Fields inherited from class ewe.ui.Window
_controlEvent, _keyEvent, _penEvent, _sipEvent, canDisplay, closeLock, contents, creationData, currentCursor, downPoint, dragAndDropCursor, dragAndDropData, dragAndDropSource, firstDisplay, inEventThread, inFront, lastWindow, wasPainted
 
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.fx.ISurface
IMAGE_SURFACE, PRINTERJOB_SURFACE, WINDOW_SURFACE
 
Fields inherited from interface ewe.ui.WindowConstants
FLAG_ALWAYS_ON_TOP, FLAG_CAN_MAXIMIZE, FLAG_CAN_MINIMIZE, FLAG_CAN_RESIZE, FLAG_DONT_CLEAR_BACKGROUND, FLAG_FULL_SCREEN, FLAG_HAS_CLOSE_BUTTON, FLAG_HAS_TASKBAR_ENTRY, FLAG_HAS_TITLE, FLAG_IS_DEFAULT_SIZE, FLAG_IS_ICONIZED, FLAG_IS_MODAL, FLAG_IS_VISIBLE, FLAG_MAIN_WINDOW_COUNTER_ROTATED, FLAG_MAIN_WINDOW_ROTATED, FLAG_MAXIMIZE, FLAG_MAXIMIZE_ON_PDA, FLAG_MINIMIZE, FLAG_RESTORE, FLAG_SHOW_SIP_BUTTON, FLAG_STATE_KNOWN, FLAG_VISIBLE_ON_TO_FRONT, GUI_FLAG_HAS_TASKBAR, GUI_FLAG_REVERSE_OK_CANCEL, INFO_ACCEPT_DROPPED_FILES, INFO_CLIENT_RECT, INFO_DROPPED_DATA, INFO_FLAGS_FOR_SIZE, INFO_FONT, INFO_GUI_FLAGS, INFO_NATIVE_WINDOW, INFO_PARENT_RECT, INFO_POSITION_IN_NATIVE_DRAWING_SURFACE, INFO_SCREEN_RECT, INFO_TASKBAR_ICON, INFO_TITLE, INFO_WINDOW_FLAGS, INFO_WINDOW_ICON, INFO_WINDOW_RECT, NATIVE_WINDOW_GET_CONTAINING_WINDOW, NATIVE_WINDOW_GET_DRAWING_SURFACE, OPTION_FLAG_CLEAR, OPTION_FLAG_SET, OPTION_TASKBAR_ICON_MODIFY_ICON, OPTION_TASKBAR_ICON_MODIFY_TIP, SPECIAL_MOUSE_CAPTURE, SPECIAL_MOUSE_MOVE, SPECIAL_MOUSE_RELEASE, SPECIAL_MOUSE_RESIZE, SPECIAL_RESTART_GUI, SPECIAL_ROTATE_SCREEN, STATE_MAXIMIZED, STATE_MINIMIZED, STATE_NORMAL, STATE_UNKNOWN
 
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.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.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
mApp()
           
mApp(boolean dontSetupAtAll)
          This is used if the mApp you are creating is not necessarily the only mApp that will be created.
If the parameter is true then no application setup will be done.
mApp(Class runClass)
          This is used by the system when constructing for a specified run object.
 
Method Summary
 void action(FieldTransfer ft, Editor ed)
          This implements the action() method in FieldListener.
static void addFont(Font font, String name)
          Add a Font to the application font library.
static void cancelTimer(int timerId)
           
protected  boolean canClose()
           
protected  boolean canExit(int code)
           
 void changeMonoMode()
          Deprecated.  
 void closeMobileApp(Window targetWindow, int flags)
          This will be called by mobileWindowEvent() if a Close message is sent by the OS and the application is running on a mobile device.
 void doPaint(Graphics g, Rect r)
           
 void fieldChanged(FieldTransfer ft, Editor ed)
          This implements the fieldChanged() method in FieldListener.
 void fieldEvent(FieldTransfer ft, Editor ed, Object event)
          This implements the fieldEvent() method in FieldListener.
static Font findFont(String name)
          Find a font in the application Font library.
static Font findFont(String name, boolean doDefault)
          Find a font in the application Font library.
static void fontsChanged()
          Call this method to alert the application that fonts have been changed other than through setFont().
protected  void fullSetup(boolean visible)
           
static Iterator getFonts()
          Get an Iterator for all the entries in the fonts hashtable.
 Graphics getGraphics(boolean newOne)
           
 boolean isLocked()
           
 void onEvent(Event ev)
           
 void onStart()
          Called when an application starts.
static int requestTick(TimerProc who, int milli)
          This results in a single call to the ticked() method of the TimerProc, unless cancelTimer() is called first.
static int requestTimer(TimerProc who, int milli)
          This results in regular calls to the ticked() method of the TimerProc until cancelTimer() is called.
static boolean rotateScreen(int type)
           
 void run()
           
static void runApplet(String[] args)
          This calls runApplet(String args[],String extraArgs []) with null extraArgs.
static void runApplet(String[] args, String[] extraArgs)
          This is used if the mApp is executed directly by a pure Java interpreter.
 void setRect(int x, int y, int w, int h)
           
 void setRunObject(Object obj)
           
protected  void setup()
          This is called at the end of the fullSetup() method, so by this time the Main Window is created and displayed if it was set to be visible.
static void setupFonts()
          This is used by the mApp to setup its font list.
protected  void setupMainWindow()
          This is called by the system during the constructor to setup this mApp as the application's Main Window.
 void show(Frame f, boolean fullSize)
          This is called after setupMainWindow() is called - so by this time the Main Window has already been created and is now visible if it was not set to be invisible.
 void showStartMessage()
           
protected  void sizeToFit(Control what)
           
protected  void startup()
          This is called if this mApp was selected as the class to run for the application.
 void tryExit(int code)
           
 
Methods inherited from class ewe.ui.MainWindow
_onTimerTick, _setTimerInterval, addTimer, exit, getFontMetrics, getMainWindow, onExit, removeTimer
 
Methods inherited from class ewe.ui.Window
_doPaint, _postEvent, _textEvent, applicationToFront, appResized, beginDragAndDrop, beginDragAndDrop, captureAppKeys, centerWindow, centerWindow, checkSipCoverage, clearQueuedMoves, clearWindowFlags, close, closeWindow, create, createNativeWindow, damageRect, doPostEvent, doPostEvent, doSpecialOp, enterNativeDialog, exitNativeDialog, getActiveWindow, getContainingWindow, getFocus, getGuiInfo, getInfo, getNativeWindow, getOpenWindows, getProperties, getState, getTitle, getWindowFlags, getWindowRect, handleNativeMessage, handleSipEvent, iconPressed, inNativeInput, isCreated, mobileWindowEvent, nativeGetGuiInfo, nextMouseIsMove, releaseMouseCapture, resizeTo, setFocus, setIcon, setInfo, setState, setText, setTitle, setWindowFlags, setWindowRect, shutdown, shutdownAll, supportsMultiple, textInput, toFront, transferPenPress, tryWindow, waitUntilPainted, wantToHandle, windowToFront
 
Methods inherited from class ewe.ui.Container
_paintChildren, add, addDirectly, containerHasFocus, dismantle, dismantle, doHotKey, findChild, focusFirst, focusFirst, focusOnContainer, focusOnData, getChildren, getChildrenBackwards, getFirstFocus, getNextKeyFocus, gotFocus, lostFocus, remove, removeAll, repaintDataNow, scrollToVisible, takeFocus, takePromptControl
 
Methods inherited from class ewe.ui.Control
acceptsData, activate, addListener, addTimer, amOnTopFrame, calculateSizes, calculateTextSize, cancelCut, cancelHoldDown, canEdit, chainDataChange, change, checkClipboardOperations, checkExitKey, checkMenu, checkMenuKey, checkModifiers, checkPenTransparent, clearTag, clipboardToString, clipboardTransfer, closeMenu, contains, contains, createGraphics, dataAccepted, dataBeingRemoved, dataDraggedOff, dataDraggedOver, dataDraggedOver, dataDroppedOn, dataTransferCancelled, deactivate, defaultTo, doAction, doActionKey, doBackground, doBorder, doMenu, dontAcceptDrop, doPaintChildren, doPaintChildren, doPaintChildren, doPaintData, doPaintData, doShowMenu, dragged, exitEntry, fillBackground, formClosing, fromClipboard, fromField, fromField, getAllDescendants, getAllSubControls, getBackground, getClipboardMenu, getClipObject, getControlBuffer, getControlBuffer, getDataRect, getDataToCopy, getDataToDragAndDrop, getDim, getDisplayText, getDragAndDropContext, getFont, getFontMetrics, getForeground, getFrame, getFrameOrContainer, getGraphics, getImage, getLastSelected, getLocation, getMaximumSize, getMenu, getMinimumSize, getModifiers, getNext, getParent, getPasswordCharacter, getPosInFrame, getPosInParent, getPreferredSize, getPrompt, getPromptText, getRect, getRect, getServer, getSize, getSizes, getSubControls, getTag, getText, getToolTip, getWindow, hasModifier, hasPopupFormAttached, hasTag, inheritModifiers, isChildOf, isModal, isOnMe, isSomeonesHotKey, make, makeFrameTopMost, makeHot, menuIsActive, modify, modifyAll, modifyAll, notifyAction, notifyDataChange, notifyDataChange, notNative_doPaintChildren, oldButWorksDoPaintChildren, oldPaintChildren, oldPostEvent, onControlEvent, onKeyEvent, onLabelPenEvent, onPaint, onPenEvent, paintBackground, paintChildren, penClicked, penDoubleClicked, penHeld, penPressed, penReleased, penRightReleased, popupBeep, popupMenuClosed, popupMenuEvent, popupMenuEvent, postEvent, recalculatePreferredSize, redisplay, refresh, removeListener, repaint, repaintNow, repaintNow, repaintNow, requestPaint, requestResizeTo, resetRect, restore, scrollAndRepaint, sendToListeners, set, setBorder, setCell, setClipObject, setControl, setCursor, setFixedSize, setFont, setHotKey, setHotKey, setLocation, setMaximumSize, setMenu, setMinimumSize, setPreferredSize, setPromptControl, setRect, setServer, setTag, setTags, setTextSize, setToolTip, show, shown, standardOnKeyEvent, startDragAndDrop, startDragAndDrop, startDragging, stopDragging, takeData, takeFromClipboard, testDim, ticked, toClipboard, toField, toField, toString, toTextData, transferPenPress, transferPenPress, tryDragAndDrop, tryNext, tryStartMenu, updateData, willAcceptDrop, willShowFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 

Field Detail

mainApp

public static mApp mainApp

tickTime

public static int tickTime

lastEvent

public static int lastEvent

appFrame

public static Frame appFrame

platform

public static String platform

guiFont

public static Font guiFont

programArguments

public static String[] programArguments

runObject

public static Object runObject

mainMethod

protected static Method mainMethod

runClass

public static Class runClass

vmOptions

public static VMOptions vmOptions

rotated

public static boolean rotated
Set this to true before calling setupMainWindow() to display the application rotated by 90 degrees clockwise (which puts the controls on the right - when the user rotates it back by 90 degrees anti-clockwise).


counterRotated

public static boolean counterRotated
Set this to true before calling setupMainWindow() to display the application rotated by 90 degrees anti-clockwise (which puts the controls on the left - when the user rotates it back by 90 degrees clockwise).


taskbarIcon

public static Object taskbarIcon
If this is set to a valid icon in the setupMainWindow() method, then the icon will display in the taskbar as long as this application runs. Pressing the icon will bring the application to the front unless you override iconPressed().

The value that you place here must be the result of ewe.fx.Image.toIcon(ewe.fx.Image iconMask). Note that the iconMask must be stored as a monochrome ".bmp" file under Win32/WinCE.

An example is:

taskbarIcon = new ewe.fx.Image("ewe/ewesmall.bmp").toIcon(new ewe.fx.Image("ewe/ewesmallmask.bmp"));


taskbarWindow

public static TaskbarWindow taskbarWindow
If you set taskbarIcon in the setupMainWindow() method, then this will be set to a TaskbarWindow that will be created. You can always add and display icons on the window later.


windowInitiallyVisible

protected boolean windowInitiallyVisible

windowTitle

protected String windowTitle

windowRect

protected Rect windowRect

windowFlagsToSet

protected int windowFlagsToSet

windowFlagsToClear

protected int windowFlagsToClear

checkMonochrome

protected boolean checkMonochrome

ROTATE_NORMAL

public static final int ROTATE_NORMAL
See Also:
Constant Field Values

ROTATE_CLOCKWISE

public static final int ROTATE_CLOCKWISE
See Also:
Constant Field Values

ROTATE_COUNTER_CLOCKWISE

public static final int ROTATE_COUNTER_CLOCKWISE
See Also:
Constant Field Values

monoMode

protected boolean monoMode

myGraphics

protected Graphics myGraphics
Constructor Detail

mApp

public mApp(boolean dontSetupAtAll)
This is used if the mApp you are creating is not necessarily the only mApp that will be created.
If the parameter is true then no application setup will be done. If the parameter is false then setup will be done IF this is the first instance of an mApp being created.


mApp

public mApp()

mApp

public mApp(Class runClass)
This is used by the system when constructing for a specified run object. The value passed should be null because it is not used. The setRunObject() is actually used to specify the object to run.

Method Detail

doPaint

public void doPaint(Graphics g,
                    Rect r)
Overrides:
doPaint in class Control

run

public void run()
Specified by:
run in interface Runnable

canExit

protected boolean canExit(int code)

tryExit

public void tryExit(int code)

isLocked

public final boolean isLocked()

setRunObject

public void setRunObject(Object obj)

fullSetup

protected void fullSetup(boolean visible)

rotateScreen

public static boolean rotateScreen(int type)

setupMainWindow

protected void setupMainWindow()
This is called by the system during the constructor to setup this mApp as the application's Main Window.

The Main Window is always present even if it is invisible. When run as an Applet in a web page the application's Main Window is usually shown within the applet area on the page.

Override this method to setup options for the application's Main Window and then call super setupMainWindow() to continue the setup.


sizeToFit

protected void sizeToFit(Control what)

onStart

public void onStart()
             throws Exception
Description copied from class: MainWindow
Called when an application starts. Initialization code is usually either placed in this method or simply in the app's constructor. This method is called just after the app's constructor is called.

Overrides:
onStart in class MainWindow
Throws:
Exception

setup

protected void setup()
This is called at the end of the fullSetup() method, so by this time the Main Window is created and displayed if it was set to be visible.


startup

protected void startup()
This is called if this mApp was selected as the class to run for the application. By default this creates an mThread that then calls this mApp's run() method - you should override that method instead.


showStartMessage

public final void showStartMessage()

setRect

public void setRect(int x,
                    int y,
                    int w,
                    int h)
Overrides:
setRect in class Control

show

public void show(Frame f,
                 boolean fullSize)
This is called after setupMainWindow() is called - so by this time the Main Window has already been created and is now visible if it was not set to be invisible.


requestTick

public static final int requestTick(TimerProc who,
                                    int milli)
This results in a single call to the ticked() method of the TimerProc, unless cancelTimer() is called first.


requestTimer

public static final int requestTimer(TimerProc who,
                                     int milli)
This results in regular calls to the ticked() method of the TimerProc until cancelTimer() is called.


cancelTimer

public static final void cancelTimer(int timerId)

canClose

protected boolean canClose()

onEvent

public void onEvent(Event ev)
Specified by:
onEvent in interface EventListener
Overrides:
onEvent in class Window

closeMobileApp

public void closeMobileApp(Window targetWindow,
                           int flags)
This will be called by mobileWindowEvent() if a Close message is sent by the OS and the application is running on a mobile device. This is because mobile OS's such as WinCE will send Close messages to applications when there is a shortage of free memory to run new applications. By default this simply closes the application immediately. You should save the state of the application if necessary and then call exit() to quit the application.

Parameters:
targetWindow - The window that received the CLOSE event.
flags - This will have the Window.FLAG_CLOSE_BY_USER bit set if the system knows for certain that the user pressed a system button to generate the Window.CLOSE event. This is only true for the 'OK' button under Windows CE. It is not possible to tell the difference between the user pressing an 'X' button and the system generating a CLOSE message.
Returns:

fontsChanged

public static void fontsChanged()
Call this method to alert the application that fonts have been changed other than through setFont().


addFont

public static void addFont(Font font,
                           String name)
Add a Font to the application font library. This is basically a Hashtable of Fonts which the ewe library and your application can use. The ewe UI library uses the Font which is named as "gui" as the default font for controls.

Parameters:
font - The Font to add.
name - The name of the Font. Important font names include "gui", "system", "fixed", "text", "small" and "big"

findFont

public static Font findFont(String name)
Find a font in the application Font library. This is basically a Hashtable of Fonts which the ewe library and your application can use. The ewe UI library uses the Font which is named as "gui" as the default font for controls.

Parameters:
name - The name of the Font to look for. Important font names include "gui", "system", "fixed", "text", "small" and "big"
Returns:
The Font found. If no Font is found for that name, the "system" font is returned.

findFont

public static Font findFont(String name,
                            boolean doDefault)
Find a font in the application Font library. This is basically a Hashtable of Fonts which the ewe library and your application can use. The ewe UI library uses the Font which is named as "gui" as the default font for controls.

Parameters:
name - The name of the Font to look for. Important font names include "gui", "system", "fixed", "text", "small" and "big"
doDefault - If this is true and no font is found for the name, the "system" font is returned. If it is false and no font is found for the name, null will be returned.
Returns:
The Font found.

getFonts

public static Iterator getFonts()
Get an Iterator for all the entries in the fonts hashtable. Each item returned by the Iterator will be ewe.util.Map.MapEntry object that can be used to get the font name (the "key" for the entry) and the font itself (the "value" for the entry). This can be used to change all font entries as necessary. If you do change the fonts using the entries then you should call the fontsChanged() method.

Returns:
an Iterator for all the entries in the fonts hashtable.

setupFonts

public static void setupFonts()
This is used by the mApp to setup its font list. You should not need to call this, it is done automatically. This sets up the "standard" mApp fonts - include "system", "gui", "text", "big" and "small".


changeMonoMode

public void changeMonoMode()
Deprecated.  


getGraphics

public Graphics getGraphics(boolean newOne)

action

public void action(FieldTransfer ft,
                   Editor ed)
This implements the action() method in FieldListener. By default it does nothing.

Specified by:
action in interface FieldListener

fieldChanged

public void fieldChanged(FieldTransfer ft,
                         Editor ed)
This implements the fieldChanged() method in FieldListener. By default it does nothing.

Specified by:
fieldChanged in interface FieldListener

fieldEvent

public void fieldEvent(FieldTransfer ft,
                       Editor ed,
                       Object event)
This implements the fieldEvent() method in FieldListener. By default it does nothing.

Specified by:
fieldEvent in interface FieldListener

runApplet

public static void runApplet(String[] args)
This calls runApplet(String args[],String extraArgs []) with null extraArgs.


runApplet

public static void runApplet(String[] args,
                             String[] extraArgs)
This is used if the mApp is executed directly by a pure Java interpreter. It must be called inside of the static void main(String args[]) method in your mApp. You must define this if you are creating a build to be used with Microsoft's Jexegen which cannot save a command line inside of the generated executable.
Your main method should pass its arguments to this method along with any extra arguments as needed. Thse two argument lists are then combined to form a final argument list which is then passed to the main() method of ewe.applet.Applet.
For example, here is the main() method of the Solitaire application.
 public static void main(String args[])
 {
 	runApplet(new String[]{"solitaire/Solitaire"},args);
 }