A generic button component.
3.0
Inheritance Path. java.lang.Object-> com.itmill.toolkit.ui.AbstractComponent -> com.itmill.toolkit.ui.AbstractField -> com.itmill.toolkit.ui.Button
Creates a new push button. The value of the push button is allways false and they are immediate by default.
Parameters
caption
Button caption
Creates a new push button. The value of the push button is allways false and they are immediate by default.
Parameters
state
Initial state of the switch-button.
Creates new switch button with initial value.
Parameters
caption
Button caption
listener
Button click listener
Creates a new push button with click listener.
Parameters
caption
Button caption
target
Object having the method for listening button clicks
methodName
The name of the method in target object, that receives button click events.
Creates a new push button with a method listening button clicks. The method must have either no parameters, or only one parameter of Button.ClickEvent type.
Parameters
state
Initial state of the switch-button.
Creates new switch button that is connected to a boolean property.
Parameters
listener
Listener to be added.
Add button click listener
Parameters
event
Variable change event.
Invoked when the value of a variable has changed. Button listeners are notified if the button is clicked.
Parameters
event
PaintEvent.
Exceptions
IOException
Passed from the UIDLStream.
PaintException
The paint operation failed.
Paint the content of this component.
Parameters
listener
Listener to be removed.
Remove button click listener
Set immediate mode.