net.sourceforge.mewt.button
Class TextButton

java.lang.Object
  extended by net.sourceforge.mewt.button.ImageButton
      extended by net.sourceforge.mewt.button.TextButton

public class TextButton
extends ImageButton

The Class TextButton.


Field Summary
 
Fields inherited from class net.sourceforge.mewt.button.ImageButton
OUTSET, STYLE_ROUND, STYLE_SQUARE
 
Constructor Summary
TextButton(java.lang.String label, java.lang.String imageRes)
          Instantiates a new text 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)
          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, setCommand, setImage, setParent, setSelected, setStretchIcon, setStyle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextButton

public TextButton(java.lang.String label,
                  java.lang.String imageRes)
Instantiates a new text 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)
Description copied from class: ImageButton
Paint.

Overrides:
paint in class ImageButton
Parameters:
gc - the gx
x - the x
y - the y
width - the width
height - the height