|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.microedition.lcdui.Displayable
|
+--javax.microedition.lcdui.Screen
|
+--javax.microedition.lcdui.Form
A form contains items for displaying on a screen
| Field Summary |
| Fields inherited from class javax.microedition.lcdui.Screen |
height, offset |
| Fields inherited from class javax.microedition.lcdui.Displayable |
display |
| Constructor Summary | |
Form(java.lang.String title)
Create a new form with the title |
|
Form(java.lang.String title,
Item[] items)
Create a new form pre-populated with items |
|
| Method Summary | |
int |
append(Image img)
Append an image |
int |
append(Item item)
Append an item |
int |
append(java.lang.String str)
Append a string to the items |
void |
delete(int pos)
Delete the item at the specified position |
Item |
get(int pos)
Get the item at the specified position |
void |
insert(int pos,
Item item)
Insert an item into the form just before the specified position |
void |
keyPressed(int code)
Handle a key press. |
void |
set(int pos,
Item item)
Set the item at the specified position to a new item |
void |
setItemStateListener(ItemStateListener iListener)
Set the item state listener |
int |
size()
Return the number of items in this form |
| Methods inherited from class javax.microedition.lcdui.Screen |
getTicker, getTitle, scrollDown, scrollUp, setTicker, setTitle |
| Methods inherited from class javax.microedition.lcdui.Displayable |
addCommand, isShown, removeCommand, setCommandListener |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Form(java.lang.String title)
title - The title
public Form(java.lang.String title,
Item[] items)
title - The titleitems - The items| Method Detail |
public int append(Image img)
img - The image
public int append(Item item)
item - The item to append
public int append(java.lang.String str)
str - The string
public void delete(int pos)
pos - The position of the item to delete
IndexOutOfBoundsException - if the number is invalidpublic Item get(int pos)
pos - The position to get the item from
IndexOutOfBoundsException - if the position is invalid
public void insert(int pos,
Item item)
pos - The positionitem - The item
IndexOutOfBoundsException - if the position is invalid
NullPointerException - if the item is null
public void set(int pos,
Item item)
pos - The positionitem - The new item
IndexOutOfBoundsException - if the position is invalid
NullPointerException - if the item is nullpublic void setItemStateListener(ItemStateListener iListener)
iListener - the listenerpublic int size()
public void keyPressed(int code)
keyPressed in class Screencode - The code
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||