Class DefaultTasksPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, TaskListener, TaskStateListener, Startupable
Direct Known Subclasses:
Opt4JTasksPanel

public class DefaultTasksPanel extends TasksPanel implements TaskListener
The DefaultTasksPanel extends the TasksPanel and shows all Tasks in a table.
See Also:
  • Field Details

  • Constructor Details

    • DefaultTasksPanel

      @Inject public DefaultTasksPanel(ExecutionEnvironment executionEnvironment, Format format)
      Constructs a DefaultTasksPanel.
      Parameters:
      executionEnvironment - the execution environment
      format - the format informations
  • Method Details

    • init

      @Inject public void init()
      Registers a listener at the execution environment.
    • startup

      public void startup()
      Description copied from interface: Startupable
      Called on startup of panels.
      Specified by:
      startup in interface Startupable
    • getTable

      protected JTable getTable()
      Returns the instance of the table.
      Returns:
      the table
    • getModel

      protected AbstractTableModel getModel()
      Returns the instance of the model.
      Returns:
      the model
    • added

      public void added(Task task)
      Description copied from interface: TaskListener
      Invoked if a Task is added.
      Specified by:
      added in interface TaskListener
      Parameters:
      task - the added task
    • stateChanged

      public void stateChanged(Task task)
      Description copied from interface: TaskStateListener
      Invoked if a Task changes its state.
      Specified by:
      stateChanged in interface TaskStateListener
      Parameters:
      task - the task that changed its state