|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.UiAccess
public final class UiAccess
Allows to access J2ME Polish specific features in a standard compliant way.
When a ScreenStateListener is registered with a screen, it will get notified when the screen changes its focus or another internal state (like changing a tab in the TabbedForm).
Copyright (c) Enough Software 2005 - 2009
history
31-Jan-2006 - rob creation
| Field Summary | |
|---|---|
static int |
CONSTRAINT_FIXED_POINT_DECIMAL
A constant for using the FIXED_POINT_DECIMAL constraint on TextFields. |
static int |
DOWN_PRESSED
The bit representing the DOWN key. |
static int |
FIRE_PRESSED
The bit representing the FIRE key. |
static int |
GAME_A_PRESSED
The bit representing the GAME_A key (may not be supported on all devices). |
static int |
GAME_B_PRESSED
The bit representing the GAME_B key (may not be supported on all devices). |
static int |
GAME_C_PRESSED
The bit representing the GAME_C key (may not be supported on all devices). |
static int |
GAME_D_PRESSED
The bit representing the GAME_D key (may not be supported on all devices). |
static int |
LEFT_PRESSED
The bit representing the LEFT key. |
static int |
MODE_FIRST_UPPERCASE
A constant for setting the input mode of an TextField to uppercase for the first character, followed by lowercase characters. |
static int |
MODE_LOWERCASE
A constant for setting the input mode of an TextField to lowercase. |
static int |
MODE_NATIVE
A constant for setting the input mode of an TextField to it't native input - that's useful for using T9 and similar input helpers. |
static int |
MODE_NUMBERS
A constant for setting the input mode of an TextField to numbers. |
static int |
MODE_UPPERCASE
A constant for setting the input mode of an TextField to uppercase. |
static int |
RIGHT_PRESSED
The bit representing the RIGHT key. |
static int |
UP_PRESSED
The bit representing the UP key. |
| Method Summary | |
|---|---|
static void |
addItemCommand(List list,
int index,
Command command)
Adds a command to a list item. |
static void |
addItemCommand(List list,
int index,
Command command)
Adds a command to a list item. |
static void |
addSubCommand(Command child,
Command parent,
Screen screen)
Adds the given command as a subcommand to the defined screen. |
static void |
addSubCommand(Command child,
Command parent,
Screen screen)
Adds the given command as a subcommand to the defined screen. |
static void |
addSubCommand(Command child,
Command parent,
Screen screen)
Adds the given command as a subcommand to the defined screen. |
static void |
addSubCommand(Command child,
Command parent,
Screen screen,
Style style)
Adds the given command as a subcommand to the defined screen. |
static int |
append(Item item,
Form form)
Adds the specified (J2ME Polish) item to the given form. |
static int |
append(Item item,
Form form)
Adds the specified (J2ME Polish) item to the given form. |
static int |
append(Ticker ticker,
Form form)
Adds a ticker as a normal item to the specified form. |
static void |
appendChoiceGroupItem(ChoiceGroup ChoiceGroup,
ChoiceItem item)
Appends a ChoiceItem or a subclass to the given ChoiceGroup. |
static void |
appendChoiceGroupItem(ChoiceGroup ChoiceGroup,
ChoiceItem item)
Sets a ChoiceItem or a subclass for the given ChoiceGroup. |
static void |
appendListItem(List list,
ChoiceItem item)
Sets a ChoiceItem or a subclass for the given list. |
static void |
appendListItem(List list,
ChoiceItem item)
Sets a ChoiceItem or a subclass for the given list. |
static Command |
cast(Command cmd)
Casts the given MIDP command into a J2ME Polish command |
static Command |
cast(Command cmd)
Casts the given J2ME Polish command into a MIDP command |
static CommandListener |
cast(CommandListener cmd)
Casts the given MIDP CommandListener into a J2ME Polish CommandListener |
static CommandListener |
cast(CommandListener cmd)
Casts the given J2ME Polish CommandListener into a MIDP CommandListener |
static Displayable |
cast(Displayable disp)
Casts the given MIDP Displayable into a J2ME Polish Displayable |
static Displayable |
cast(Displayable disp)
Casts the given J2ME Polish Displayable into a MIDP Displayable |
static Item |
cast(Item item)
Casts the given LCDUI item into a J2ME Polish item |
static Item |
cast(Item item)
Casts the given J2ME Polish item into a LCDUI item |
static Item[] |
cast(Item[] items)
Casts the given LCDUI items into J2ME Polish items |
static Item[] |
cast(Item[] items)
Casts the given J2ME Polish items into a LCDUI items |
static void |
defocus(Item item,
Style style)
Defocuses the given item and sets the style to the specified one. |
static boolean |
delete(Form form,
Item item)
Deletes the specified item from the form |
static boolean |
delete(Form form,
Item item)
Deletes the specified item from the form |
static void |
emitGameActionPress(int gameAction)
Simulates a keyPressed event. |
static void |
emitGameActionRelease(int gameAction)
Simulates a keyReleased event. |
static void |
emitKeyPress(int keyCode)
Simulates a keyPressed event. |
static void |
emitKeyRelease(int keyCode)
Simulates a keyReleased event. |
static void |
emitKeyRepeated(int keyCode)
Simulates a keyRepeated event. |
static void |
enableScreenChangeAnimation(Screen screen,
boolean enable)
Enables or disables screen change animations for the specified screen |
static void |
enableScreenChangeAnimation(Screen screen,
boolean enable)
Enables or disables screen change animations for the specified screen |
static void |
enableScreenChangeAnimations(boolean enable)
Enables or disables screen change animations |
static void |
fireEvent(String name,
Item item,
Object data)
Fires an event for the specified item and all its subitems. |
static void |
fireEvent(String name,
Item item,
Object data)
Fires an event for the specified item and all its subitems. |
static void |
fireEvent(String name,
Screen screen,
Object data)
Fires an event for the specified screen and all its components. |
static void |
fireEvent(String name,
Screen screen,
Object data)
Fires an event for the specified screen and all its components. |
static void |
fireEventForTitleAndMenubar(String name,
Screen screen,
Object data)
Fires an event for the title and menubar of the specified screen. |
static void |
fireEventForTitleAndMenubar(String name,
Screen screen,
Object data)
Fires an event for the title and menubar of the specified screen. |
static void |
focus(ChoiceGroup choiceGroup,
int index)
Focuses the specified item on the given choice group. |
static void |
focus(ChoiceGroup choiceGroup,
int index)
Focuses the specified item on the given choice group. |
static Style |
focus(Item item,
int direction,
Style style)
Focusses the given item with the specified style. |
static void |
focus(Screen screen,
int index)
Focuses the specified item on the given screen. |
static void |
focus(Screen screen,
int index)
Focuses the specified item on the given screen. |
static void |
focus(Screen screen,
Item item)
Focuses the specified item on the given screen. |
static void |
focus(Screen screen,
Item item)
Focuses the specified item on the given screen. |
static void |
focus(Screen screen,
Item item)
Focuses the specified item on the given screen. |
static void |
focus(Screen screen,
Item item)
Focuses the specified item on the given screen. |
static Object |
getAttribute(Item item,
Object key)
Gets an previously added attribute of the specified item. |
static Object |
getAttribute(Item item,
Object key)
Gets an previously added attribute of the specified item. |
static Object |
getAttribute(List list,
int index,
Object key)
Gets an previously added attribute of the specified item. |
static Object |
getAttribute(List list,
int index,
Object key)
Gets an previously added attribute of the specified item. |
static HashMap |
getAttributes(Item item)
Returns a HashMap object with all registered attributes. |
static HashMap |
getAttributes(Item item)
Returns a HashMap object with all registered attributes. |
static HashMap |
getAttributes(List list,
int index)
Returns a HashMap object with all registered attributes. |
static HashMap |
getAttributes(List list,
int index)
Returns a HashMap object with all registered attributes. |
static Background |
getBackground(Item item)
Retrieves the background of the given item. |
static Background |
getBackground(Item item)
Retrieves the background of the given item. |
static Background |
getBackground(Screen screen)
Retrieves the background of the given screen. |
static Background |
getBackground(Screen screen)
Retrieves the background of the given screen. |
static ChoiceItem |
getChoiceGroupItem(ChoiceGroup ChoiceGroup,
int index)
Retrieves a ChoiceItem or a subclass for the given ChoiceGroup. |
static ChoiceItem |
getChoiceGroupItem(ChoiceGroup ChoiceGroup,
int index)
Retrieves a ChoiceItem or a subclass for the given ChoiceGroup. |
static CommandListener |
getCommandListener(Screen screen)
Retrieves the command listener belonging to this screen. |
static CommandListener |
getCommandListener(Screen screen)
Retrieves the command listener belonging to this screen. |
static int |
getContentHeight(Screen screen)
Retrieves the vertical content width for the given screen. |
static int |
getContentHeight(Screen screen)
Retrieves the vertical content width for the given screen. |
static int |
getContentWidth(Screen screen)
Retrieves the horizontal content width for the given screen. |
static int |
getContentWidth(Screen screen)
Retrieves the horizontal content width for the given screen. |
static int |
getContentX(Screen screen)
Retrieves the horizontal content start for the given screen. |
static int |
getContentX(Screen screen)
Retrieves the horizontal content start for the given screen. |
static int |
getContentY(Screen screen)
Retrieves the vertical content start for the given screen. |
static int |
getContentY(Screen screen)
Retrieves the vertical content start for the given screen. |
static Object |
getData(Screen screen)
Retrieves screen specific data. |
static Object |
getData(Screen screen)
Retrieves screen specific data. |
static String |
getDotSeparatedDecimalString(TextField field)
Retrieves the decimal value entered with a dot as the decimal mark. |
static String |
getDotSeparatedDecimalString(TextField field)
Retrieves the decimal value entered with a dot as the decimal mark. |
static int |
getFocusedIndex(ChoiceGroup group)
Retrieves the currently focused item of the specified ChoiceGroup |
static int |
getFocusedIndex(ChoiceGroup group)
Retrieves the currently focused item of the specified ChoiceGroup |
static int |
getFocusedIndex(Screen screen)
Retrieves the focused index of the specified screen |
static int |
getFocusedIndex(Screen screen)
Retrieves the focused index of the specified screen |
static Item |
getFocusedItem(Screen screen)
Retrieves the focused index of the specified screen |
static Item |
getFocusedItem(Screen screen)
Retrieves the focused index of the specified screen |
static int |
getInputMode(TextBox box)
Retrieves the input mode for the given textbox. |
static int |
getInputMode(TextBox box)
Retrieves the input mode for the given textbox. |
static int |
getInputMode(TextField field)
Retrieves the input mode for the given textfield. |
static int |
getInputMode(TextField field)
Retrieves the input mode for the given textfield. |
static int |
getInternalHeight(Item item)
Retrieves the internal height of the given item. |
static int |
getInternalHeight(Item item)
Retrieves the internal height of the given item. |
static int |
getInternalWidth(Item item)
Retrieves the internal width of the given item. |
static int |
getInternalWidth(Item item)
Retrieves the internal width of the given item. |
static int |
getInternalX(Item item)
Retrieves the internal x position of the given item. |
static int |
getInternalX(Item item)
Retrieves the internal x position of the given item. |
static int |
getInternalY(Item item)
Retrieves the internal y position of the given item. |
static int |
getInternalY(Item item)
Retrieves the internal y position of the given item. |
static int |
getKeyStates()
Gets the states of the physical game keys. |
static ChoiceItem |
getListItem(List list,
int index)
Retrieves a ChoiceItem or a subclass for the given list. |
static ChoiceItem |
getListItem(List list,
int index)
Retrieves a ChoiceItem or a subclass for the given list. |
static int |
getNumberOfDecimalFractions(TextField field)
Retrieves the number of decimal fractions that are allowed for FIXED_POINT_DECIMAL constrained TextFields |
static int |
getNumberOfDecimalFractions(TextField field)
Retrieves the number of decimal fractions that are allowed for FIXED_POINT_DECIMAL constrained TextFields |
static Object |
getPaintLock(Screen screen)
Retrieves the lock object for the paint thread. |
static Object |
getPaintLock(Screen screen)
Retrieves the lock object for the paint thread. |
static ArrayList |
getPredictiveMatchingWords(TextField field)
Retrieves matching words for the specified textfield. |
static ArrayList |
getPredictiveMatchingWords(TextField field)
Retrieves matching words for the specified textfield. |
static int[] |
getRgbData(Item item)
Retrieves the RGB data of the specified item. |
static int[] |
getRgbData(Item item)
Retrieves the RGB data of the specified item. |
static int[] |
getRgbData(Item item,
int opacity)
Retrieves the RGB data of the specified item. |
static int[] |
getRgbData(Item item,
int opacity)
Retrieves the RGB data of the specified item. |
static int[] |
getRgbDataOfContent(Item item)
Retrieves the RGB data of the specified item's content without using a view-type/ItemView. |
static int[] |
getRgbDataOfContent(Item item)
Retrieves the RGB data of the specified item's content without using a view-type/ItemView. |
static void |
getRgbDataOfContent(Item item,
int[] rgbData,
int x,
int y,
int width)
Retrieves the RGB data of the specified item's content without using a view-type/ItemView. |
static void |
getRgbDataOfContent(Item item,
int[] rgbData,
int x,
int y,
int width)
Retrieves the RGB data of the specified item's content without using a view-type/ItemView. |
static Container |
getScreenContainer(Screen screen)
Retrieves the container of the screen. |
static Container |
getScreenContainer(Screen screen)
Retrieves the container of the screen. |
static Style |
getStyle(Item item)
Gets the current style of the given item. |
static Style |
getStyle(Item item)
Gets the current style of the given item. |
static Style |
getStyle(Screen screen)
Gets the current style of the given screen. |
static Style |
getStyle(Screen screen)
Gets the current style of the given screen. |
static String |
getText(Item item)
Retrieves text from a J2ME Polish item. |
static String |
getText(Item item)
Retrieves text from a J2ME Polish item. |
static List |
getTextFieldSymbols()
Initializes the symbols list and returns it |
static int |
getTitleHeight(Screen screen)
Determines the height of the title of the specified screen. |
static int |
getTitleHeight(Screen screen)
Determines the height of the title of the specified screen. |
static Item |
getTitleItem(Screen screen)
Retrieves the title of the specified screen as an Item |
static Item |
getTitleItem(Screen screen)
Retrieves the title of the specified screen as an Item |
static UiEventListener |
getUiEventListener(Item item)
Retrieves an UiEventListener for the specified item |
static UiEventListener |
getUiEventListener(Item item)
Retrieves an UiEventListener for the specified item |
static UiEventListener |
getUiEventListener(Screen screen)
Retrieves an UiEventListener for the specified screen and its items. |
static UiEventListener |
getUiEventListener(Screen screen)
Retrieves an UiEventListener for the specified screen and its items. |
static boolean |
handleCommand(Item item,
Command cmd)
Asks the specified item to handle the command. |
static boolean |
handleCommand(Item item,
Command cmd)
Asks the specified item to handle the command. |
static boolean |
handleCommand(Screen screen,
Command cmd)
Asks the specified screen to handle the command. |
static boolean |
handleCommand(Screen screen,
Command cmd)
Asks the specified screen to handle the command. |
static boolean |
handleKeyPressed(Item item,
int keyCode,
int gameAction)
Forwards a key event to the specified item. |
static boolean |
handleKeyPressed(Item item,
int keyCode,
int gameAction)
Forwards a key event to the specified item. |
static boolean |
handleKeyPressed(Screen screen,
int keyCode,
int gameAction)
Forwards a key event to the specified screen. |
static boolean |
handleKeyPressed(Screen screen,
int keyCode,
int gameAction)
Forwards a key event to the specified screen. |
static boolean |
handleKeyReleased(Item item,
int keyCode,
int gameAction)
Forwards a key event to the specified item. |
static boolean |
handleKeyReleased(Item item,
int keyCode,
int gameAction)
Forwards a key event to the specified item. |
static boolean |
handleKeyReleased(Screen screen,
int keyCode,
int gameAction)
Forwards a key event to the specified screen. |
static boolean |
handleKeyReleased(Screen screen,
int keyCode,
int gameAction)
Forwards a key event to the specified screen. |
static boolean |
handleKeyRepeated(Item item,
int keyCode,
int gameAction)
Forwards a key event to the specified item. |
static boolean |
handleKeyRepeated(Item item,
int keyCode,
int gameAction)
Forwards a key event to the specified item. |
static boolean |
handleKeyRepeated(Screen screen,
int keyCode,
int gameAction)
Forwards a key event to the specified screen. |
static boolean |
handleKeyRepeated(Screen screen,
int keyCode,
int gameAction)
Forwards a key event to the specified screen. |
static boolean |
handlePointerDragged(Item item,
int x,
int y)
Forwards a pointer event to the specified item. |
static boolean |
handlePointerDragged(Item item,
int x,
int y)
Forwards a pointer event to the specified item. |
static boolean |
handlePointerPressed(Item item,
int x,
int y)
Forwards a pointer event to the specified item. |
static boolean |
handlePointerPressed(Item item,
int x,
int y)
Forwards a pointer event to the specified item. |
static boolean |
handlePointerPressed(Screen screen,
int x,
int y)
Forwards a key event to the specified screen. |
static boolean |
handlePointerPressed(Screen screen,
int x,
int y)
Forwards a key event to the specified screen. |
static boolean |
handlePointerReleased(Item item,
int x,
int y)
Forwards a pointer event to the specified item. |
static boolean |
handlePointerReleased(Item item,
int x,
int y)
Forwards a pointer event to the specified item. |
static boolean |
handlePointerReleased(Screen screen,
int x,
int y)
Forwards a pointer event to the specified screen. |
static boolean |
handlePointerReleased(Screen screen,
int x,
int y)
Forwards a pointer event to the specified screen. |
static void |
hideNotify(Item item)
Calls hide notify on the specified item. |
static void |
hideNotify(Item item)
Calls hide notify on the specified item. |
static int |
indexOf(Item item,
Screen screen)
Retrieves the index of the specified item in the screen. |
static int |
indexOf(Item item,
Screen screen)
Retrieves the index of the specified item in the screen. |
static int |
indexOf(Item item,
Screen screen)
Retrieves the index of the specified item in the screen. |
static int |
indexOf(Item item,
Screen screen)
Retrieves the index of the specified item in the screen. |
static void |
init(Item item,
int firstLineWidth,
int availWidth,
int availHeight)
Intializes the specified item with the specified dimensions |
static void |
init(Item item,
int firstLineWidth,
int availWidth,
int availHeight)
Intializes the specified item with the specified dimensions |
static void |
init(Screen screen)
Intializes the specified screen |
static boolean |
isGameActionFire(int keyCode,
int gameAction,
Screen screen)
Determines whether the given key is really a Canvas.FIRE game action |
static boolean |
isGameActionFire(int keyCode,
int gameAction,
Screen screen)
Determines whether the given key is really a Canvas.FIRE game action |
static boolean |
isMenuOpened(Screen screen)
Checks whether the commands menu of the screen is currently opened. |
static boolean |
isMenuOpened(Screen screen)
Checks whether the commands menu of the screen is currently opened. |
static boolean |
isSoftKey(int keyCode,
int gameAction,
Screen screen)
Determines whether the given key code is a soft key for the given screen. |
static boolean |
isSoftKey(int keyCode,
int gameAction,
Screen screen)
Determines whether the given key code is a soft key for the given screen. |
static boolean |
isSoftKey(int keyCode,
Screen screen)
Determines whether the given key code is a soft key for the given screen. |
static boolean |
isSoftKey(int keyCode,
Screen screen)
Determines whether the given key code is the middle soft key for the given screen. |
static boolean |
isSoftKeyLeft(int keyCode,
int gameAction,
Screen screen)
Determines whether the given key code is the left soft key for the given screen. |
static boolean |
isSoftKeyLeft(int keyCode,
int gameAction,
Screen screen)
Determines whether the given key code is the left soft key for the given screen. |
static boolean |
isSoftKeyLeft(int keyCode,
Screen screen)
Determines whether the given key code is the left soft key for the given screen. |
static boolean |
isSoftKeyLeft(int keyCode,
Screen screen)
Determines whether the given key code is the left soft key for the given screen. |
static boolean |
isSoftKeyMiddle(int keyCode,
int gameAction,
Screen screen)
Determines whether the given key code is the middle soft key for the given screen. |
static boolean |
isSoftKeyMiddle(int keyCode,
int gameAction,
Screen screen)
Determines whether the given key code is the middle soft key for the given screen. |
static boolean |
isSoftKeyMiddle(int keyCode,
Screen screen)
Determines whether the given key code is the middle soft key for the given screen. |
static boolean |
isSoftKeyMiddle(int keyCode,
Screen screen)
Determines whether the given key code is the middle soft key for the given screen. |
static boolean |
isSoftKeyRight(int keyCode,
int gameAction,
Screen screen)
Determines whether the given key code is the right soft key for the given screen. |
static boolean |
isSoftKeyRight(int keyCode,
int gameAction,
Screen screen)
Determines whether the given key code is the right soft key for the given screen. |
static boolean |
isSoftKeyRight(int keyCode,
Screen screen)
Determines whether the given key code is the right soft key for the given screen. |
static boolean |
isSoftKeyRight(int keyCode,
Screen screen)
Determines whether the given key code is the right soft key for the given screen. |
static boolean |
isVisible(Item item)
Gets the visible status of the specified item. |
static boolean |
isVisible(Item item)
Gets the visible status of the specified item. |
static boolean |
isVisible(List list,
int index)
Gets the visible status of the specified list-item. |
static boolean |
isVisible(List list,
int index)
Gets the visible status of the specified list-item. |
static void |
notifyItemPressedEnd(Item item)
Makes the notifyItemPressedEnd method publicly available. |
static void |
notifyItemPressedEnd(Item item)
Makes the notifyItemPressedEnd method publicly available. |
static void |
notifyItemPressedStart(Item item)
Makes the notifyItemPressedStart method publicly available. |
static void |
notifyItemPressedStart(Item item)
Makes the notifyItemPressedStart method publicly available. |
static void |
releaseResources()
Releases all (memory) instensive resources that are currently hold by the J2ME Polish GUI. |
static void |
releaseResources(Screen screen)
Releases all (memory) instensive resources that are currently hold by the J2ME Polish GUI for the specified screen. |
static void |
releaseResources(Screen screen)
Releases all (memory) instensive resources that are currently hold by the J2ME Polish GUI for the specified screen. |
static void |
releaseResourcesOnScreenChange()
Releases all (memory) instensive resources that are currently hold by the J2ME Polish GUI when a non-J2ME Polish screen is shown. |
static void |
removeAllCommands(Screen screen)
Removes all commands from the given screen This option is only available when the "menu" fullscreen mode is activated. |
static void |
removeAllCommands(Screen screen)
Removes all commands from the given screen This option is only available when the "menu" fullscreen mode is activated. |
static void |
removeSubCommand(Command childCommand,
Command parentCommand,
Screen screen)
Removes the given command as subcommand from the defined screen |
static void |
removeSubCommand(Command childCommand,
Command parentCommand,
Screen screen)
Removes the given command as a subcommand from the defined screen |
static void |
repaint(Item item)
Repaints the specified item |
static void |
repaint(Item item)
Repaints the specified item |
static void |
scroll(Screen screen,
int yOffset)
Scrolls the screen to the given position. |
static void |
scroll(Screen screen,
int yOffset)
Scrolls the screen to the given position. |
static void |
scrollTo(Item item)
Scrolls the screen so that the specified item becomes visible. |
static void |
scrollTo(Item item)
Scrolls the screen so that the specified item becomes visible. |
static void |
scrollTo(Item item,
int position)
Scrolls the screen so that the specified item will be position according to the specified position. |
static void |
scrollTo(Item item,
int position)
Scrolls the screen so that the specified item will be position according to the specified position. |
static void |
setAccessible(Choice choice,
int itemIndex,
boolean isAccessible)
Makes the specified List or ChoiceGroup item selectable or inaccessible - can be used in combination with a #style preprocessing directive. |
static void |
setAccessible(Choice choice,
int itemIndex,
boolean isAccessible)
Makes the specified List item selectable or inaccessible - can be used in combination with a #style preprocessing directive. |
static void |
setAccessible(Choice choice,
int itemIndex,
boolean isAccessible,
Style style)
Makes the specified List or ChoiceGroup item selectable or inaccessible. |
static void |
setAccessible(Item item,
boolean isAccessible)
Makes the item interactive (accessible) or non-interactive. |
static void |
setAccessible(Item item,
boolean isAccessible)
Makes the item interactive (accessible) or non-interactive. |
static void |
setAccessible(Item item,
boolean isAccessible,
Style style)
Makes the item interactive (accessible) or non-interactive. |
static void |
setAccessible(Screen screen,
Command command,
boolean isAccessible)
Makes the command interactive (accessible) or non-interactive. |
static void |
setAccessible(Screen screen,
Command command,
boolean isAccessible)
Makes the command interactive (accessible) or non-interactive. |
static void |
setAccessible(Screen screen,
Command command,
boolean isAccessible)
Makes the item interactive (accessible) or non-interactive. |
static void |
setAccessible(Screen screen,
Command command,
boolean isAccessible,
Style style)
Makes the item interactive (accessible) or non-interactive. |
static void |
setAttribute(Item item,
Object key,
Object value)
Sets an arbitrary attribute for the given item. |
static void |
setAttribute(Item item,
Object key,
Object value)
Sets an arbitrary attribute for the given item. |
static void |
setAttribute(List list,
int index,
Object key,
Object value)
Sets an arbitrary attribute for the specified list item. |
static void |
setAttribute(List list,
int index,
Object key,
Object value)
Sets an arbitrary attribute for the specified list item. |
static void |
setBackground(Item item,
Background background)
Sets the background for the given item. |
static void |
setBackground(Item item,
Background background)
Sets the background for the given item. |
static void |
setBackground(Screen screen,
Background background)
Sets the background for the given screen. |
static void |
setBackground(Screen screen,
Background background)
Sets the background for the given screen. |
static void |
setCaretPosition(TextBox box,
int position)
Sets the caret position in the given text box. |
static void |
setCaretPosition(TextBox box,
int position)
Sets the caret position in the given text box. |
static void |
setCaretPosition(TextField field,
int position)
Sets the caret position in the given text field. |
static void |
setCaretPosition(TextField field,
int position)
Sets the caret position in the given text field. |
static void |
setChoiceGroupItem(ChoiceGroup ChoiceGroup,
int index,
ChoiceItem item)
Sets a ChoiceItem or a subclass for the given ChoiceGroup. |
static void |
setChoiceGroupItem(ChoiceGroup ChoiceGroup,
int index,
ChoiceItem item)
Sets a ChoiceItem or a subclass for the given ChoiceGroup. |
static void |
setCommandLabel(Command command,
String label)
Changes the shown label of the specified command. |
static void |
setCommandLabel(Screen screen,
Command command,
String label)
Changes the shown label of the specified command. |
static void |
setCommandLabel(Screen screen,
Command command,
String label)
Changes the shown label of the specified command. |
static void |
setCommandLabel(Screen screen,
Command command,
String label)
Changes the shown label of the specified command. |
static void |
setCurrentListIndex(Display display,
List list,
int index)
Sets the focus to the given index of the specified list. |
static void |
setCurrentListIndex(Display display,
List list,
int index)
Sets the focus to the given index of the specified list. |
static void |
setCycling(Container container,
boolean cycling)
Specifies if the given contain is allowed to cycle through its items. |
static void |
setCycling(FramedForm form,
boolean cycling)
Specifies if the given FramedForm is allowed to cycle through its items. |
static void |
setData(Screen screen,
Object data)
Attaches data to the specified screen. |
static void |
setData(Screen screen,
Object data)
Attaches data to the specified screen. |
void |
setEventHandled(CustomItem item)
Notifies the specified CustomItem that a key or pointer event has been processed and that it should not be processed by other components. |
void |
setEventHandled(CustomItem item)
Notifies the specified CustomItem that a key or pointer event has been processed and that it should not be processed by other components. |
static void |
setFocusedIndex(Screen screen,
int index)
Sets the focused index of the specified screen |
static void |
setFocusedIndex(Screen screen,
int index)
Sets the focused index of the specified screen |
static void |
setFocusedItem(Screen screen,
Item item)
Sets the focused item of the specified screen |
static void |
setFocusedItem(Screen screen,
Item item)
Sets the focused item of the specified screen |
static void |
setFullScreenMode(Screen screen,
boolean fullScreen)
Sets the fullscreen mode of the screen. |
static void |
setFullScreenMode(Screen screen,
boolean fullScreen)
Sets the fullscreen mode of the screen. |
static void |
setInputMode(TextBox box,
int inputMode)
Sets the input mode for the given textbox. |
static void |
setInputMode(TextBox box,
int inputMode)
Sets the input mode for the given textbox. |
static void |
setInputMode(TextField field,
int inputMode)
Sets the input mode for the given textfield. |
static void |
setInputMode(TextField field,
int inputMode)
Sets the input mode for the given textfield. |
static void |
setItemScreen(Item item,
Screen screen)
Sets the 'screen' property of the specified item to the given item |
static void |
setItemScreen(Item item,
Screen screen)
Sets the 'screen' property of the specified item to the given item |
static void |
setItemStateListener(Item item,
ItemStateListener listener)
Sets an ItemStateListener specifically for this item. |
static void |
setItemStateListener(Item item,
ItemStateListener listener)
Sets an ItemStateListener specifically for this item. |
static void |
setListItem(List list,
int index,
ChoiceItem item)
Sets a ChoiceItem or a subclass for the given list. |
static void |
setListItem(List list,
int index,
ChoiceItem item)
Sets a ChoiceItem or a subclass for the given list. |
static void |
setMenuBarStyle(Screen screen)
Set the style of the specified screen's menubar. |
static void |
setMenuBarStyle(Screen screen)
Set the style of the specified screen's menubar. |
static void |
setMenuBarStyle(Screen screen,
Style style)
Set the style of the specified screen's menubar. |
static void |
setMenuBarStyle(Screen screen,
Style style)
Set the style of the specified screen's menubar. |
static void |
setNoNewLine(TextField textField,
boolean noNewLine)
Set if the textfield should accept the enter key as an input which results in a new line. |
static void |
setNoNewLine(TextField textField,
boolean noNewLine)
Set if the textfield should accept the enter key as an input which results in a new line. |
static void |
setNumberOfDecimalFractions(TextField field,
int number)
Sets the number of decimal fractions that are allowed for FIXED_POINT_DECIMAL constrained TextFields |
static void |
setNumberOfDecimalFractions(TextField field,
int number)
Sets the number of decimal fractions that are allowed for FIXED_POINT_DECIMAL constrained TextFields |
static void |
setParent(Item child,
Item parent)
Sets the parent for the given child item. |
static void |
setParent(Item child,
Item parent)
Sets the parent for the given child item. |
static void |
setParent(Item child,
Item parent)
Sets the parent for the given child item. |
static void |
setPredictiveDictionary(TextField field,
String[] words)
Allows the given words for the specified textfield. |
static void |
setPredictiveDictionary(TextField field,
String[] words)
Allows the given words for the specified textfield. |
static void |
setScreenOrientation(int degrees)
Sets the screen orientation in 90 degrees steps. |
static void |
setScreenOrientation(Screen screen,
int degrees)
Deprecated. use setScreenOrientation(int degress) instead |
static void |
setScreenOrientation(Screen screen,
int degrees)
Deprecated. use setScreenOrientation(int degress) instead |
static void |
setScreenStateListener(Screen screen,
ScreenStateListener listener)
Registers a ScreenStateListener to any J2ME Polish screen. |
static void |
setScreenStateListener(Screen screen,
ScreenStateListener listener)
Registers a ScreenStateListener to any J2ME Polish screen. |
static void |
setStyle(Alert screen)
Applies a style to the given alert if used in conjunction with the //#style preprocessing directive. |
static void |
setStyle(Alert screen,
Style style)
Applies a style to the given alert if used in conjunction with the //#style preprocessing directive. |
static void |
setStyle(Command command)
Applies a style to the specified command. |
static void |
setStyle(Item item)
Applies a style to the given item if used in conjunction with the //#style preprocessing directive. |
static void |
setStyle(Item item)
Applies a style to the given item if used in conjunction with the //#style preprocessing directive. |
static void |
setStyle(Item item,
Style style)
Applies a style to the given item if used in conjunction with the //#style preprocessing directive. |
static void |
setStyle(Item item,
Style style)
Applies a style to the given item. |
static void |
setStyle(List list,
int itemIndex)
Applies a style to the specified list item. |
static void |
setStyle(List list,
int itemIndex)
Applies a style to the specified list item. |
static void |
setStyle(List list,
int itemIndex,
Style style)
Applies a style to the specified list item. |
static void |
setStyle(Screen screen)
Applies a style to the given screen if used in conjunction with the //#style preprocessing directive. |
static void |
setStyle(Screen screen)
Applies a style to the given screen if used in conjunction with the //#style preprocessing directive. |
static void |
setStyle(Screen screen,
Style style)
Applies a style to the given screen. |
static void |
setSubtitle(Screen screen,
Item subtitle)
Sets the subtitle for the specified screen |
static void |
setSubtitle(Screen screen,
Item subtitle)
Sets the subtitle for the specified screen |
static void |
setSubtitle(Screen screen,
String subtitle)
Sets the subtitle for the specified screen |
static void |
setSubtitle(Screen screen,
String subtitle)
Sets the subtitle for the specified screen |
static void |
setSubtitle(Screen screen,
String subtitle,
Style style)
Sets the subtitle for the specified screen |
static void |
setSubtitle(Screen screen,
String subtitle,
Style style)
Sets the subtitle for the specified screen |
static void |
setSuppressCommands(TextField field,
boolean suppress)
Can be used to deactivate or activate commands for a specific TextField. |
static void |
setSuppressCommands(TextField field,
boolean suppress)
Can be used to deactivate or activate commands for a specific TextField. |
static void |
setTextEffect(StringItem item,
TextEffect effect)
Specifies a new text effect for the specified string item. |
static void |
setTextEffect(StringItem item,
TextEffect effect)
Specifies a new text effect for the specified string item. |
static void |
setTextfieldHelp(TextField field,
String text)
Sets the help text for the specified TextField. |
static void |
setTextfieldHelp(TextField field,
String text)
Sets the help text for the specified TextField. |
static void |
setTextfieldInfo(TextField field,
String info)
|
static void |
setTextfieldInfo(TextField field,
String info)
|
static void |
setTextfieldInfoItem(TextField field,
StringItem infoItem)
Sets the item responsible for displaying the current input mode like Abc, ABC, 123, and so on. |
static void |
setTextfieldInfoItem(TextField field,
StringItem infoItem)
Sets the item responsible for displaying the current input mode like Abc, ABC, 123, and so on. |
static void |
setTickerImage(Ticker ticker,
Image image)
Sets an image for the specified ticker. |
static void |
setTickerImage(Ticker ticker,
Image image)
Sets an image for the specified ticker. |
static void |
setTitle(Screen screen,
Item title)
Sets the title of the screen using an Item. |
static void |
setTitle(Screen screen,
Item title)
Sets the title of the screen using an Item. |
static void |
setTitle(Screen screen,
Item title)
Sets the title of the screen using an Item. |
static void |
setTitle(Screen screen,
Item title)
|
static void |
setTitle(Screen screen,
Item title,
Style style)
Sets the title of the screen using an Item. |
static void |
setTitle(Screen screen,
Item title,
Style style)
Sets the title of the screen using an Item. |
static void |
setUiEventListener(Item item,
UiEventListener listener)
Sets an UiEventListener for the specified item and its children. |
static void |
setUiEventListener(Item item,
UiEventListener listener)
Sets an UiEventListener for the specified item and its children. |
static void |
setUiEventListener(Screen screen,
UiEventListener listener)
Sets an UiEventListener for the specified screen and its items. |
static void |
setUiEventListener(Screen screen,
UiEventListener listener)
Sets an UiEventListener for the specified screen and its items. |
static void |
setUserInputValidator(Display.UserInputValidator validator)
Sets the key validator for the current display. |
static void |
setVisible(Item item,
boolean visible)
Sets the invisible status of the specified item. |
static void |
setVisible(Item item,
boolean visible)
Sets the visible status of the specified item. |
static void |
setVisible(List list,
int index,
boolean visible)
Sets the invisible status of the specified list-item. |
static void |
setVisible(List list,
int index,
boolean visible)
Sets the invisible status of the specified list-item. |
static void |
setWordNotFound(TextField field,
Alert alert)
Set the word-not-found box in the textfield |
static void |
setWordNotFound(TextField field,
Alert alert)
Set the word-not-found box in the textfield |
static void |
showNotify(Item item)
Calls show notify on the specified item. |
static void |
showNotify(Item item)
Calls show notify on the specified item. |
static void |
showNotify(Screen screen,
Item item)
Calls show notify on the specified item. |
static void |
showNotify(Screen screen,
Item item)
Calls show notify on the specified item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UP_PRESSED
0x0002 (1 << Canvas.UP).
getKeyStates(),
Constant Field Valuespublic static final int DOWN_PRESSED
0x0040 (1 << Canvas.DOWN).
getKeyStates(),
Constant Field Valuespublic static final int LEFT_PRESSED
0x0004 (1 << Canvas.LEFT).
getKeyStates(),
Constant Field Valuespublic static final int RIGHT_PRESSED
0x0020 (1 << Canvas.RIGHT).
getKeyStates(),
Constant Field Valuespublic static final int FIRE_PRESSED
0x0100 (1 << Canvas.FIRE).
getKeyStates(),
Constant Field Valuespublic static final int GAME_A_PRESSED
0x0200 (1 << Canvas.GAME_A).
getKeyStates(),
Constant Field Valuespublic static final int GAME_B_PRESSED
0x0400 (1 << Canvas.GAME_B).
getKeyStates(),
Constant Field Valuespublic static final int GAME_C_PRESSED
0x0800 (1 << Canvas.GAME_C).
getKeyStates(),
Constant Field Valuespublic static final int GAME_D_PRESSED
0x1000 (1 << Canvas.GAME_D).
getKeyStates(),
Constant Field Valuespublic static final int MODE_LOWERCASE
setInputMode(javax.microedition.lcdui.TextField, int),
Constant Field Valuespublic static final int MODE_FIRST_UPPERCASE
setInputMode(javax.microedition.lcdui.TextField, int),
Constant Field Valuespublic static final int MODE_UPPERCASE
setInputMode(javax.microedition.lcdui.TextField, int),
Constant Field Valuespublic static final int MODE_NUMBERS
setInputMode(javax.microedition.lcdui.TextField, int),
Constant Field Valuespublic static final int MODE_NATIVE
setInputMode(javax.microedition.lcdui.TextField, int),
Constant Field Valuespublic static final int CONSTRAINT_FIXED_POINT_DECIMAL
TextField cashRegister = new TextField("Price: ", null, 5, UiAccess.CONSTRAINT_FIXED_POINT_DECIMAL );
TextField.FIXED_POINT_DECIMAL,
setNumberOfDecimalFractions(TextField, int),
getNumberOfDecimalFractions(TextField),
Constant Field Values| Method Detail |
|---|
public static int getKeyStates()
For example:
// Get the key state and store it
int keyState = getKeyStates();
if ((keyState & UiAccess.LEFT_KEY) != 0) {
positionX--;
}
else if ((keyState & UiAccess.RIGHT_KEY) != 0) {
positionX++;
}
Calling this method has the side effect of clearing any latched state. Another call to getKeyStates immediately after a prior call will therefore report the system's best idea of the current state of the keys, the latched bits having been cleared by the first call.
On J2ME Polish this method is implemented by monitoring key press and release events. Thus the state reported by getKeyStates might lag the actual state of the physical keys since the timeliness of the key information is be subject to the capabilities of each device. Also, some devices may be incapable of detecting simultaneous presses of multiple keys.
This method returns 0 unless the GameCanvas is currently visible as
reported by Displayable.isShown().
Upon becoming visible, a GameCanvas will initially indicate that
all keys are unpressed (0); if a key is held down while the GameCanvas
is being shown, the key must be first released and then pressed in
order for the key press to be reported by the GameCanvas.
UP_PRESSED,
DOWN_PRESSED,
LEFT_PRESSED,
RIGHT_PRESSED,
FIRE_PRESSED,
GAME_A_PRESSED,
GAME_B_PRESSED,
GAME_C_PRESSED,
GAME_D_PRESSED
public static void setScreenStateListener(Screen screen,
ScreenStateListener listener)
screen - the screenlistener - the listener
public static void setScreenStateListener(Screen screen,
ScreenStateListener listener)
screen - the screenlistener - the listenerpublic static int getFocusedIndex(Screen screen)
screen - the screen
public static int getFocusedIndex(Screen screen)
screen - the screen
public static int getFocusedIndex(ChoiceGroup group)
group - the group
public static int getFocusedIndex(ChoiceGroup group)
group - the group
public static Item getFocusedItem(Screen screen)
screen - the screen
public static Item getFocusedItem(Screen screen)
screen - the screen
public static void setFocusedIndex(Screen screen,
int index)
screen - the screenindex - the focused index, -1 when none should be focused
public static void setFocusedIndex(Screen screen,
int index)
screen - the screenindex - the focused index, -1 when none should be focused
public static void setFocusedItem(Screen screen,
Item item)
screen - the screenitem - the focused item, null when none should be focused
public static void setFocusedItem(Screen screen,
Item item)
screen - the screenitem - the focused item, null when none should be focused
public static void setTitle(Screen screen,
Item title)
screen - the screen for which the title should be replacedtitle - the element responsible for painting the title.getTitleItem(javax.microedition.lcdui.Screen)
public static void setTitle(Screen screen,
Item title)
screen - the screen for which the title should be replacedtitle - the element responsible for painting the title.getTitleItem(Screen)
public static void setTitle(Screen screen,
Item title,
Style style)
screen - the screen for which the title should be replacedtitle - the element responsible for painting the title.style - the style for the titlegetTitleItem(Screen)
public static void setTitle(Screen screen,
Item title)
screen - the screen for which the title should be replacedtitle - the element responsible for painting the title.getTitleItem(javax.microedition.lcdui.Screen)
public static void setTitle(Screen screen,
Item title)
public static void setTitle(Screen screen,
Item title,
Style style)
screen - the screen for which the title should be replacedtitle - the element responsible for painting the title.style - the style for the titlegetTitleItem(javax.microedition.lcdui.Screen)
public static void setFullScreenMode(Screen screen,
boolean fullScreen)
screen - the screenfullScreen - true when the fullscreen mode should be entered
public static void setFullScreenMode(Screen screen,
boolean fullScreen)
screen - the screenfullScreen - true when the fullscreen mode should be entered
public static void addItemCommand(List list,
int index,
Command command)
list - the listindex - the index of the itemcommand - the item command
public static void addItemCommand(List list,
int index,
Command command)
list - the listindex - the index of the itemcommand - the item command
public static void setParent(Item child,
Item parent)
child - the childparent - the parent
public static void setParent(Item child,
Item parent)
child - the childparent - the parent
public static void setParent(Item child,
Item parent)
child - the childparent - the parentpublic static int getInternalX(Item item)
item - the item
public static int getInternalY(Item item)
item - the item
getInternalX(javax.microedition.lcdui.Item)public static int getInternalWidth(Item item)
item - the item
getInternalX(javax.microedition.lcdui.Item)public static int getInternalHeight(Item item)
item - the item
getInternalX(javax.microedition.lcdui.Item)public static int getInternalX(Item item)
item - the item
public static int getInternalY(Item item)
item - the item
getInternalX(Item)public static int getInternalWidth(Item item)
item - the item
getInternalX(Item)public static int getInternalHeight(Item item)
item - the item
getInternalX(Item)
public static Style focus(Item item,
int direction,
Style style)
item - the item that should be focusseddirection - the direction from which the focus comes, e.g. Canvas.DOWN, Canvas.UP or 0.style - the style - use null when the item's focussed style should be used
public static void defocus(Item item,
Style style)
item - the itemstyle - the style
public static void setCurrentListIndex(Display display,
List list,
int index)
display - the displaylist - the listindex - the index
public static void setCurrentListIndex(Display display,
List list,
int index)
display - the displaylist - the listindex - the index
public static void setListItem(List list,
int index,
ChoiceItem item)
list - the listindex - the index of the item that should be exchangeditem - the new item
public static ChoiceItem getListItem(List list,
int index)
list - the listindex - the index of the item that should be returned
public static void appendListItem(List list,
ChoiceItem item)
list - the listitem - the new item
public static void setListItem(List list,
int index,
ChoiceItem item)
list - the listindex - the index of the item that should be exchangeditem - the new item
public static ChoiceItem getListItem(List list,
int index)
list - the listindex - the index of the item that should be returned
public static void appendListItem(List list,
ChoiceItem item)
list - the listitem - the new item
public static void setChoiceGroupItem(ChoiceGroup ChoiceGroup,
int index,
ChoiceItem item)
ChoiceGroup - the ChoiceGroupindex - the index of the item that should be exchangeditem - the new item
public static ChoiceItem getChoiceGroupItem(ChoiceGroup ChoiceGroup,
int index)
ChoiceGroup - the ChoiceGroupindex - the index of the item that should be returned
public static void appendChoiceGroupItem(ChoiceGroup ChoiceGroup,
ChoiceItem item)
ChoiceGroup - the ChoiceGroupitem - the new item
public static void setChoiceGroupItem(ChoiceGroup ChoiceGroup,
int index,
ChoiceItem item)
ChoiceGroup - the ChoiceGroupindex - the index of the item that should be exchangeditem - the new item
public static ChoiceItem getChoiceGroupItem(ChoiceGroup ChoiceGroup,
int index)
ChoiceGroup - the ChoiceGroupindex - the index of the item that should be returned
public static void appendChoiceGroupItem(ChoiceGroup ChoiceGroup,
ChoiceItem item)
ChoiceGroup - the ChoiceGroupitem - the new itempublic static void setStyle(Item item)
//#style myStyle UiAccess.setStyle( myItem );
item - the item which should get the new style
public static void setStyle(Item item,
Style style)
//#style myStyle UiAccess.setStyle( myItem );
item - the item which should get the new stylestyle - the style for the itempublic static void setStyle(Screen screen)
//#style myStyle UiAccess.setStyle( myScreen );
screen - the screen which should get the new stylepublic static void setStyle(Alert screen)
//#style myStyle UiAccess.setStyle( myAlert );
screen - the alert which should get the new style
public static void setStyle(Alert screen,
Style style)
//#style myStyle UiAccess.setStyle( myAlert );
screen - the alert which should get the new stylestyle - the style for the alertpublic static void setStyle(Item item)
//#style myStyle UiAccess.setStyle( myItem );
item - the item which should get the new stylepublic static void setStyle(Screen screen)
//#style myStyle UiAccess.setStyle( myScreen );
screen - the screen which should get the new style
public static void setStyle(Item item,
Style style)
item - the item which should get the new stylestyle - the style
public static void setStyle(Screen screen,
Style style)
screen - the screen which should get the new stylestyle - the style
public static void setStyle(List list,
int itemIndex)
list - the listitemIndex - the index of the list
public static void setStyle(List list,
int itemIndex)
list - the listitemIndex - the index of the list
public static void setStyle(List list,
int itemIndex,
Style style)
list - the listitemIndex - the index of the liststyle - the new style of the itempublic static void setStyle(Command command)
command - the commandpublic static Style getStyle(Item item)
//#if polish.usePolishGui
Style style = UiAccess.getStyle( myItem );
if (style != null) }
style.background = new SimpleBackground( 0x00FF00 );
}
//#endif
Note: this method is only available when the J2ME Polish GUI is used, so you better check for the polish.usePolishGui prepocessing symbol.
item - the item of which the style should be retrieved
public static Style getStyle(Screen screen)
//#if polish.usePolishGui
Style style = UiAccess.getStyle( myScreen );
if (style != null) }
style.background = new SimpleBackground( 0x00FF00 );
}
//#endif
Note: this method is only available when the J2ME Polish GUI is used, so you better check for the polish.usePolishGui prepocessing symbol.
screen - the screen of which the style should be retrieved
public static Style getStyle(Item item)
//#if polish.usePolishGui
Style style = UiAccess.getStyle( myItem );
if (style != null) }
style.background = new SimpleBackground( 0x00FF00 );
}
//#endif
Note: this method is only available when the J2ME Polish GUI is used, so you better check for the polish.usePolishGui prepocessing symbol.
item - the item of which the style should be retrieved
public static Style getStyle(Screen screen)
//#if polish.usePolishGui
Style style = UiAccess.getStyle( myScreen );
if (style != null) }
style.background = new SimpleBackground( 0x00FF00 );
}
//#endif
Note: this method is only available when the J2ME Polish GUI is used, so you better check for the polish.usePolishGui prepocessing symbol.
screen - the screen of which the style should be retrieved
public static boolean handleKeyPressed(Item item,
int keyCode,
int gameAction)
item - the itemkeyCode - the code of the keygameAction - the associated game action
public static boolean handleKeyPressed(Item item,
int keyCode,
int gameAction)
item - the itemkeyCode - the code of the keygameAction - the associated game action
public static boolean handleKeyReleased(Item item,
int keyCode,
int gameAction)
item - the itemkeyCode - the code of the keygameAction - the associated game action
public static boolean handleKeyReleased(Item item,
int keyCode,
int gameAction)
item - the itemkeyCode - the code of the keygameAction - the associated game action
public static boolean handleKeyRepeated(Item item,
int keyCode,
int gameAction)
item - the itemkeyCode - the code of the keygameAction - the associated game action
public static boolean handleKeyRepeated(Item item,
int keyCode,
int gameAction)
item - the itemkeyCode - the code of the keygameAction - the associated game action
public static boolean handlePointerPressed(Item item,
int x,
int y)
item - the itemx - the x position of the pointer position relative to this item's left positiony - the y position of the pointer position relative to this item's top position
public static boolean handlePointerPressed(Item item,
int x,
int y)
item - the itemx - the x position of the pointer position relative to this item's left positiony - the y position of the pointer position relative to this item's top position
public static boolean handlePointerDragged(Item item,
int x,
int y)
item - the itemx - the x position of the pointer position relative to this item's left positiony - the y position of the pointer position relative to this item's top position
public static boolean handlePointerDragged(Item item,
int x,
int y)
item - the itemx - the x position of the pointer position relative to this item's left positiony - the y position of the pointer position relative to this item's top position
public static boolean handlePointerReleased(Item item,
int x,
int y)
item - the itemx - the x position of the pointer position relative to this item's left positiony - the y position of the pointer position relative to this item's top position
public static boolean handlePointerReleased(Item item,
int x,
int y)
item - the itemx - the x position of the pointer position relative to this item's left positiony - the y position of the pointer position relative to this item's top position
public static boolean handleCommand(Item item,
Command cmd)
item - the itemcmd - the command that the item should handle
public static boolean handleCommand(Item item,
Command cmd)
item - the itemcmd - the command that the item should handle
public static boolean handleKeyPressed(Screen screen,
int keyCode,
int gameAction)
screen - the screenkeyCode - the code of the keygameAction - the associated game action
public static boolean handleKeyPressed(Screen screen,
int keyCode,
int gameAction)
screen - the screenkeyCode - the code of the keygameAction - the associated game action
public static boolean handleKeyReleased(Screen screen,
int keyCode,
int gameAction)
screen - the screenkeyCode - the code of the keygameAction - the associated game action
public static boolean handleKeyReleased(Screen screen,
int keyCode,
int gameAction)
screen - the screenkeyCode - the code of the keygameAction - the associated game action
public static boolean handleKeyRepeated(Screen screen,
int keyCode,
int gameAction)
screen - the screenkeyCode - the code of the keygameAction - the associated game action
public static boolean handleKeyRepeated(Screen screen,
int keyCode,
int gameAction)
screen - the screenkeyCode - the code of the keygameAction - the associated game action
public static boolean handlePointerPressed(Screen screen,
int x,
int y)
screen - the screenx - the x position of the pointer pressing relative to this screen's left positiony - the y position of the pointer pressing relative to this screen's top position
public static boolean handlePointerPressed(Screen screen,
int x,
int y)
screen - the screenx - the x position of the pointer pressing relative to this screen's left positiony - the y position of the pointer pressing relative to this screen's top position
public static boolean handlePointerReleased(Screen screen,
int x,
int y)
screen - the screenx - the x position of the pointer pressing relative to this screen's left positiony - the y position of the pointer pressing relative to this screen's top position
public static boolean handlePointerReleased(Screen screen,
int x,
int y)
screen - the screenx - the x position of the pointer pressing relative to this screen's left positiony - the y position of the pointer pressing relative to this screen's top position
public static boolean handleCommand(Screen screen,
Command cmd)
screen - the screencmd - the command that the screen should handle
public static boolean handleCommand(Screen screen,
Command cmd)
screen - the screencmd - the command that the screen should handle
public static void setCaretPosition(TextField field,
int position)
field - the text fieldposition - the new caret position, 0 puts the caret at the start of the line, getString().length moves the caret to the end of the input.
public static void setCaretPosition(TextField field,
int position)
field - the text fieldposition - the new caret position, 0 puts the caret at the start of the line, getString().length moves the caret to the end of the input.
public static void setNumberOfDecimalFractions(TextField field,
int number)
field - the textfield the textfield for which the fractions are setnumber - the number (defaults to 2)CONSTRAINT_FIXED_POINT_DECIMAL,
TextField.FIXED_POINT_DECIMAL
public static void setNumberOfDecimalFractions(TextField field,
int number)
field - the textfield the textfield for which the fractions are setnumber - the number (defaults to 2)CONSTRAINT_FIXED_POINT_DECIMAL,
TextField.FIXED_POINT_DECIMALpublic static int getNumberOfDecimalFractions(TextField field)
field - the textfield the textfield for which the fractions are set
CONSTRAINT_FIXED_POINT_DECIMAL,
TextField.FIXED_POINT_DECIMALpublic static int getNumberOfDecimalFractions(TextField field)
field - the textfield the textfield for which the fractions are set
CONSTRAINT_FIXED_POINT_DECIMAL,
TextField.FIXED_POINT_DECIMAL
public static void setCaretPosition(TextBox box,
int position)
box - the text boxposition - the new caret position, 0 puts the caret at the start of the line, getString().length moves the caret to the end of the input.
public static void setCaretPosition(TextBox box,
int position)
box - the text boxposition - the new caret position, 0 puts the caret at the start of the line, getString().length moves the caret to the end of the input.
public static void setInputMode(TextField field,
int inputMode)
field - the text fieldinputMode - the input mode, either UiAccess.MODE_NUMBERS, UiAcccss.MODE_LOWERCASE, UiAccess.MODE_UPPERCASE, UiAccess.MODE_FIRST_UPPERCASE or UiAccess.MODE_NATIVEMODE_NUMBERS,
MODE_LOWERCASE,
MODE_UPPERCASE,
MODE_FIRST_UPPERCASE,
MODE_NATIVE
public static void setInputMode(TextField field,
int inputMode)
field - the text fieldinputMode - the input mode, either UiAccess.MODE_NUMBERS, UiAcccss.MODE_LOWERCASE, UiAccess.MODE_UPPERCASE, UiAccess.MODE_FIRST_UPPERCASE or UiAccess.MODE_NATIVEMODE_NUMBERS,
MODE_LOWERCASE,
MODE_UPPERCASE,
MODE_FIRST_UPPERCASE,
MODE_NATIVE
public static void setInputMode(TextBox box,
int inputMode)
box - the text boxinputMode - the input mode, either UiAccess.MODE_NUMBERS, UiAcccss.MODE_LOWERCASE, UiAccess.MODE_UPPERCASE, UiAccess.MODE_FIRST_UPPERCASE or UiAccess.MODE_NATIVEMODE_NUMBERS,
MODE_LOWERCASE,
MODE_UPPERCASE,
MODE_FIRST_UPPERCASE,
MODE_NATIVE
public static void setInputMode(TextBox box,
int inputMode)
box - the text boxinputMode - the input mode, either UiAccess.MODE_NUMBERS, UiAcccss.MODE_LOWERCASE, UiAccess.MODE_UPPERCASE, UiAccess.MODE_FIRST_UPPERCASEor UiAccess.MODE_NATIVEMODE_NUMBERS,
MODE_LOWERCASE,
MODE_UPPERCASE,
MODE_FIRST_UPPERCASE,
MODE_NATIVEpublic static int getInputMode(TextField field)
field - the text field
MODE_NUMBERS,
MODE_LOWERCASE,
MODE_UPPERCASE,
MODE_FIRST_UPPERCASE,
MODE_NATIVEpublic static int getInputMode(TextField field)
field - the text field
MODE_NUMBERS,
MODE_LOWERCASE,
MODE_UPPERCASE,
MODE_FIRST_UPPERCASE,
MODE_NATIVEpublic static int getInputMode(TextBox box)
box - the text box
MODE_NUMBERS,
MODE_LOWERCASE,
MODE_UPPERCASE,
MODE_FIRST_UPPERCASE,
MODE_NATIVEpublic static int getInputMode(TextBox box)
box - the text box
MODE_NUMBERS,
MODE_LOWERCASE,
MODE_UPPERCASE,
MODE_FIRST_UPPERCASE,
MODE_NATIVEpublic static String getDotSeparatedDecimalString(TextField field)
field - the text field with a DECIMAL constraint
IllegalStateException - when the TextField is not DECIMAL constrainedpublic static String getDotSeparatedDecimalString(TextField field)
field - the text field with a DECIMAL constraint
IllegalStateException - when the TextField is not DECIMAL constrained
public static void addSubCommand(Command child,
Command parent,
Screen screen)
child - the sub commandparent - the parent commandscreen - the screen.
public static void addSubCommand(Command child,
Command parent,
Screen screen)
child - the sub commandparent - the parent commandscreen - the screen.
public static void addSubCommand(Command child,
Command parent,
Screen screen)
child - the sub commandparent - the parent commandscreen - the screen.
public static void addSubCommand(Command child,
Command parent,
Screen screen,
Style style)
child - the sub commandparent - the parent commandscreen - the screen.style - the style of the command
public static void removeSubCommand(Command childCommand,
Command parentCommand,
Screen screen)
childCommand - the command to remove.parentCommand - the parent command of the command to remove.screen - the screen.
public static void removeSubCommand(Command childCommand,
Command parentCommand,
Screen screen)
childCommand - the command to remove.parentCommand - the parent command of the command to remove.screen - the screen.public static void removeAllCommands(Screen screen)
screen - the screen.public static void removeAllCommands(Screen screen)
screen - the screen.public static boolean isMenuOpened(Screen screen)
screen - the screen
public static boolean isMenuOpened(Screen screen)
screen - the screen
public static void focus(Screen screen,
Item item)
screen - the screenitem - the item that should be focused
public static void focus(Screen screen,
Item item)
screen - the screenitem - the item that should be focused
public static void focus(Screen screen,
Item item)
screen - the screenitem - the item that should be focused
public static void focus(Screen screen,
Item item)
screen - the screenitem - the item that should be focused
public static void focus(Screen screen,
int index)
screen - the screenindex - the index of the item that should be focused, first item has the index 0
public static void focus(Screen screen,
int index)
screen - the screenindex - the index of the item that should be focused, first item has the index 0
public static void focus(ChoiceGroup choiceGroup,
int index)
choiceGroup - the choice groupindex - the index of the item that should be focused, first item has the index 0
public static void focus(ChoiceGroup choiceGroup,
int index)
choiceGroup - the choice groupindex - the index of the item that should be focused, first item has the index 0public static void releaseResources()
public static void releaseResourcesOnScreenChange()
public static void releaseResources(Screen screen)
screen - the screen for which the resources should be released.public static void releaseResources(Screen screen)
screen - the screen for which the resources should be released.
public static void setSubtitle(Screen screen,
String subtitle)
screen - the screensubtitle - the subtitle text
public static void setSubtitle(Screen screen,
String subtitle,
Style style)
screen - the screensubtitle - the subtitle textstyle - the style of the subtitle text
public static void setSubtitle(Screen screen,
String subtitle)
screen - the screensubtitle - the subtitle text
public static void setSubtitle(Screen screen,
String subtitle,
Style style)
screen - the screensubtitle - the subtitle textstyle - the style of the subtitle text
public static void setSubtitle(Screen screen,
Item subtitle)
screen - the screensubtitle - the subtitle item
public static void setSubtitle(Screen screen,
Item subtitle)
screen - the screensubtitle - the subtitle item
public static void scroll(Screen screen,
int yOffset)
screen - the screenyOffset - the vertical offset: 0 is the very top, negative values scroll the screen towards the end.
public static void scroll(Screen screen,
int yOffset)
screen - the screenyOffset - the vertical offset: 0 is the very top, negative values scroll the screen towards the end.public static void scrollTo(Item item)
item - the item that should become visible.scrollTo(javax.microedition.lcdui.Item, int)
public static void scrollTo(Item item,
int position)
item - the item that should become visible.position - the position, either Graphics.TOP, Graphics.BOTTOM or Graphics.VCENTERscrollTo(javax.microedition.lcdui.Item)public static void scrollTo(Item item)
item - the item that should become visible.scrollTo(Item, int)
public static void scrollTo(Item item,
int position)
item - the item that should become visible.position - the position, either Graphics.TOP, Graphics.BOTTOM or Graphics.VCENTERscrollTo(javax.microedition.lcdui.Item)public static Background getBackground(Screen screen)
//#if polish.usePolishGui ImageBackground ib = (ImageBackground) UiAccess.getBackground( form ); ib.setImage( newImage ); //#endifNote: this method is only available when the J2ME Polish GUI is used! Check for the preprocessing symbold polish.usePolishGui.
screen - the screen
public static Background getBackground(Screen screen)
//#if polish.usePolishGui ImageBackground ib = (ImageBackground) UiAccess.getBackground( form ); ib.setImage( newImage ); //#endifNote: this method is only available when the J2ME Polish GUI is used! Check for the preprocessing symbold polish.usePolishGui.
screen - the screen
public static void setBackground(Screen screen,
Background background)
//#if polish.usePolishGui SimpleBackground bg = new SimpleBackground( 0x00FF00 ); UiAccess.setBackground( item, screen ); //#endifNote: this method is only available when the J2ME Polish GUI is used! Check for the preprocessing symbold polish.usePolishGui.
screen - the screenbackground - - the new background
public static void setBackground(Screen screen,
Background background)
//#if polish.usePolishGui SimpleBackground bg = new SimpleBackground( 0x00FF00 ); UiAccess.setBackground( item, screen ); //#endifNote: this method is only available when the J2ME Polish GUI is used! Check for the preprocessing symbold polish.usePolishGui.
screen - the screenbackground - - the new backgroundpublic static Background getBackground(Item item)
//#if polish.usePolishGui ImageBackground ib = (ImageBackground) UiAccess.getBackground( item ); ib.setImage( newImage ); //#endifNote: this method is only available when the J2ME Polish GUI is used! Check for the preprocessing symbold polish.usePolishGui.
item - the item
public static Background getBackground(Item item)
//#if polish.usePolishGui ImageBackground ib = (ImageBackground) UiAccess.getBackground( item ); ib.setImage( newImage ); //#endifNote: this method is only available when the J2ME Polish GUI is used! Check for the preprocessing symbold polish.usePolishGui.
item - the item
public static void setBackground(Item item,
Background background)
//#if polish.usePolishGui SimpleBackground bg = new SimpleBackground( 0x00FF00 ); UiAccess.setBackground( item, screen ); //#endifNote: this method is only available when the J2ME Polish GUI is used! Check for the preprocessing symbold polish.usePolishGui.
item - the itembackground - - the new background
public static void setBackground(Item item,
Background background)
//#if polish.usePolishGui SimpleBackground bg = new SimpleBackground( 0x00FF00 ); UiAccess.setBackground( item, screen ); //#endifNote: this method is only available when the J2ME Polish GUI is used! Check for the preprocessing symbold polish.usePolishGui.
item - the itembackground - - the new backgroundpublic static CommandListener getCommandListener(Screen screen)
screen - the screen
public static CommandListener getCommandListener(Screen screen)
screen - the screen
public static void setAttribute(Item item,
Object key,
Object value)
item - the item to which the attribute should be addedkey - the key for the attributevalue - the attribute value
public static Object getAttribute(Item item,
Object key)
item - the item to which the attribute should be addedkey - the key of the attribute
public static HashMap getAttributes(Item item)
item - the item from which the attributes should be retrieved
public static void setAttribute(List list,
int index,
Object key,
Object value)
list - a list of itemsindex - the index of the item to which the attribute should be addedkey - the key for the attributevalue - the attribute value
public static Object getAttribute(List list,
int index,
Object key)
list - a list of itemsindex - the index of item from which the attribute should be retrievedkey - the key of the attribute
public static HashMap getAttributes(List list,
int index)
list - a list of itemsindex - the index of item from which the attributes should be retrieved
public static void setAttribute(Item item,
Object key,
Object value)
item - the item to which the attribute should be addedkey - the key for the attributevalue - the attribute value
public static Object getAttribute(Item item,
Object key)
item - the item from which the attribute should be retrievedkey - the key of the attribute
public static HashMap getAttributes(Item item)
item - the item from which the attributes should be retrieved
public static void setAttribute(List list,
int index,
Object key,
Object value)
list - a list of itemsindex - the index of the item to which the attribute should be addedkey - the key for the attributevalue - the attribute value
public static Object getAttribute(List list,
int index,
Object key)
list - a list of itemsindex - the index of item from which the attributes should be retrievedkey - the key of the attribute
public static HashMap getAttributes(List list,
int index)
list - a list of itemsindex - the index of the item from which the attributes should be retrieved
public static void setAccessible(Item item,
boolean isAccessible)
//#style inactiveStyle UiAccess.setAccessible( myItem, false );
item - the item that should be made accessibleisAccessible - true when the item should be accessible/selectable
public static void setAccessible(Item item,
boolean isAccessible)
//#style inactiveStyle UiAccess.setAccessible( myItem, false );
item - the item that should be made accessibleisAccessible - true when the item should be accessible/selectable
public static void setAccessible(Item item,
boolean isAccessible,
Style style)
//#style inactiveStyle UiAccess.setAccessible( myItem, false );
item - the item that should be made accessibleisAccessible - true when the item should be accessible/selectablestyle - the new style, is ignored when it is null
public static void setAccessible(Choice choice,
int itemIndex,
boolean isAccessible)
choice - the listitemIndex - the index of the listisAccessible - true when the item should be accessible/selectable
public static void setAccessible(Choice choice,
int itemIndex,
boolean isAccessible)
choice - the listitemIndex - the index of the listisAccessible - true when the item should be accessible/selectable
IllegalArgumentException - when choice is not a List/ChoiceGroup or a J2ME Polish Container
public static void setAccessible(Choice choice,
int itemIndex,
boolean isAccessible,
Style style)
choice - the List or ChoiceGroupitemIndex - the index of the listisAccessible - true when the item should be accessible/selectablestyle - the new style of the item
IllegalArgumentException - when choice is not a List/ChoiceGroup or a J2ME Polish Container
public static void setAccessible(Screen screen,
Command command,
boolean isAccessible)
//#style inactiveStyle UiAccess.setAccessible( myScreen, myCommand, false );
screen - the screen that contains the commandcommand - the item that should be made accessibleisAccessible - true when the item should be accessible/selectable
public static void setAccessible(Screen screen,
Command command,
boolean isAccessible)
//#style inactiveStyle UiAccess.setAccessible( myScreen, myCommand, false );
screen - the screen that contains the commandcommand - the item that should be made accessibleisAccessible - true when the item should be accessible/selectable
public static void setAccessible(Screen screen,
Command command,
boolean isAccessible)
//#style inactiveStyle UiAccess.setAccessible( myScreen, myCommand, false );
screen - the screen that contains the commandcommand - the item that should be made accessibleisAccessible - true when the item should be accessible/selectable
public static void setAccessible(Screen screen,
Command command,
boolean isAccessible,
Style style)
//#style inactiveStyle UiAccess.setAccessible( myScreen, myCommand, false );
screen - the screen that contains the commandcommand - the item that should be made accessibleisAccessible - true when the item should be accessible/selectablestyle - the new style for the command, is ignored when null
public static void setTickerImage(Ticker ticker,
Image image)
ticker - the ticker item which will the image be setimage - that image that will be set to the ticker
public static void setTickerImage(Ticker ticker,
Image image)
ticker - the ticker item which will the image be setimage - that image that will be set to the ticker
public static void setData(Screen screen,
Object data)
screen - the screen in which the data should be storeddata - the screen specific datagetData(Screen)public static Object getData(Screen screen)
screen - the screen in which data has been previously stored using UiAccess.setData()
setData(Screen, Object)
public static void setData(Screen screen,
Object data)
screen - the screen in which the data should be storeddata - the screen specific datagetData(Screen)public static Object getData(Screen screen)
screen - the screen in which data has been previously stored using UiAccess.setData()
setData(Screen, Object)
public static void setCommandLabel(Screen screen,
Command command,
String label)
screen - the screen that contains the commandcommand - the commandlabel - the new label that should be shown
public static void setCommandLabel(Screen screen,
Command command,
String label)
screen - the screen that contains the commandcommand - the commandlabel - the new label that should be shown
public static void setCommandLabel(Screen screen,
Command command,
String label)
screen - the screen that contains the commandcommand - the commandlabel - the new label that should be shown
public static void setCommandLabel(Command command,
String label)
command - the commandlabel - the new label that should be shown
public static int append(Ticker ticker,
Form form)
ticker - the tickerform - the form
public static int append(Item item,
Form form)
item - the itemform - the form
public static int append(Item item,
Form form)
item - the itemform - the form
public static boolean isVisible(Item item)
item - the item that might be invisible
public static boolean isVisible(List list,
int index)
list - the listindex - the index of the item
public static void setVisible(Item item,
boolean visible)
item - the itemvisible - true when the item should become invisible.
public static void setVisible(List list,
int index,
boolean visible)
list - the listindex - the index of the itemvisible - true when the item should become invisible.public static boolean isVisible(Item item)
item - the item that might be invisible
public static boolean isVisible(List list,
int index)
list - the listindex - the index of the item
public static void setVisible(Item item,
boolean visible)
item - the itemvisible - true when the item should be visible.
public static void setVisible(List list,
int index,
boolean visible)
list - the listindex - the index of the itemvisible - true when the item should become invisible.
public static int indexOf(Item item,
Screen screen)
item - the itemscreen - the screen
public static int indexOf(Item item,
Screen screen)
item - the itemscreen - the screen
public static int indexOf(Item item,
Screen screen)
item - the itemscreen - the screen
public static int indexOf(Item item,
Screen screen)
item - the itemscreen - the screen
public static int[] getRgbData(Item item)
item - the item
public static int[] getRgbData(Item item,
int opacity)
item - the itemopacity - The opacity of the item between 0 (fully transparent) and 255 (fully opaque)
public static int[] getRgbData(Item item)
item - the item
public static int[] getRgbData(Item item,
int opacity)
item - the itemopacity - The opacity of the item between 0 (fully transparent) and 255 (fully opaque)
public static int[] getRgbDataOfContent(Item item)
item - the item
public static int[] getRgbDataOfContent(Item item)
item - the item
public static void getRgbDataOfContent(Item item,
int[] rgbData,
int x,
int y,
int width)
item - the itemrgbData - an int array in which the RGB data of the item's content is writtenx - the horizontal start position for the RGB datay - the vertical start position for the RGB datawidth - the width of a single row in the rgbData
public static void getRgbDataOfContent(Item item,
int[] rgbData,
int x,
int y,
int width)
item - the itemrgbData - an int array in which the RGB data of the item's content is writtenx - the horizontal start position for the RGB datay - the vertical start position for the RGB datawidth - the width of a single row in the rgbData
public static void setPredictiveDictionary(TextField field,
String[] words)
polish.TextField.usePredictiveInputMode.
field - the textfieldwords - array of allowed words - use null to reset the allowed words to the default RMS dictionary
public static void setPredictiveDictionary(TextField field,
String[] words)
polish.TextField.usePredictiveInputMode.
field - the textfieldwords - array of allowed words - use null to reset the allowed words to the default RMS dictionarypublic static ArrayList getPredictiveMatchingWords(TextField field)
polish.TextField.usePredictiveInputMode.
field - the textfield
public static ArrayList getPredictiveMatchingWords(TextField field)
polish.TextField.usePredictiveInputMode.
field - the textfield
public static void setTextfieldInfo(TextField field,
String info)
public static void setTextfieldInfo(TextField field,
String info)
public static void setTextfieldInfoItem(TextField field,
StringItem infoItem)
field - the TextFieldinfoItem - the StringItem that should be used for rendering the current input mode.
public static void setTextfieldInfoItem(TextField field,
StringItem infoItem)
field - the TextFieldinfoItem - the StringItem that should be used for rendering the current input mode.
public static void setTextfieldHelp(TextField field,
String text)
field - the TextFieldtext - the help text
public static void setTextfieldHelp(TextField field,
String text)
field - the TextFieldtext - the help text
public static void setSuppressCommands(TextField field,
boolean suppress)
field - the TextFieldsuppress - true when commands should be surpressed
public static void setSuppressCommands(TextField field,
boolean suppress)
field - the TextFieldsuppress - true when commands should be surpressed
public static void setItemStateListener(Item item,
ItemStateListener listener)
item - the itemlistener - the listener
public static void setItemStateListener(Item item,
ItemStateListener listener)
item - the itemlistener - the listenerpublic static void showNotify(Item item)
item - the itempublic static void showNotify(Item item)
item - the item
public static void showNotify(Screen screen,
Item item)
screen - the corresponding screen of that itemitem - the item
public static void showNotify(Screen screen,
Item item)
screen - the corresponding screen of that itemitem - the itempublic static void hideNotify(Item item)
item - the itempublic static void hideNotify(Item item)
item - the item
public static void setWordNotFound(TextField field,
Alert alert)
field - the textfieldalert - the alert
public static void setWordNotFound(TextField field,
Alert alert)
field - the textfieldalert - the alert
public static void setCycling(Container container,
boolean cycling)
container - the containercycling - true, if cycling should be allowed, otherwise false
public static void setCycling(FramedForm form,
boolean cycling)
form - the FramedFormcycling - true, if cycling should be allowed, otherwise falsepublic static int getContentX(Screen screen)
screen - the screen
public static int getContentY(Screen screen)
screen - the screen
public static int getContentWidth(Screen screen)
screen - the screen
public static int getContentHeight(Screen screen)
screen - the screen
public static int getContentX(Screen screen)
screen - the screen
public static int getContentY(Screen screen)
screen - the screen
public static int getContentWidth(Screen screen)
screen - the screen
public static int getContentHeight(Screen screen)
screen - the screen
public void setEventHandled(CustomItem item)
protected boolean handleKeyPressed(int keyCode, int gameAction ) etc methods
for this purpose, however in a CustomItem these will call protected void keyPressed(int keyCode) etc.
To abort processing of the event, you either have to call invalidate(), repaint() or
UiAccess.setEventHandled( CustomItem item )
item - the CustomItem which just handled an user input event within keyPressed/keyReleased/pointerPressed/etc.public static List getTextFieldSymbols()
public void setEventHandled(CustomItem item)
protected boolean handleKeyPressed(int keyCode, int gameAction ) etc methods
for this purpose, however in a CustomItem these will call protected void keyPressed(int keyCode) etc.
To abort processing of the event, you either have to call invalidate() or
UiAccess.setEventHandled( CustomItem item )
item - the CustomItem which just handled an user input event within keyPressed/keyReleased/pointerPressed/etc.public static void emitKeyPress(int keyCode)
keyCode - the keyCodepublic static void emitKeyRepeated(int keyCode)
keyCode - the keyCodepublic static void emitGameActionPress(int gameAction)
gameAction - the game action that should be triggered, e.g. Canvas.DOWN or Canvas.FIREpublic static void emitKeyRelease(int keyCode)
keyCode - the keyCodepublic static void emitGameActionRelease(int gameAction)
gameAction - the game action that should be triggered, e.g. Canvas.DOWN or Canvas.FIREpublic static Command cast(Command cmd)
cmd - the command
public static Command cast(Command cmd)
cmd - the command
public static CommandListener cast(CommandListener cmd)
cmd - the CommandListener
public static CommandListener cast(CommandListener cmd)
cmd - the CommandListener
public static Displayable cast(Displayable disp)
disp - the displayable
public static Displayable cast(Displayable disp)
disp - the displayable
public static Item cast(Item item)
item - the LCDUI item
public static Item cast(Item item)
item - the J2ME Polish item
public static Item[] cast(Item[] items)
items - the LCDUI items
public static Item[] cast(Item[] items)
items - the J2ME Polish items
public static void setScreenOrientation(Screen screen,
int degrees)
screen - the screendegrees - the screen orientation in degrees: 90, 180, 270 or 0setScreenOrientation(int)public static void setScreenOrientation(int degrees)
degrees - the screen orientation in degrees: 90, 180, 270 or 0
public static void setScreenOrientation(Screen screen,
int degrees)
screen - the screendegrees - the screen orientation in degrees: 90, 180, 270 or 0setScreenOrientation(int)
public static boolean isSoftKeyLeft(int keyCode,
Screen screen)
keyCode - the keyCode valuescreen - the screen
public static boolean isSoftKeyRight(int keyCode,
Screen screen)
keyCode - the keyCode valuescreen - the screen
public static boolean isSoftKeyMiddle(int keyCode,
Screen screen)
keyCode - the keyCode valuescreen - the screen
public static boolean isSoftKey(int keyCode,
Screen screen)
keyCode - the keyCode valuescreen - the screen
public static boolean isSoftKeyLeft(int keyCode,
int gameAction,
Screen screen)
keyCode - the keyCode valuegameAction - the corresponding game actionscreen - the screen
public static boolean isSoftKeyRight(int keyCode,
int gameAction,
Screen screen)
keyCode - the keyCode valuegameAction - the corresponding game actionscreen - the screen
public static boolean isSoftKeyMiddle(int keyCode,
int gameAction,
Screen screen)
keyCode - the keyCode valuegameAction - the corresponding game actionscreen - the screen
public static boolean isSoftKey(int keyCode,
int gameAction,
Screen screen)
keyCode - the keyCode valuegameAction - the corresponding game actionscreen - the screen
public static boolean isSoftKeyLeft(int keyCode,
Screen screen)
keyCode - the keyCode valuescreen - the screen
public static boolean isSoftKeyRight(int keyCode,
Screen screen)
keyCode - the keyCode valuescreen - the screen
public static boolean isSoftKeyMiddle(int keyCode,
Screen screen)
keyCode - the keyCode valuescreen - the screen
public static boolean isSoftKey(int keyCode,
Screen screen)
keyCode - the keyCode valuescreen - the screen
public static boolean isSoftKeyLeft(int keyCode,
int gameAction,
Screen screen)
keyCode - the keyCode valuegameAction - the corresponding game actionscreen - the screen
public static boolean isSoftKeyRight(int keyCode,
int gameAction,
Screen screen)
keyCode - the keyCode valuegameAction - the corresponding game actionscreen - the screen
public static boolean isSoftKeyMiddle(int keyCode,
int gameAction,
Screen screen)
keyCode - the keyCode valuegameAction - the corresponding game actionscreen - the screen
public static boolean isSoftKey(int keyCode,
int gameAction,
Screen screen)
keyCode - the keyCode valuegameAction - the corresponding game actionscreen - the screen
public static boolean isGameActionFire(int keyCode,
int gameAction,
Screen screen)
keyCode - the key codegameAction - the game actionscreen - the screen
public static boolean isGameActionFire(int keyCode,
int gameAction,
Screen screen)
keyCode - the key codegameAction - the game actionscreen - the screen
public static void setMenuBarStyle(Screen screen)
//#style newMenuBarStyle UiAccess.setMenuBarStyle( myScreen );
screen - the screen
public static void setMenuBarStyle(Screen screen,
Style style)
screen - the screenstyle - the stylepublic static void setMenuBarStyle(Screen screen)
//#style newMenuBarStyle UiAccess.setMenuBarStyle( myScreen );
screen - the screen
public static void setMenuBarStyle(Screen screen,
Style style)
screen - the screenstyle - the stylepublic static String getText(Item item)
item - the item
public static String getText(Item item)
item - the item
public static int getTitleHeight(Screen screen)
screen - the screen
public static int getTitleHeight(Screen screen)
screen - the screen
public static void setItemScreen(Item item,
Screen screen)
item - the itemscreen - the screen
public static void setItemScreen(Item item,
Screen screen)
item - the itemscreen - the screen
public static boolean delete(Form form,
Item item)
form - the formitem - the item that should be deleted
public static boolean delete(Form form,
Item item)
form - the formitem - the item that should be deleted
public static Item getTitleItem(Screen screen)
screen - the screen
setTitle(Screen, Item),
setTitle(Screen, Item, Style)public static Item getTitleItem(Screen screen)
screen - the screen
setTitle(javax.microedition.lcdui.Screen, Item),
setTitle(javax.microedition.lcdui.Screen, javax.microedition.lcdui.Item)
public static void setTextEffect(StringItem item,
TextEffect effect)
item - the string itemeffect - the effect that should be applied
public static void setTextEffect(StringItem item,
TextEffect effect)
item - the string itemeffect - the effect that should be applied
public static void fireEvent(String name,
Screen screen,
Object data)
name - the name of the eventscreen - the source of the eventdata - the event's data, can be nullfireEventForTitleAndMenubar(String, Screen, Object)
public static void fireEventForTitleAndMenubar(String name,
Screen screen,
Object data)
name - the name of the eventscreen - the source of the eventdata - the event's data, can be null
public static void fireEvent(String name,
Item item,
Object data)
name - the name of the eventitem - the source of the eventdata - the event's data, can be null
public static void fireEvent(String name,
Screen screen,
Object data)
name - the name of the eventscreen - the source of the eventdata - the event's data, can be null
public static void fireEventForTitleAndMenubar(String name,
Screen screen,
Object data)
name - the name of the eventscreen - the source of the eventdata - the event's data, can be nullfireEventForTitleAndMenubar(String, javax.microedition.lcdui.Screen, Object)
public static void fireEvent(String name,
Item item,
Object data)
name - the name of the eventitem - the source of the eventdata - the event's data, can be nullpublic static Container getScreenContainer(Screen screen)
screen - the screen
public static Container getScreenContainer(Screen screen)
screen - the screen
public static Object getPaintLock(Screen screen)
screen - the screen for which the paint lock should be retrieved.
public static Object getPaintLock(Screen screen)
screen - the screen for which the paint lock should be retrieved.
public static void init(Item item,
int firstLineWidth,
int availWidth,
int availHeight)
item - the itemfirstLineWidth - the first line widthavailWidth - the available widthavailHeight - the available height
public static void init(Item item,
int firstLineWidth,
int availWidth,
int availHeight)
item - the itemfirstLineWidth - the first line widthavailWidth - the available widthavailHeight - the available heightpublic static void init(Screen screen)
screen - the screenpublic static void notifyItemPressedStart(Item item)
item - the item which is pressedpublic static void notifyItemPressedStart(Item item)
item - the item which is pressedpublic static void notifyItemPressedEnd(Item item)
item - the item which is not pressed anymorepublic static void notifyItemPressedEnd(Item item)
item - the item which is not pressed anymore
public static void setNoNewLine(TextField textField,
boolean noNewLine)
textField - the text fieldnoNewLine - set if new lines should be ignored
public static void setNoNewLine(TextField textField,
boolean noNewLine)
textField - the text fieldnoNewLine - set if new lines should be ignoredpublic static void enableScreenChangeAnimations(boolean enable)
enable - true if screen change animations should be run otherwise false
public static void enableScreenChangeAnimation(Screen screen,
boolean enable)
screen - the screenenable - true if screen change animations should be run otherwise false
public static void enableScreenChangeAnimation(Screen screen,
boolean enable)
screen - the screenenable - true if screen change animations should be run otherwise falsepublic static void setUserInputValidator(Display.UserInputValidator validator)
validator - the key validatorpublic static void repaint(Item item)
item - the itempublic static void repaint(Item item)
item - the item
public static void setUiEventListener(Screen screen,
UiEventListener listener)
screen - the screenlistener - the listener, use null to remove a listener
public static void setUiEventListener(Item item,
UiEventListener listener)
item - the item for which the listener should be registeredlistener - the listener, use null to remove a listenerpublic static UiEventListener getUiEventListener(Screen screen)
screen - the screen
public static UiEventListener getUiEventListener(Item item)
item - the item
public static void setUiEventListener(Screen screen,
UiEventListener listener)
screen - the screenlistener - the listener, use null to remove a listener
public static void setUiEventListener(Item item,
UiEventListener listener)
item - the item for which the listener should be registeredlistener - the listener, use null to remove a listenerpublic static UiEventListener getUiEventListener(Screen screen)
screen - the screen
public static UiEventListener getUiEventListener(Item item)
item - the item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||