Class InactivityReminderDialog

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

public class InactivityReminderDialog extends JDialog
Notification dialog reminding user about detected inactivity.
See Also:
  • Field Details

    • dayView

      private final DayView dayView
      DayView to be perform user's decision about inactive time.
    • btOK

      private JButton btOK
    • chbIgnore

      private JCheckBox chbIgnore
    • cmbOtherTask

      private JComboBox cmbOtherTask
    • lbColumn1

      private JLabel lbColumn1
    • lbColumn2

      private JLabel lbColumn2
    • lblInactivityMessage

      private JLabel lblInactivityMessage
    • lblInactivityQuestion

      private JLabel lblInactivityQuestion
    • lblOtherTaskTime

      private JLabel lblOtherTaskTime
    • rbContinue

      private JRadioButton rbContinue
    • rbNothing

      private JRadioButton rbNothing
    • rbOtherTask

      private JRadioButton rbOtherTask
    • spHours

      private JSpinner spHours
    • spMinutes

      private JSpinner spMinutes
    • spSeconds

      private JSpinner spSeconds
    • currentTask

      private Task currentTask
      Task whose time should be transferred to another task.
    • previousHours

      private Integer previousHours
      Last correct value of hours specified by user.
    • previousMinutes

      private Integer previousMinutes
      Last correct value of minutes specified by user.
    • previousSeconds

      private Integer previousSeconds
      Last correct value of seconds specified by user.
  • Constructor Details

    • InactivityReminderDialog

      public InactivityReminderDialog(DayView dayView)
      Creates new inactivity reminder dialog.
      Parameters:
      dayView - Day view that should be informed about user's decision.
  • Method Details

    • checkAccess

      private void checkAccess()
      Checks whether all controls are enabled as it should be.
    • initComponents

      private void initComponents()
      This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
    • btOKActionPerformed

      private void btOKActionPerformed(ActionEvent evt)
    • spHoursStateChanged

      private void spHoursStateChanged(ChangeEvent evt)
    • spHoursKeyPressed

      private void spHoursKeyPressed(KeyEvent evt)
    • spMinutesStateChanged

      private void spMinutesStateChanged(ChangeEvent evt)
    • spMinutesKeyPressed

      private void spMinutesKeyPressed(KeyEvent evt)
    • spSecondsStateChanged

      private void spSecondsStateChanged(ChangeEvent evt)
    • spSecondsKeyPressed

      private void spSecondsKeyPressed(KeyEvent evt)
    • formMouseEntered

      private void formMouseEntered(MouseEvent evt)
    • rbContinueActionPerformed

      private void rbContinueActionPerformed(ActionEvent evt)
    • rbOtherTaskActionPerformed

      private void rbOtherTaskActionPerformed(ActionEvent evt)
    • rbNothingActionPerformed

      private void rbNothingActionPerformed(ActionEvent evt)
    • formKeyPressed

      private void formKeyPressed(KeyEvent evt)
    • rbOtherTaskKeyPressed

      private void rbOtherTaskKeyPressed(KeyEvent evt)
    • cmbOtherTaskKeyPressed

      private void cmbOtherTaskKeyPressed(KeyEvent evt)
    • rbNothingKeyPressed

      private void rbNothingKeyPressed(KeyEvent evt)
    • chbIgnoreKeyPressed

      private void chbIgnoreKeyPressed(KeyEvent evt)
    • rbContinueKeyPressed

      private void rbContinueKeyPressed(KeyEvent evt)
    • checkDuration

      private void checkDuration()
      Check whether time required for the transfer is not greater than duration of the source task.