Class EmptyTaskEditor<T extends Task>

    • Constructor Detail

      • EmptyTaskEditor

        public EmptyTaskEditor​(T task)
    • Method Detail

      • getComponent

        public JComponent getComponent()
        This component could contain switches for settings - in this case it is just an empty panel (non-opaque), because we don't have any particular settings to deal with.
        Specified by:
        getComponent in interface TaskEditor<T extends Task>
        Returns:
        an empty panel
      • setTask

        public void setTask​(T task)
        Description copied from interface: TaskEditor
        Initializes this editor with the values contained in the passed task.
        Specified by:
        setTask in interface TaskEditor<T extends Task>
        Parameters:
        task - task
      • getTask

        public T getTask​(T task)
        Description copied from interface: TaskEditor
        Initializes the passed task with the values set in this editor.
        Specified by:
        getTask in interface TaskEditor<T extends Task>
        Parameters:
        task - task to adjust
        Returns:
        task that reflects the values set in the editor
      • getTask

        public T getTask()
        Description copied from interface: TaskEditor
        Creates a new task that reflects the values set in the editor.
        Specified by:
        getTask in interface TaskEditor<T extends Task>
        Returns:
        new task with with editor values