Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.microedition.lcdui
Class Form  view Form download Form.java

java.lang.Object
  extended byjavax.microedition.lcdui.Displayable
      extended byjavax.microedition.lcdui.Screen
          extended byjavax.microedition.lcdui.Form

public class Form
extends Screen


Field Summary
(package private)  int focusItemIndex
           
(package private)  Item[] items
           
(package private)  ItemStateListener itemStateListener
           
(package private)  int numOfItems
           
 
Fields inherited from class javax.microedition.lcdui.Screen
ticker, title, viewPortHeight, viewPortY
 
Fields inherited from class javax.microedition.lcdui.Displayable
commands, currentDisplay, listener
 
Constructor Summary
Form(java.lang.String title)
           
Form(java.lang.String title, Item[] items)
           
 
Method Summary
 int append(Image img)
           
 int append(Item item)
           
 int append(java.lang.String str)
           
 void delete(int itemNum)
           
 Item get(int itemNum)
           
(package private)  int getBottomVisibleIndex(int bottom)
           
(package private)  int getHeight()
           
(package private)  int getHeightToItem(int itemIndex)
           
(package private)  int getTopVisibleIndex(int top)
           
(package private)  void hideNotify()
           
 void insert(int itemNum, Item item)
           
(package private)  void keyPressed(int keyCode)
           
(package private)  int paintContent(Graphics g)
           
 void set(int itemNum, Item item)
           
 void setItemStateListener(ItemStateListener iListener)
           
(package private)  void showNotify()
           
 int size()
           
(package private)  int traverse(int gameKeyCode, int top, int bottom)
           
private  void verifyItem(Item item)
          Verify that the item is non null and is not owned by this form or anyone else.
private  void verifyItemNum(int itemNum)
          Verify that the index passed in is valid for this form.
 
Methods inherited from class javax.microedition.lcdui.Screen
getTicker, getTitle, keyRepeated, paint, repaint, setTicker, setTitle
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getCommandListener, getCommands, hideNotify, isShown, keyReleased, removeCommand, setCommandListener, showNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

items

Item[] items

numOfItems

int numOfItems

focusItemIndex

int focusItemIndex

itemStateListener

ItemStateListener itemStateListener
Constructor Detail

Form

public Form(java.lang.String title)

Form

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

append

public int append(Item item)

append

public int append(Image img)

append

public int append(java.lang.String str)

delete

public void delete(int itemNum)

get

public Item get(int itemNum)

insert

public void insert(int itemNum,
                   Item item)

set

public void set(int itemNum,
                Item item)

setItemStateListener

public void setItemStateListener(ItemStateListener iListener)

size

public int size()

paintContent

int paintContent(Graphics g)
Specified by:
paintContent in class Screen

getHeight

int getHeight()

hideNotify

void hideNotify()
Overrides:
hideNotify in class Screen

keyPressed

void keyPressed(int keyCode)
Overrides:
keyPressed in class Screen

showNotify

void showNotify()
Overrides:
showNotify in class Screen

traverse

int traverse(int gameKeyCode,
             int top,
             int bottom)
Specified by:
traverse in class Screen

getTopVisibleIndex

int getTopVisibleIndex(int top)

getBottomVisibleIndex

int getBottomVisibleIndex(int bottom)

getHeightToItem

int getHeightToItem(int itemIndex)

verifyItem

private void verifyItem(Item item)
Verify that the item is non null and is not owned by this form or anyone else. If all is ok set the owner to this Form


verifyItemNum

private void verifyItemNum(int itemNum)
Verify that the index passed in is valid for this form. ie within the range 0..size-1