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

Quick Search    Search Deep

javax.microedition.lcdui
Class ChoiceGroup.ChoiceItem  view ChoiceGroup.ChoiceItem download ChoiceGroup.ChoiceItem.java

java.lang.Object
  extended byjavax.microedition.lcdui.Item
      extended byjavax.microedition.lcdui.ImageStringItem
          extended byjavax.microedition.lcdui.ChoiceGroup.ChoiceItem
Enclosing class:
ChoiceGroup

class ChoiceGroup.ChoiceItem
extends ImageStringItem


Field Summary
(package private)  Image img
           
private  boolean selected
           
(package private)  StringComponent stringComponent
           
 
Fields inherited from class javax.microedition.lcdui.Item
labelComponent, OUTOFITEM, owner
 
Constructor Summary
(package private) ChoiceGroup.ChoiceItem(java.lang.String label, Image image, java.lang.String text)
           
 
Method Summary
(package private)  int getHeight()
           
 Image getImage()
           
 java.lang.String getText()
           
(package private)  void invertPaint(boolean state)
           
(package private)  boolean isSelected()
           
(package private)  int paint(Graphics g)
           
 void setImage(Image img)
           
(package private)  void setSelectedState(boolean state)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class javax.microedition.lcdui.Item
getLabel, getOwner, hasFocus, isFocusable, keyPressed, paintContent, repaint, select, setFocus, setLabel, setOwner, traverse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selected

private boolean selected

img

Image img

stringComponent

StringComponent stringComponent
Constructor Detail

ChoiceGroup.ChoiceItem

ChoiceGroup.ChoiceItem(java.lang.String label,
                       Image image,
                       java.lang.String text)
Method Detail

isSelected

boolean isSelected()

setSelectedState

void setSelectedState(boolean state)

getImage

public Image getImage()

setImage

public void setImage(Image img)

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getHeight

int getHeight()
Overrides:
getHeight in class Item

invertPaint

void invertPaint(boolean state)

paint

int paint(Graphics g)
Specified by:
paint in class Item