javax.microedition.lcdui
Class StringItem

java.lang.Object
  extended by javax.microedition.lcdui.Item
      extended by javax.microedition.lcdui.StringItem

public class StringItem
extends Item

Author:
Andre Nijholt

Field Summary
 
Fields inherited from class javax.microedition.lcdui.Item
cmdListener, commands, interactive, label, minHeight, minWidth, prefHeight, prefWidth
 
Constructor Summary
StringItem(String label, String text)
           
 
Method Summary
 String getText()
           
 void paint(Graphics g, int x, int y, int w, int h, boolean selected)
           
 void setText(String text)
           
 
Methods inherited from class javax.microedition.lcdui.Item
addCommand, getLabel, getMinimumHeight, getMinimumWidth, getPaintRequest, getPreferredHeight, getPreferredWidth, hideNotify, isInteractive, keyPressed, keyReleased, notifyStateChanged, removeCommand, repaint, setItemCommandListener, setPreferredSize, showNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringItem

public StringItem(String label,
                  String text)
Method Detail

getText

public String getText()

setText

public void setText(String text)

paint

public void paint(Graphics g,
                  int x,
                  int y,
                  int w,
                  int h,
                  boolean selected)
Specified by:
paint in class Item