javax.microedition.lcdui
Class Form
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.Form
- All Implemented Interfaces:
- CommandListener
public class Form
- extends Screen
- implements CommandListener
- Author:
- Andre Nijholt
Methods inherited from class javax.microedition.lcdui.Displayable |
addCommand, clearPaintRequest, getPaintRequest, getTicker, getTitle, isShown, removeCommand, repaint, setCommandListener, setTicker, setTicker, setTitle |
Form
public Form(String title)
Form
public Form(String title,
Item[] items)
append
public int append(Image img)
append
public int append(Item item)
append
public int append(String str)
delete
public void delete(int itemNum)
deleteAll
public void deleteAll()
get
public Object get(int itemNum)
set
public void set(int itemNum,
Item item)
insert
public void insert(int itemNum,
Item item)
getHeight
public int getHeight()
- Overrides:
getHeight
in class Displayable
getWidth
public int getWidth()
- Overrides:
getWidth
in class Displayable
size
public int size()
setItemStateListener
public void setItemStateListener(ItemStateListener i)
commandAction
public void commandAction(Command c,
Displayable d)
- Specified by:
commandAction
in interface CommandListener
paint
public void paint(Graphics g)