customitem
Class Table

java.lang.Object
  extended by javax.microedition.lcdui.Item
      extended by javax.microedition.lcdui.CustomItem
          extended by customitem.Table
All Implemented Interfaces:
javax.microedition.lcdui.ItemCommandListener

public class Table
extends javax.microedition.lcdui.CustomItem
implements javax.microedition.lcdui.ItemCommandListener


Field Summary
(package private)  boolean horz
           
(package private)  boolean vert
           
 
Fields inherited from class javax.microedition.lcdui.CustomItem
KEY_PRESS, KEY_RELEASE, KEY_REPEAT, NONE, POINTER_DRAG, POINTER_PRESS, POINTER_RELEASE, TRAVERSE_HORIZONTAL, TRAVERSE_VERTICAL
 
Fields inherited from class javax.microedition.lcdui.Item
BUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAIN
 
Constructor Summary
Table(java.lang.String title, javax.microedition.lcdui.Display d)
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Item i)
           
protected  int getMinContentHeight()
           
protected  int getMinContentWidth()
           
protected  int getPrefContentHeight(int width)
           
protected  int getPrefContentWidth(int height)
           
protected  void paint(javax.microedition.lcdui.Graphics g, int w, int h)
           
 void setText(java.lang.String text)
           
protected  boolean traverse(int dir, int viewportWidth, int viewportHeight, int[] visRect_inout)
           
 
Methods inherited from class javax.microedition.lcdui.CustomItem
getGameAction, getInteractionModes, hideNotify, invalidate, keyPressed, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, showNotify, sizeChanged, traverseOut
 
Methods inherited from class javax.microedition.lcdui.Item
addCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLabel, setLayout, setPreferredSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

horz

boolean horz

vert

boolean vert
Constructor Detail

Table

public Table(java.lang.String title,
             javax.microedition.lcdui.Display d)
Method Detail

getMinContentHeight

protected int getMinContentHeight()
Specified by:
getMinContentHeight in class javax.microedition.lcdui.CustomItem

getMinContentWidth

protected int getMinContentWidth()
Specified by:
getMinContentWidth in class javax.microedition.lcdui.CustomItem

getPrefContentHeight

protected int getPrefContentHeight(int width)
Specified by:
getPrefContentHeight in class javax.microedition.lcdui.CustomItem

getPrefContentWidth

protected int getPrefContentWidth(int height)
Specified by:
getPrefContentWidth in class javax.microedition.lcdui.CustomItem

paint

protected void paint(javax.microedition.lcdui.Graphics g,
                     int w,
                     int h)
Specified by:
paint in class javax.microedition.lcdui.CustomItem

traverse

protected boolean traverse(int dir,
                           int viewportWidth,
                           int viewportHeight,
                           int[] visRect_inout)
Overrides:
traverse in class javax.microedition.lcdui.CustomItem

setText

public void setText(java.lang.String text)

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Item i)
Specified by:
commandAction in interface javax.microedition.lcdui.ItemCommandListener