|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.mewt.button.ImageButton
public class ImageButton
The Class ImageButton.
Field Summary | |
---|---|
static int |
OUTSET
The OUTSET. |
static int |
STYLE_ROUND
The Constant STYLE_ROUND. |
static int |
STYLE_SQUARE
The Constant STYLE_SQUARE. |
Constructor Summary | |
---|---|
ImageButton(java.lang.String image)
Instantiates a new image button. |
Method Summary | |
---|---|
javax.microedition.lcdui.Command |
getCommand()
Gets the command. |
java.lang.String |
getImage()
Gets the image. |
Themeable |
getParent()
Gets the parent. |
int |
getStyle()
Gets the style. |
boolean |
isSelected()
Checks if is selected. |
boolean |
isStretchIcon()
Checks if is stretch icon. |
void |
paint(javax.microedition.lcdui.Graphics gx,
int x,
int y,
int width,
int height)
Paint. |
void |
setCommand(javax.microedition.lcdui.Command command)
Sets the command. |
void |
setImage(java.lang.String image)
Sets the image. |
void |
setParent(Themeable formCommon)
Sets the parent. |
void |
setSelected(boolean s)
Sets the selected. |
void |
setStretchIcon(boolean stretchIcon)
Sets the stretch icon. |
void |
setStyle(int style)
Sets the style. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STYLE_ROUND
public static final int STYLE_SQUARE
public static int OUTSET
Constructor Detail |
---|
public ImageButton(java.lang.String image)
image
- the imageMethod Detail |
---|
public int getStyle()
public void setStyle(int style)
style
- the new stylepublic boolean isSelected()
public void setSelected(boolean s)
s
- the new selectedpublic void paint(javax.microedition.lcdui.Graphics gx, int x, int y, int width, int height)
gx
- the gxx
- the xy
- the ywidth
- the widthheight
- the heightpublic java.lang.String getImage()
public void setImage(java.lang.String image)
image
- the new imagepublic javax.microedition.lcdui.Command getCommand()
public void setCommand(javax.microedition.lcdui.Command command)
command
- the new commandpublic void setParent(Themeable formCommon)
formCommon
- the new parentpublic Themeable getParent()
public boolean isStretchIcon()
public void setStretchIcon(boolean stretchIcon)
stretchIcon
- the new stretch icon
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |