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, callCommandListener, clearPaintRequest, getPaintRequest, getTicker, getTitle, isShown, removeCommand, repaint, setCommandListener, setTicker, setTicker, setTitle, sizeChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
callItemStateListener
protected void callItemStateListener()
keyPressed
protected void keyPressed(int keyCode)
- Overrides:
keyPressed
in class Screen
commandAction
public void commandAction(Command c,
Displayable d)
- Specified by:
commandAction
in interface CommandListener
paint
public void paint(Graphics g)
- Specified by:
paint
in class Screen