public class Gui extends Object implements UIConstants
Modifier and Type | Field and Description |
---|---|
static int |
APPLET_CAN_MAKE_MORE_FRAMES |
static int |
APPLET_CAN_RESIZE |
static int |
APPLET_IS_AN_APPLET |
static int |
APPLET_STARTS_IN_FRAME |
static boolean |
autoSizing
Set this true to allow controls to attempt to arrange themselves to be suitable
to the target platform.
|
static int |
BIG_SCREEN
A possible flag for screenIs.
|
static int |
CENTER_FRAME |
static int |
DESKTOP_HEIGHT
A possible flag for screenIs.
|
static int |
DESKTOP_SCREEN
A possible flag for screenIs.
|
static int |
DESKTOP_WIDTH
A possible flag for screenIs.
|
static boolean |
disableModalProtection
If a Form is displayed non-modally (using show()), but another Form has already
been displayed modally (using execute()), then the new Form will
not be displayed properly and this can cause event problems, especially
on systems that do not allow multiple Windows.
|
static boolean |
dontPaintNextFrame |
static int |
FILL_FRAME |
static int |
FILL_HEIGHT
This should not be OR'ed with FILL_WIDTH.
|
static int |
FILL_WIDTH
This should not be OR'ed with FILL_HEIGHT.
|
static int |
FLASH_BEEP
An option for flashMessage.
|
static int |
FORCE_WINDOW_RESIZE |
static int |
GRAY_BACKGROUD_FRAME
An option for Form.exec()
|
static DataConverter |
guiDataConverter
Many GUI classes which display data as String need to be formatted for
display.
|
static Hashtable |
guiValues
Hashtable of known GUI values.
|
static boolean |
hasKeyboard |
static boolean |
hasMousePointer |
static boolean |
hasPen |
static boolean |
hasSoftKeyboard |
static boolean |
hasSoftKeys |
static int[] |
iconSizes
These are optional icon sizes that the Gui system will attempt to honor and should be a sorted ascending list of pixel sizes.
|
static boolean |
isPDA |
static boolean |
isSmartPhone |
static boolean |
isSwipable
If this is true then Controls should adjust themselves to work
best with a swiping interface.
|
static int |
LONG_SCREEN
A possible flag for screenIs.
|
static int |
NEW_WINDOW |
static boolean |
noHotLabels
By default, this is set to: !
|
static boolean |
NullParentFrameToMainApp
If you show/exec a Frame with a null parent frame then if NullParentFrameToMainApp
is true, it will use the main frame of the mApp of the program.
|
static int |
PDA_SCREEN
A possible flag for screenIs.
|
static int |
PUTTING_POPUP |
static boolean |
sendFrameOnTopEvents
Set this true if you wish to send FrameEvent.NOT_ON_TOP and FrameEvent.NOW_ON_TOP
events.
|
static boolean |
showActiveControlOnPDA
If this is true, each time a control is activated, it acts as if it were activated by a
keyboard selection (i.e. the used TAB to access it), unless the control was activated by
a pen/mouse press.
|
static boolean |
useNativeTextInput |
static boolean |
useSystemClipboard |
static int |
WIDE_SCREEN
A possible flag for screenIs.
|
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_ABUT_ANY, BF_ABUT_BOTTOM, BF_ABUT_LEFT, BF_ABUT_RIGHT, BF_ABUT_TOP, 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
ALWAYS_STRETCHABLE, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_HIDDEN, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TAG_BACKGROUND_IMAGE, TAG_BUSY_DISPLAY, TAG_COLORS, TAG_CONTROL_PAINTER, TAG_EXPOSE_GROUP, TAG_FIXEDSIZE, TAG_GRAY_BACKGROUND, TAG_HIDE_CONTROL_OBJECT, TAG_HIDE_PARENT, TAG_INNER_TEXT_INSETS, TAG_INPUT_STACK_PARENT, TAG_INSETS, TAG_MAKE_VISIBLE, TAG_MAXIMUMSIZE, TAG_MINIMUMSIZE, TAG_PAINT_CONTROL_LIST, TAG_PREFERRED_TEXT_SIZE, TAG_PREFERRED_TEXT_SIZE_HEIGHT, TAG_PREFERRED_TEXT_SIZE_WIDTH, TAG_PREFERREDSIZE, TAG_RECT, TAG_SHADOW_INSETS, TAG_SPAN, TAG_SWIPER, TAG_TEMPORARY_ERROR, TAG_TEXT_INSETS, TAG_TEXTSIZE, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, ContainerDontPaintChildren, Disabled, DisablePopupMenu, DisplayOnly, DontBuffer, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, ModifiersInheritedFromWindow, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpUIEvents, ShowSIP, ShrinkToNothing, SmallControl, TakeChildUIEvents, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown
Constructor and Description |
---|
Gui() |
Modifier and Type | Method and Description |
---|---|
static void |
addLayoutListener(LayoutListener listener) |
protected static Container |
checkParent(Container parent,
int options) |
static File |
chooseFile(boolean forSaving,
String title,
String masks,
String start) |
static File |
chooseFile(boolean forSaving,
String title,
String masks,
String start,
int fcpOptions,
File baseFile) |
static void |
clearSIPNow(Window window) |
static boolean |
closePopups(Control window)
Close all Frames denoted as popup frames in the Window containing the control.
|
static boolean |
closePopups(Control window,
int why,
int flags) |
static void |
closePopupsFor(Control forControl) |
static PenEvent |
currentPenPress() |
static int |
decodeAlignment(String specs) |
static int |
decodeAnchor(String specs) |
protected static void |
doExecFrame(Frame f,
Container parent,
int options) |
static void |
doSetSIP(Window window,
int newSip)
This will set the SIP immediately in the current Thread.
|
static void |
ensureVisible(Control c) |
static void |
execFrame(Frame f,
Container parent) |
static void |
execFrame(Frame f,
Container parent,
int options)
This will add the frame to the container and call a make() on it.
|
static void |
firstFocus(Control c,
int how) |
static int |
fixShowOptions(Container parent,
int options) |
static void |
flashMessage(String message,
Control parent) |
static void |
flashMessage(String message,
int timeInMillis,
Control parent,
int flash_options) |
static void |
flashMessageOff(Object message)
Remove the short message as displayed by flashMessageOn().
|
static Form |
flashMessageOn(Control toDisplay,
Control parent) |
static Form |
flashMessageOn(Control toDisplay,
Control parent,
String title)
Display a custom Control modally in the center of the Frame of the parent control.
|
static Object |
flashMessageOn(String message,
Control parent)
Display a short message on the screen, and keep it on the screen until
flashMessageOff() is called.
|
static Control |
focusedControl()
Return the Control currently in focus.
|
static void |
frameOnTop(Control c) |
static void |
freezeSIP(Control forWho) |
static int |
getAppletFlags() |
static Rect |
getAppRect(Control ct) |
static Rect |
getAppRect(Control ct,
Rect dest)
This gets the rect of the control relative to the top left of the control's
containing window.
|
static int |
getAsyncKeyState(int key) |
static Form |
getBestFileChooser(FileChooserParameters parameters,
File forFile)
Get the best file chooser Form for the platform.
|
static TextPad |
getBestTextPad(int rows,
int columns) |
static TextPad |
getBestTextPad(int rows,
int columns,
String moreMessage) |
static Color |
getColorFrom(byte[] data,
int whichColor) |
static DataConverter |
getDefaultConverter()
Return the default DataConverter for displaying formatted data.
|
static EventThreadData |
getEventThreadData() |
static int |
getGuiFlags() |
static int |
getGuiFontHeight() |
static char |
getHotKeyFrom(String text)
Given text in the format "Text$hotkey" this returns the hotkey character.
|
static int |
getIconSizeForHeight(int height)
Given the text height, determine the best icon size.
|
static WindowSurface |
getMainWindowSurface() |
static boolean |
getNoMultipleWindows() |
static Frame |
getPopupMenuParentFrame(Control c)
This returns the parent frame for a control's popup menu.
|
static Point |
getPosInParent(Control c,
Container parent,
Point dest) |
static Dimension |
getPreferredDialogSize() |
static Rect |
getRectInParent(Control ct,
Control parent,
Rect dest,
boolean onlyIfVisible,
Point actualPosition) |
static Rect |
getRectInWindow(Control ct,
Rect dest,
boolean onlyIfVisible)
This gets the rect of the control relative to the top left of the controls
containing window.
|
static Rect |
getRectInWindow(Control ct,
Rect dest,
boolean onlyIfVisible,
Point actualPosition)
This gets the rect of the control relative to the top left of the controls
containing window.
|
static int |
getReturnedInteger(Object value) |
static double[] |
getScreenDPI(Control forControl) |
static Dimension |
getScreenSize()
This returns a static Dimension - do not change its contents.
|
static int |
getSIP(Window window) |
static String |
getTextFrom(String text)
Given text in the format "Text$hotkey" this returns the text string without the hotkey character.
|
static Form |
getTopmostForm(Control c) |
static Window |
getWindowForCurrentThread()
If the current thread is a Window event handling thread return the Window it is associated with,
otherwise return null.
|
static Frame |
getWindowFrame(Control forWho)
Get the root frame for the control that is not the Window contents Frame.
|
static boolean |
hasLayoutListeners() |
static boolean |
hasPendingEvents() |
static boolean |
hasPopup(Control window) |
static void |
hideFrame(Frame f) |
static boolean |
iconize(Control c,
IImage image) |
static boolean |
iconize(Control c,
IImage image,
boolean leaveText,
FontMetrics fm)
This will iconize a button/control that has its text already set.
|
static boolean |
iconize(Control c,
String image,
boolean leaveText,
FontMetrics fm)
This will iconize a button/control that has its text already set.
|
static boolean |
inPenPress() |
static boolean |
isEmbeddedApplet() |
static boolean |
isWindowFrame(Frame f)
This returns true if the Frame is the main frame of a window.
|
static String |
makeHot(String label)
Convert a '$' formatted hotkey into a "true" hotkey encoded String.
|
static String |
makeHot(String label,
int hotKey)
Deprecated.
- use makeHot(String,int,CharArray) instead.
|
static CharArray |
makeHot(String label,
int hotKey,
CharArray dest)
Given a label and a hotKey make a text string that will display the hot key
underlined when drawn on a Graphics.
|
static void |
moveFrameTo(Frame f,
Rect where) |
static Object |
pauseCurrentWindowThread()
If the current thread is a Window event handling thread then disable the Window and
start a new Thread to allow for repaint/resize handling.
|
static boolean |
pressedOutsideTopFrame(Control onWho,
Point whereOnWho)
This is called if a Control detects that the user pressed the pen on an area
of the screen that is not covered by the top-most frame.
|
static void |
refreshScreen(Control c) |
static void |
refreshScreen(Window w) |
static void |
refreshScreen(Window w,
Rect area) |
static void |
refreshTopFrame(Control who) |
static void |
removeFrom(Container c,
Control ctrl) |
static void |
removeLayoutListener(LayoutListener listener) |
static boolean |
removing(Control c)
Call this if you are removing a Control from the screen and you want to ensure
that any Control that has the focus and which may be a child of the Control being
removed
will lose the focus.
|
static boolean |
requestPaint(Control who) |
static void |
resetFlags()
This resets the values of: hasMousePointer, hasPen, hasKeyboard, isSmartPhone, isPDA and noHotLabels
depending on the new values of the VM parameters that may have changed.
|
static void |
resumeCurrentWindowThread(Object fromPause)
If the current thread is a Window event handling thread then disable the Window and
start a new Thread to allow for repaint/resize handling.
|
static SavedScreen |
saveScreen(Window w,
Rect area,
boolean doCapture) |
static boolean |
screenIs(int flags)
Check if the user screen is of a certain type.
|
static void |
setAllParentFrame(Frame f)
Set the system to believe that multiple windows are not possible and that
all new Frames should be shown in the specified Frame.
|
static void |
setAppFormTitle(Form form,
String title)
This will setup an the title bar on a Form if the main ewe window does
not have a title and a close button.
|
static void |
setCurrentPenPress(PenEvent ev) |
static int |
setCursor(int cursor)
This sets the cursor of the currently active window.
|
static void |
setFormTitle(Window w,
Form form,
String title)
This will setup an the title bar on a Form if the main ewe window does
not have a title and a close button.
|
static void |
setNoMultipleWindows()
This forces the system to act as if multiple windows are not supported.
|
static void |
setOKCancel(Form f)
This will set the OK/Cancel of a form to be either in the title bar (for mobile devices)
or on the bottom for desktop devices.
|
static void |
setOKCancel(Form f,
boolean useNonDefaultButtons)
This will set the OK/Cancel of a form to be either in the title bar (for mobile devices)
or on the bottom for desktop devices.
|
static void |
setRect(Control dest,
int x,
int y,
int width,
int height,
Object layoutManager) |
static void |
setSIP(Window win,
int sip) |
static void |
setSwipableOnPDA() |
static void |
setupFullScreen(boolean simulateDoubleSoftKeys)
This must be called in eveMain().
|
static void |
setupFullScreen(int simulateSoftkeys)
This must be called in eveMain().
|
protected static Container |
setupNewWindow(Frame f,
Container parent,
boolean modal) |
static void |
showFrame(Frame f,
Container parent) |
static void |
showFrame(Frame f,
Container parent,
int options)
This will add the frame to the container and call a make() on it.
|
static void |
showWait(boolean showOrHide)
Call showWait() on the active window.
|
static void |
showWait(Control forWho,
boolean showOrHide)
Call showWait() on the window containing the control.
|
static void |
simulateSoftkeysOnPDA()
This must be called in eveMain() and is used to simulate the SoftKeyBar
on a PDA that does not normally support them (e.g.
|
static void |
simulateSoftkeysOnPDA(int softkeyType)
This must be called in eveMain() and
makes a PocketPC style PDA act like a Windows Mobile 5/6 Smartphone/PocketPC
with two Soft keys on the bottom or an Android type Smartphone
with a single menu key.
|
static void |
takeFocus(Control c,
int how)
This tells the Gui to assign focus to a particular control.
|
static Frame |
topFrame(Control who)
Returns the topmost Frame for the Window that a Control is on.
|
static Rect |
visibleWindowClientArea(Control who,
Rect dest)
This returns the area on the Window of the control that is not obscured by the SIP.
|
static Frame |
windowFrame(Control who)
This returns the very top frame in a window.
|
static void |
yieldToEvents(int max)
Yield to GUI events if any are pending up to a maximum length of time.
|
public static DataConverter guiDataConverter
public static boolean NullParentFrameToMainApp
public static boolean disableModalProtection
public static boolean useSystemClipboard
public static boolean hasMousePointer
public static boolean hasPen
public static boolean hasKeyboard
public static boolean isSmartPhone
public static boolean isPDA
public static boolean useNativeTextInput
public static boolean hasSoftKeys
public static boolean hasSoftKeyboard
public static boolean noHotLabels
but you can change it as you wish.
public static Hashtable guiValues
"ActiveTitleBarColor" = Color of active title bar.
public static final int APPLET_IS_AN_APPLET
public static final int APPLET_CAN_RESIZE
public static final int APPLET_CAN_MAKE_MORE_FRAMES
public static final int APPLET_STARTS_IN_FRAME
public static final int CENTER_FRAME
public static final int FILL_FRAME
public static final int FILL_WIDTH
public static final int FILL_HEIGHT
public static final int NEW_WINDOW
public static final int PUTTING_POPUP
public static final int FORCE_WINDOW_RESIZE
public static final int GRAY_BACKGROUD_FRAME
public static final int BIG_SCREEN
public static final int WIDE_SCREEN
public static final int LONG_SCREEN
public static final int DESKTOP_SCREEN
public static final int DESKTOP_WIDTH
public static final int DESKTOP_HEIGHT
public static final int PDA_SCREEN
public static boolean dontPaintNextFrame
public static boolean showActiveControlOnPDA
public static boolean sendFrameOnTopEvents
public static final int FLASH_BEEP
public static boolean isSwipable
public static int[] iconSizes
public static boolean autoSizing
public static DataConverter getDefaultConverter()
public static Color getColorFrom(byte[] data, int whichColor)
public static void resetFlags()
public static void showWait(boolean showOrHide)
showOrHide
- true to show the wait cursor, false to hide it.
For every call with showOrHide true, the must be a corresponding
call with showOrHide false in order to restore the cursor
to its correct state.public static void showWait(Control forWho, boolean showOrHide)
forWho
- the Control in the window to show wait for. If this
is null then the active window is used.showOrHide
- true to show the wait cursor, false to hide it.
For every call with showOrHide true, the must be a corresponding
call with showOrHide false in order to restore the cursor
to its correct state.public static int setCursor(int cursor)
public static int getAsyncKeyState(int key)
public static void setSIP(Window win, int sip)
public static int getSIP(Window window)
public static void doSetSIP(Window window, int newSip)
window
- the window to set the SIP for. This can be null for the active window.newSip
- the new SIP mode.public static void clearSIPNow(Window window)
public static final char getHotKeyFrom(String text)
text
- The text for the control with the included hotkey.public static final String getTextFrom(String text)
text
- The text for the control with the included hotkey.public static final CharArray makeHot(String label, int hotKey, CharArray dest)
label
- the label.hotKey
- the hotkey.dest
- a destination CharArray which will be set to zero length before
this text is appended.public static final String makeHot(String label, int hotKey)
label
- The pure String.hotKey
- The hotkey (if any) to apply to the String.public static final String makeHot(String label)
label
- The '$' formatted hotkey.public static final int getAppletFlags()
public static boolean isEmbeddedApplet()
public static boolean isWindowFrame(Frame f)
public static int getReturnedInteger(Object value)
public static Rect getRectInWindow(Control ct, Rect dest, boolean onlyIfVisible)
public static Rect getRectInWindow(Control ct, Rect dest, boolean onlyIfVisible, Point actualPosition)
ct
- the control.dest
- a destination rectangle. When this method returns
the x and y co-ordinates hold the x and y co-ordinates of the
top left unclipped portion of the Control relative to the Window.
The width and height hold the unclipped width and height of the Control.onlyIfVisible
- if this is true and no part of the Control is
visible, then null is returned.actualPosition
- if this is not null this will hold the x and y co-ordinate of the top left
corner of the Control regardless of any clipping.public static Rect getRectInParent(Control ct, Control parent, Rect dest, boolean onlyIfVisible, Point actualPosition)
public static Rect getAppRect(Control ct, Rect dest)
public static SavedScreen saveScreen(Window w, Rect area, boolean doCapture)
public static void refreshScreen(Window w)
public static void refreshScreen(Control c)
public static boolean pressedOutsideTopFrame(Control onWho, Point whereOnWho)
onWho
- the Control that was pressed.whereOnWho
- the Point on the Control that was pressed.public static boolean requestPaint(Control who)
public static void refreshTopFrame(Control who)
public static void setNoMultipleWindows()
public static boolean getNoMultipleWindows()
public static Frame getPopupMenuParentFrame(Control c)
public static Dimension getScreenSize()
public static boolean screenIs(int flags)
flags
- One of the XXX_SCREEN or DESKTOP_XXX constants.public static void setAllParentFrame(Frame f)
public static boolean closePopups(Control window)
window
- Either the window or a Control within the window.public static boolean closePopups(Control window, int why, int flags)
public static boolean hasPopup(Control window)
public static void closePopupsFor(Control forControl)
public static void execFrame(Frame f, Container parent, int options)
public static int fixShowOptions(Container parent, int options)
public static void showFrame(Frame f, Container parent, int options)
public static void freezeSIP(Control forWho)
public static EventThreadData getEventThreadData()
public static boolean inPenPress()
public static PenEvent currentPenPress()
public static void setCurrentPenPress(PenEvent ev)
public static void hideFrame(Frame f)
public static Frame windowFrame(Control who)
public static Rect visibleWindowClientArea(Control who, Rect dest)
public static void frameOnTop(Control c)
public static Control focusedControl()
public static Frame getWindowFrame(Control forWho)
forWho
- public static Frame topFrame(Control who)
who
- the Window or child of the Window.public static boolean removing(Control c)
c
- the Control being removed.public static void ensureVisible(Control c)
public static void firstFocus(Control c, int how)
public static void takeFocus(Control c, int how)
c
- The control to receive the focus, or null to remove the focus altogether.how
- Should be Control.ByRequest for a programmatic focus change. But it can also be:
Control.ByKeyboard, Control.ByMouse, Control.ByPen (same as ByMouse), Control.ByFrameChange.public static Object flashMessageOn(String message, Control parent)
message
- A single-line message to display.parent
- The parent Control.public static Form flashMessageOn(Control toDisplay, Control parent, String title)
toDisplay
- the Control to display.parent
- the parent Control to display the control in.public static void flashMessageOff(Object message)
message
- The object returned by flashMessageOn().public static void flashMessage(String message, int timeInMillis, Control parent, int flash_options)
public static WindowSurface getMainWindowSurface()
public static int getGuiFlags()
public static void setAppFormTitle(Form form, String title)
public static void setFormTitle(Window w, Form form, String title)
public static void setOKCancel(Form f, boolean useNonDefaultButtons)
public static void setOKCancel(Form f)
public static boolean iconize(Control c, String image, boolean leaveText, FontMetrics fm)
public static boolean iconize(Control c, IImage image, boolean leaveText, FontMetrics fm)
public static int decodeAnchor(String specs)
public static int decodeAlignment(String specs)
public static Dimension getPreferredDialogSize()
public static TextPad getBestTextPad(int rows, int columns)
public static Form getBestFileChooser(FileChooserParameters parameters, File forFile)
parameters
- the parameters for the file chooser.forFile
- the file to execute the chooser for. If this is not null and the
method getBestFileChooser() of the File returns a valid Form - then that Form
will be returned.public static File chooseFile(boolean forSaving, String title, String masks, String start, int fcpOptions, File baseFile)
public static File chooseFile(boolean forSaving, String title, String masks, String start)
public static boolean hasPendingEvents()
public static void yieldToEvents(int max)
Note that calls to Device.yieldToEvents() will end up at this call here once the eve.ui package is present.
max
- the maximum length of time to yield while there are still events pending.public static void simulateSoftkeysOnPDA(int softkeyType)
softkeyType
- one of the SoftKeyBar.TYPE_XXX values.public static void setSwipableOnPDA()
public static void simulateSoftkeysOnPDA()
public static void setupFullScreen(int simulateSoftkeys)
simulateSoftKeys
- one of the SoftKeyBar.TYPE_XXX values
to simulate a SoftKeyBar on a mobile system that does not have
any (e.g. PocketPC 200x), use TYPE_NONE not to simulate a SoftKeyBar.public static void setupFullScreen(boolean simulateDoubleSoftKeys)
simulateDoubleSoftKeys
- true to simulate a double SoftKeyBar on a
mobile system that does not have any (e.g. PocketPC 200x), false
not to simulate a SoftKeyBar..public static double[] getScreenDPI(Control forControl)
public static int getIconSizeForHeight(int height)
textHeight
- public static Window getWindowForCurrentThread()
public static Object pauseCurrentWindowThread()
public static void resumeCurrentWindowThread(Object fromPause)
public static boolean hasLayoutListeners()
public static void addLayoutListener(LayoutListener listener)
public static void removeLayoutListener(LayoutListener listener)
public static void setRect(Control dest, int x, int y, int width, int height, Object layoutManager)
public static int getGuiFontHeight()