de.enough.polish.ui
Class UiAccess

java.lang.Object
  extended by de.enough.polish.ui.UiAccess

public final class UiAccess
extends java.lang.Object

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 - 2008

 history
        31-Jan-2006 - rob creation
 

Author:
Robert Virkus, j2mepolish@enough.de

Field Summary
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.
 
Method Summary
static void addItemCommand(javax.microedition.lcdui.List list, int index, javax.microedition.lcdui.Command command)
          Adds a command to a list item.
static void addItemCommand(List list, int index, javax.microedition.lcdui.Command command)
          Adds a command to a list item.
static void addSubCommand(javax.microedition.lcdui.Command child, javax.microedition.lcdui.Command parent, javax.microedition.lcdui.Screen screen)
          Adds the given command as a subcommand to the defined screen.
static void addSubCommand(javax.microedition.lcdui.Command child, javax.microedition.lcdui.Command parent, Screen screen)
          Adds the given command as a subcommand to the defined screen.
static void addSubCommand(javax.microedition.lcdui.Command child, javax.microedition.lcdui.Command parent, Screen screen, Style style)
          Adds the given command as a subcommand to the defined screen.
static int append(Item item, javax.microedition.lcdui.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(javax.microedition.lcdui.Ticker ticker, javax.microedition.lcdui.Form form)
          Adds a ticker as a normal item to the specified form.
static void appendChoiceGroupItem(ChoiceGroup ChoiceGroup, ChoiceItem item)
          Sets a ChoiceItem or a subclass for the given ChoiceGroup.
static void appendChoiceGroupItem(javax.microedition.lcdui.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(javax.microedition.lcdui.List list, ChoiceItem item)
          Sets a ChoiceItem or a subclass for the given list.
static Item cast(javax.microedition.lcdui.Item item)
          Casts the given LCDUI item into a J2ME Polish item
static javax.microedition.lcdui.Item cast(Item item)
          Casts the given J2ME Polish item into a LCDUI item
static Item[] cast(javax.microedition.lcdui.Item[] items)
          Casts the given LCDUI items into J2ME Polish items
static javax.microedition.lcdui.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 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 focus(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.Screen screen, javax.microedition.lcdui.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 java.lang.Object getAttribute(Item item, java.lang.Object key)
          Gets an previously added attribute of the specified item.
static java.lang.Object getAttribute(javax.microedition.lcdui.Item item, java.lang.Object key)
          Gets an previously added attribute of the specified item.
static java.lang.Object getAttribute(List list, int index, java.lang.Object key)
          Gets an previously added attribute of the specified item.
static java.lang.Object getAttribute(javax.microedition.lcdui.List list, int index, java.lang.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.Item item)
          Retrieves the background of the given item.
static Background getBackground(Screen screen)
          Retrieves the background of the given screen.
static Background getBackground(javax.microedition.lcdui.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(javax.microedition.lcdui.ChoiceGroup ChoiceGroup, int index)
          Retrieves a ChoiceItem or a subclass for the given ChoiceGroup.
static javax.microedition.lcdui.CommandListener getCommandListener(javax.microedition.lcdui.Screen screen)
          Retrieves the command listener belonging to this screen.
static javax.microedition.lcdui.CommandListener getCommandListener(Screen screen)
          Retrieves the command listener belonging to this screen.
static int getContentHeight(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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 java.lang.Object getData(Screen screen)
          Retrieves screen specific data.
static java.lang.Object getData(javax.microedition.lcdui.Screen screen)
          Retrieves screen specific data.
static java.lang.String getDotSeparatedDecimalString(javax.microedition.lcdui.TextField field)
          Retrieves the decimal value entered with a dot as the decimal mark.
static java.lang.String getDotSeparatedDecimalString(TextField field)
          Retrieves the decimal value entered with a dot as the decimal mark.
static int getFocusedIndex(javax.microedition.lcdui.Screen screen)
          Retrieves the focused index of the specified screen
static int getFocusedIndex(Screen screen)
          Retrieves the focused index of the specified screen
static javax.microedition.lcdui.Item getFocusedItem(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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 ChoiceItem getListItem(List list, int index)
          Retrieves a ChoiceItem or a subclass for the given list.
static ChoiceItem getListItem(javax.microedition.lcdui.List list, int index)
          Retrieves a ChoiceItem or a subclass for the given list.
static ArrayList getPredictiveMatchingWords(javax.microedition.lcdui.TextField field)
          Retrieves matching words for the specified textfield.
static ArrayList getPredictiveMatchingWords(TextField field)
          Retrieves matching words for the specified textfield.
static int[] getRgbData(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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 Style getStyle(javax.microedition.lcdui.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(javax.microedition.lcdui.Screen screen)
          Gets the current style of the given screen.
static Style getStyle(Screen screen)
          Gets the current style of the given screen.
static java.lang.String getText(Item item)
          Retrieves text from a J2ME Polish item.
static java.lang.String getText(javax.microedition.lcdui.Item item)
          Retrieves text from a J2ME Polish item.
static List getTextFieldSymbols()
          Initializes the symbols list and returns it
static boolean handleCommand(Item item, javax.microedition.lcdui.Command cmd)
          Asks the specified item to handle the command.
static boolean handleCommand(javax.microedition.lcdui.Item item, javax.microedition.lcdui.Command cmd)
          Asks the specified item to handle the command.
static boolean handleCommand(Screen screen, javax.microedition.lcdui.Command cmd)
          Asks the specified screen to handle the command.
static boolean handleCommand(javax.microedition.lcdui.Screen screen, javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.Screen screen, int keyCode, int gameAction)
          Forwards a key event to the specified screen.
static boolean handlePointerPressed(Item item, int x, int y)
          Forwards a key event to the specified item.
static boolean handlePointerPressed(javax.microedition.lcdui.Item item, int x, int y)
          Forwards a key 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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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, javax.microedition.lcdui.Screen screen)
          Retrieves the index of the specified item in the screen.
static int indexOf(javax.microedition.lcdui.Item item, Screen screen)
          Retrieves the index of the specified item in the screen.
static int indexOf(javax.microedition.lcdui.Item item, javax.microedition.lcdui.Screen screen)
          Retrieves the index of the specified item in the screen.
static boolean isGameActionFire(int keyCode, int gameAction, javax.microedition.lcdui.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(javax.microedition.lcdui.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, javax.microedition.lcdui.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, javax.microedition.lcdui.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, javax.microedition.lcdui.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, javax.microedition.lcdui.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, javax.microedition.lcdui.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, javax.microedition.lcdui.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, javax.microedition.lcdui.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, javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.List list, int index)
          Gets the visible status of the specified list-item.
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(javax.microedition.lcdui.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(javax.microedition.lcdui.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 scroll(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.Screen screen, javax.microedition.lcdui.Command command, boolean isAccessible)
          Makes the command interactive (accessible) or non-interactive.
static void setAccessible(Screen screen, javax.microedition.lcdui.Command command, boolean isAccessible)
          Makes the item interactive (accessible) or non-interactive.
static void setAccessible(Screen screen, javax.microedition.lcdui.Command command, boolean isAccessible, Style style)
          Makes the item interactive (accessible) or non-interactive.
static void setAccessible(Ticker ticker, javax.microedition.lcdui.Image image)
          Sets an image for the specified ticker.
static void setAttribute(Item item, java.lang.Object key, java.lang.Object value)
          Sets an arbitrary attribute for the given item.
static void setAttribute(javax.microedition.lcdui.Item item, java.lang.Object key, java.lang.Object value)
          Sets an arbitrary attribute for the given item.
static void setAttribute(List list, int index, java.lang.Object key, java.lang.Object value)
          Sets an arbitrary attribute for the specified list item.
static void setAttribute(javax.microedition.lcdui.List list, int index, java.lang.Object key, java.lang.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(javax.microedition.lcdui.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(javax.microedition.lcdui.Screen screen, Background background)
          Sets the background for the given screen.
static void setCaretPosition(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.ChoiceGroup ChoiceGroup, int index, ChoiceItem item)
          Sets a ChoiceItem or a subclass for the given ChoiceGroup.
static void setCommandLabel(javax.microedition.lcdui.Screen screen, javax.microedition.lcdui.Command command, java.lang.String label)
          Changes the shown label of the specified command.
static void setCommandLabel(Screen screen, javax.microedition.lcdui.Command command, java.lang.String label)
          Changes the shown label of the specified command.
static void setCurrentListIndex(javax.microedition.lcdui.Display display, javax.microedition.lcdui.List list, int index)
          Sets the focus to the given index of the specified list.
static void setCurrentListIndex(javax.microedition.lcdui.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 setData(Screen screen, java.lang.Object data)
          Attaches data to the specified screen.
static void setData(javax.microedition.lcdui.Screen screen, java.lang.Object data)
          Attaches data to the specified screen.
 void setEventHandled(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.Screen screen, javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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 setItemStateListener(Item item, ItemStateListener listener)
          Sets an ItemStateListener specifically for this item.
static void setItemStateListener(javax.microedition.lcdui.Item item, javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.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(javax.microedition.lcdui.Screen screen, Style style)
          Set the style of the specified screen's menubar.
static void setParent(Item child, Item parent)
          Sets the parent for the given child item.
static void setParent(Item child, javax.microedition.lcdui.Item parent)
          Sets the parent for the given child item.
static void setParent(javax.microedition.lcdui.Item child, javax.microedition.lcdui.Item parent)
          Sets the parent for the given child item.
static void setPredictiveDictionary(javax.microedition.lcdui.TextField field, java.lang.String[] words)
          Allows the given words for the specified textfield.
static void setPredictiveDictionary(TextField field, java.lang.String[] words)
          Allows the given words for the specified textfield.
static void setScreenOrientation(Screen screen, int degrees)
          Sets the screen orientation in 90 degrees steps.
static void setScreenOrientation(javax.microedition.lcdui.Screen screen, int degrees)
          Sets the screen orientation in 90 degrees steps.
static void setScreenStateListener(javax.microedition.lcdui.Screen screen,