|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jcontrol.ui.vole.Component
|
+--jcontrol.ui.vole.Button
VOLE user interface labeled button. The application can cause some action to happen when the button is pushed.
(C) DOMOLOGIC Home Automation GmbH 2003
| Field Summary |
| Fields inherited from class jcontrol.ui.vole.Component |
focusOwner, font, g, height, listener, parent, visible, width, x, y |
| Constructor Summary | |
Button(java.lang.Object label,
int x,
int y,
int width,
int height)
Constructs a new button with text or an image. |
|
Button(java.lang.String text,
int x,
int y)
Constructs a new text-labeled button. |
|
| Method Summary | |
boolean |
onKeyEvent(KeyEvent e)
If a KeyEvent accurs, this method is called. |
void |
paint()
Paint the button. |
void |
press(boolean onoff)
Press the button. |
void |
setActionListener(ActionListener listener)
Add an ActionListener to the button. |
void |
setLabel(java.lang.Object label)
Change the button's label |
void |
validate()
Compute this component's preferred size and assign internal values width and height. |
| Methods inherited from class jcontrol.ui.vole.Component |
getBounds, getParent, isVisible, onActionEvent, remove, removeFocus, requestFocus, setBounds, setFont, setGraphics, setLocation, setParent, setVisible, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, notifyAll, wait |
| Constructor Detail |
public Button(java.lang.Object label,
int x,
int y,
int width,
int height)
label - the label to display on the buttonx - the x-coordinate of the button's top-left cornery - the y-coordinate of the button's top-left cornerwidth - the width of the buttonheight - the height of the button
public Button(java.lang.String text,
int x,
int y)
text - The text to display on the button.x - the x-coordinate of the button's top-left cornery - the y-coordinate of the button's top-left corner| Method Detail |
public boolean onKeyEvent(KeyEvent e)
onKeyEvent in class Componente - the KeyEvent.
Container.public void paint()
paint in class Componentpublic void press(boolean onoff)
public void setActionListener(ActionListener listener)
listener - The new ActionListener or null.public void setLabel(java.lang.Object label)
label - the new label or null if the button has no label.public void validate()
validate in class Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||