Class TaskDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class TaskDialog extends JDialog
Visualizer of task.
See Also:
  • Constructor Details

    • TaskDialog

      public TaskDialog(Task task, Day day, boolean readOnly)
      Creates new dialog for editing of given task.
      Parameters:
      task - Task which is going to be edited.
      day - Day which the task belongs to.
      readOnly - Flag determining if task can be edited or not.
    • TaskDialog

      public TaskDialog(Day day)
      Creates new dialog for creating new task for given day.
      Parameters:
      day - Day which new task should be added to.
    • TaskDialog

      public TaskDialog(RegularTask regularTask)
      Creates new dialog for editing existing regular task.
      Parameters:
      regularTask - Regular task that should be edited.
    • TaskDialog

      public TaskDialog()
      Creates new dialog for creating new regular task.
  • Method Details

    • getFont

      public Font getFont()
      Returns font that should be used for all widgets in this component based on the language preferences specified by user.
      Specified by:
      getFont in interface MenuContainer
      Overrides:
      getFont in class Component
      Returns:
      Font to be used in this component.
    • getTask

      public Task getTask()
      Return task that was edited or created by this dialog.
      Returns:
      Task that was edited or created by this dialog.
    • requestFocus

      public void requestFocus()
      Overrides:
      requestFocus in class Component