Module platform

Class WidgetAdapter

java.lang.Object
de.grogra.pf.ui.util.WidgetSupport
de.grogra.pf.ui.util.WidgetAdapter
All Implemented Interfaces:
Command, ComponentWrapper, Widget, Disposable, PropertyChangeListener, EventListener

public final class WidgetAdapter extends WidgetSupport implements PropertyChangeListener, Command
  • Constructor Details

    • WidgetAdapter

      public WidgetAdapter(Widget widget, Context context)
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface Widget
    • updateValue

      public void updateValue(Object value)
      Specified by:
      updateValue in interface Widget
    • getCurrentValue

      public Object getCurrentValue()
    • installListener

      protected void installListener(boolean hasListeners)
      Overrides:
      installListener in class WidgetSupport
    • getComponent

      public Object getComponent()
      Specified by:
      getComponent in interface ComponentWrapper
    • propertyChange

      public void propertyChange(PropertyChangeEvent event)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • getCommandName

      public 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
    • run

      public void run(Object info, Context ctx)
      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 argument
      ctx - a context