de.grogra.pf.ui.util
public final class WidgetAdapter extends WidgetSupport implements java.beans.PropertyChangeListener, Command
WIDGET_VALUE_PROPERTY| Constructor and Description |
|---|
WidgetAdapter(Widget widget,
Context context) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommandName()
Returns a name which can be used in the graphical user interface
to represent this command.
|
java.lang.Object |
getComponent() |
protected void |
installListener(boolean hasListeners) |
void |
propertyChange(java.beans.PropertyChangeEvent event) |
void |
run(java.lang.Object info,
Context ctx)
Performs the actions of this command.
|
void |
setEnabled(boolean enabled) |
void |
updateValue(java.lang.Object value) |
addPropertyChangeListener, addVetoableChangeListener, convert, dispose, disposeImpl, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, removePropertyChangeListener, removeVetoableChangeListenerpublic java.lang.String getCommandName()
CommandgetCommandName in interface Commandpublic java.lang.Object getComponent()
getComponent in interface ComponentWrapperprotected void installListener(boolean hasListeners)
installListener in class WidgetSupportpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerpublic void run(java.lang.Object info,
Context ctx)
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 setEnabled(boolean enabled)
setEnabled in interface Widgetpublic void updateValue(java.lang.Object value)
updateValue in interface Widget