Module platform

Class ButtonWidget

All Implemented Interfaces:
Command, ComponentWrapper, Widget, Disposable

public class ButtonWidget extends WidgetBase implements Command
  • Constructor Details

  • Method Details

    • getProperty

      public Property getProperty()
    • checkForChange

      public void checkForChange(Object value)
      Overrides:
      checkForChange in class WidgetBase
    • setButton

      public void setButton(Object button)
    • setComponentValue

      protected void setComponentValue(Object value)
      Specified by:
      setComponentValue in class WidgetBase
    • setEnabled

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

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

      public Object getComponent()
      Specified by:
      getComponent in interface ComponentWrapper
    • 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 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 argument
      context - a context