|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Button
Interface for buttons.
Method Summary | |
---|---|
void |
focus()
Focuses this control. |
boolean |
isEnabled()
|
void |
setDefault(boolean isDefault)
If true, sets this as the default button. |
void |
setEnabled(boolean enabled)
Enables/disables the button. |
void |
setLabel(java.lang.String text)
Sets the button's text label. |
void |
setOnAction(java.lang.String callback)
Sets the action method called when button is clicked. |
Methods inherited from interface com.leafdigital.ui.api.Widget |
---|
getID, getOwner, informClosed, isVisible, setOwner, setVisible |
Methods inherited from interface com.leafdigital.ui.api.SupportsBaseGroup |
---|
setBaseGroup |
Method Detail |
---|
void setLabel(java.lang.String text)
text
- Text for label@UICallback void setOnAction(java.lang.String callback)
callback
- Name of method
BugException
- If method doesn't exist etc.void setDefault(boolean isDefault)
isDefault
- True to make this default buttonvoid setEnabled(boolean enabled)
enabled
- New enabled valueboolean isEnabled()
void focus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |