javax.microedition.lcdui
Class Form

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.Form
All Implemented Interfaces:
CommandListener

public class Form
extends Screen
implements CommandListener

Author:
Andre Nijholt

Field Summary
 
Fields inherited from class javax.microedition.lcdui.Displayable
cmdListener, commands, KEY_BACK, KEY_ENTER, KEY_LEFT, KEY_RIGHT, shown, ticker, title
 
Constructor Summary
Form(String title)
           
Form(String title, Item[] items)
           
 
Method Summary
 int append(Image img)
           
 int append(Item item)
           
 int append(String str)
           
protected  void callItemStateListener()
           
 void commandAction(Command c, Displayable d)
           
 void delete(int itemNum)
           
 void deleteAll()
           
 Object get(int itemNum)
           
 int getHeight()
           
 int getWidth()
           
 void insert(int itemNum, Item item)
           
protected  void keyPressed(int keyCode)
           
 void paint(Graphics g)
           
 void set(int itemNum, Item item)
           
 void setItemStateListener(ItemStateListener i)
           
 int size()
           
 
Methods inherited from class javax.microedition.lcdui.Screen
hideNotify, keyReleased, showNotify
 
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
 

Constructor Detail

Form

public Form(String title)

Form

public Form(String title,
            Item[] items)
Method Detail

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