|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalmed.ui.Button
public final class Button
This class implements a clickable button.
Constructor Summary | |
---|---|
Button(ICommand command,
ICommandListener listener,
java.lang.String image)
Create a button. |
Method Summary | |
---|---|
void |
enter()
Enter the button. |
int |
getHeight()
Retrieve the height. |
int |
getWidth()
Retrieve the width. |
void |
leave()
Leave the button. |
void |
paint(javax.microedition.lcdui.Graphics g)
Paint the button. |
void |
trigger()
Trigger the button if in enter state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Button(ICommand command, ICommandListener listener, java.lang.String image)
command
- the commandlistener
- the command listenerimage
- the imageMethod Detail |
---|
public void paint(javax.microedition.lcdui.Graphics g)
g
- the graphicspublic int getWidth()
public int getHeight()
public void enter()
public void leave()
public void trigger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |