net.sourceforge.mewt.list
Class ListButton
java.lang.Object
net.sourceforge.mewt.button.ImageButton
net.sourceforge.mewt.list.ListButton
public class ListButton
- extends ImageButton
The Class ListButton.
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 |
ListButton
public ListButton(java.lang.String label,
java.lang.String imageRes)
- Instantiates a new list 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,
int parentWidth)
- Paint.
- Parameters:
gc
- the gcx
- the xy
- the ywidth
- the widthheight
- the heightparentWidth
- the parent width