net.sourceforge.mewt.button
Class TextButton
java.lang.Object
net.sourceforge.mewt.button.ImageButton
net.sourceforge.mewt.button.TextButton
public class TextButton
- extends ImageButton
The Class TextButton.
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 |
TextButton
public TextButton(java.lang.String label,
java.lang.String imageRes)
- Instantiates a new text button.
- Parameters:
label
- the labelimageRes
- the image res
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 gxx
- the xy
- the ywidth
- the widthheight
- the height