de.grogra.pf.ui.util
Class ButtonWidget
java.lang.Object
de.grogra.pf.ui.util.WidgetSupport
de.grogra.pf.ui.util.WidgetBase
de.grogra.pf.ui.util.ButtonWidget
- All Implemented Interfaces:
- Command, ComponentWrapper, Widget, Disposable
public class ButtonWidget
- extends WidgetBase
- implements Command
Methods inherited from class de.grogra.pf.ui.util.WidgetSupport |
addPropertyChangeListener, addVetoableChangeListener, convert, dispose, disposeImpl, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, installListener, removePropertyChangeListener, removeVetoableChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ButtonWidget
public ButtonWidget(Command command,
Property property)
checkForChange
public void checkForChange(java.lang.Object value)
- Overrides:
checkForChange
in class WidgetBase
getCommandName
public java.lang.String getCommandName()
- Description copied from interface:
Command
- Returns a name which can be used in the graphical user interface
to represent this command.
- Specified by:
getCommandName
in interface Command
- Returns:
- this commands's name
getComponent
public java.lang.Object getComponent()
- Specified by:
getComponent
in interface ComponentWrapper
getProperty
public Property getProperty()
run
public void run(java.lang.Object info,
Context context)
- Description copied from interface:
Command
- Performs the actions of this command. This method is invoked
by the
JobManager
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.
- Specified by:
run
in interface Command
- Parameters:
info
- an argumentcontext
- a context
setButton
public void setButton(java.lang.Object button)
setComponentValue
protected void setComponentValue(java.lang.Object value)
- Specified by:
setComponentValue
in class WidgetBase
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interface Widget
updateValue
public void updateValue(java.lang.Object value)
- Specified by:
updateValue
in interface Widget