|
MIDP3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ItemTraversalListener
This interface is used by applications that need to receive events indicating
changes in focus for Items
in a Form
screen.
An Item
has focus when it is selected as the active
recipient of regular key events. Thus, an item will not have focus if another
Item has focus, if its Form is hidden, or if its Form is shown on a Display
that does not have foreground status. None of the Items of a Form will have focus
if the Form is not currently being shown on a Display having foreground status.
Traversal events within a given Item are not reported to this listener. For
standard Item classes such as StringItem and ChoiceGroup, internal traversal
is platform-dependent. For a CustomItem, internal traversal can be controlled
by overriding its traverse
and traverseOut
methods.
Form.setItemTraversalListener(ItemTraversalListener)
,
CustomItem.traverse(int, int, int, int[])
Method Summary | |
---|---|
void |
itemTraversedIn(Item item)
Called when the item gains focus. |
void |
itemTraversedOut(Item item)
Called when the item loses focus. |
Method Detail |
---|
void itemTraversedIn(Item item)
item
- The item that gained focusvoid itemTraversedOut(Item item)
item
- The item that lost focus
|
MIDP3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |