de.grogra.pf.ui.util
public class ButtonWidget extends WidgetBase implements Command
conversion, lastValueWIDGET_VALUE_PROPERTY| Constructor and Description |
|---|
ButtonWidget(Command command,
Property property) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForChange(java.lang.Object value) |
java.lang.String |
getCommandName()
Returns a name which can be used in the graphical user interface
to represent this command.
|
java.lang.Object |
getComponent() |
Property |
getProperty() |
void |
run(java.lang.Object info,
Context context)
Performs the actions of this command.
|
void |
setButton(java.lang.Object button) |
protected void |
setComponentValue(java.lang.Object value) |
void |
setEnabled(boolean enabled) |
void |
updateValue(java.lang.Object value) |
setConversionaddPropertyChangeListener, addVetoableChangeListener, convert, dispose, disposeImpl, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, installListener, removePropertyChangeListener, removeVetoableChangeListenerpublic void checkForChange(java.lang.Object value)
checkForChange in class WidgetBasepublic java.lang.String getCommandName()
CommandgetCommandName in interface Commandpublic java.lang.Object getComponent()
getComponent in interface ComponentWrapperpublic Property getProperty()
public void run(java.lang.Object info,
Context context)
CommandJobManager after the command has been submitted
to the job manager by one of execute, runAt,
or runLater-methods. The arguments info
and context are the arguments which have been provided
as arguments to the JobManager-methods.public void setButton(java.lang.Object button)
protected void setComponentValue(java.lang.Object value)
setComponentValue in class WidgetBasepublic void setEnabled(boolean enabled)
setEnabled in interface Widgetpublic void updateValue(java.lang.Object value)
updateValue in interface Widget