net.sourceforge.mewt.list
Class ListButton

java.lang.Object
  extended by net.sourceforge.mewt.button.ImageButton
      extended by net.sourceforge.mewt.list.ListButton

public class ListButton
extends ImageButton

The Class ListButton.


Field Summary
 
Fields inherited from class net.sourceforge.mewt.button.ImageButton
OUTSET, STYLE_ROUND, STYLE_SQUARE
 
Constructor Summary
ListButton(java.lang.String label, java.lang.String imageRes)
          Instantiates a new list button.
 
Method Summary
 java.lang.String getLabel()
          Gets the label.
 void paint(javax.microedition.lcdui.Graphics gc, int x, int y, int width, int height, int parentWidth)
          Paint.
 void setLabel(java.lang.String label)
          Sets the label.
 
Methods inherited from class net.sourceforge.mewt.button.ImageButton
getCommand, getImage, getParent, getStyle, isSelected, isStretchIcon, paint, setCommand, setImage, setParent, setSelected, setStretchIcon, setStyle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListButton

public ListButton(java.lang.String label,
                  java.lang.String imageRes)
Instantiates a new list button.

Parameters:
label - the label
imageRes - the image res
Method Detail

getLabel

public java.lang.String getLabel()
Gets the label.

Returns:
the label

setLabel

public void setLabel(java.lang.String label)
Sets the label.

Parameters:
label - the new label

paint

public void paint(javax.microedition.lcdui.Graphics gc,
                  int x,
                  int y,
                  int width,
                  int height,
                  int parentWidth)
Paint.

Parameters:
gc - the gc
x - the x
y - the y
width - the width
height - the height
parentWidth - the parent width