javax.microedition.lcdui
Class Item
java.lang.Object
javax.microedition.lcdui.Item
- Direct Known Subclasses:
- ChoiceGroup, Gauge, Spacer, StringItem, TextField
public abstract class Item
- extends Object
- Author:
- Andre Nijholt
Constructor Summary |
Item()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
label
protected String label
minWidth
protected int minWidth
minHeight
protected int minHeight
prefWidth
protected int prefWidth
prefHeight
protected int prefHeight
interactive
protected boolean interactive
cmdListener
protected ItemCommandListener cmdListener
commands
protected ArrayList<Command> commands
Item
public Item()
getLabel
public String getLabel()
getMinimumHeight
public int getMinimumHeight()
getMinimumWidth
public int getMinimumWidth()
getPreferredHeight
public int getPreferredHeight()
getPreferredWidth
public int getPreferredWidth()
setPreferredSize
public void setPreferredSize(int width,
int height)
isInteractive
public boolean isInteractive()
notifyStateChanged
public void notifyStateChanged()
addCommand
public void addCommand(Command cmd)
removeCommand
public void removeCommand(Command cmd)
setItemCommandListener
public void setItemCommandListener(ItemCommandListener l)
getPaintRequest
public boolean getPaintRequest()
repaint
protected void repaint()
keyPressed
protected void keyPressed(int keyCode)
keyReleased
protected void keyReleased(int keyCode)
showNotify
protected void showNotify()
hideNotify
protected void hideNotify()
paint
protected abstract void paint(Graphics g,
int x,
int y,
int w,
int h,
boolean selected)