Class SettingsDialog

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

public class SettingsDialog extends JDialog implements PropertyChangeListener
Dialog with system settings.
See Also:
  • Field Details

    • log

      private static final Logger log
    • btAdd

      private JButton btAdd
    • btCancel

      private JButton btCancel
    • btEdit

      private JButton btEdit
    • btOK

      private JButton btOK
    • btRemove

      private JButton btRemove
    • chbArchiveNotStarted

      private JCheckBox chbArchiveNotStarted
    • chbCheckPriority

      private JCheckBox chbCheckPriority
    • chbCountPrivate

      private JCheckBox chbCountPrivate
    • chbDetectInactivity

      private JCheckBox chbDetectInactivity
    • chbHoursExceeded

      private JCheckBox chbHoursExceeded
    • chbHoursNotReached

      private JCheckBox chbHoursNotReached
    • chbLogEvents

      private JCheckBox chbLogEvents
    • chbMoveUnfinished

      private JCheckBox chbMoveUnfinished
    • chbPopupGroupByKeyword

      private JCheckBox chbPopupGroupByKeyword
    • chbReportActivity

      private JCheckBox chbReportActivity
    • chbUploadDiary

      private JCheckBox chbUploadDiary
    • cmbHibernationAction

      private JComboBox cmbHibernationAction
    • cmbInactivityAction

      private JComboBox cmbInactivityAction
    • cmbOnExitAction

      private JComboBox cmbOnExitAction
    • lbOnExit

      private JLabel lbOnExit
    • lblHibernationAction

      private JLabel lblHibernationAction
    • lblHibernationTime

      private JLabel lblHibernationTime
    • lblHours

      private JLabel lblHours
    • lblInactivityAction

      private JLabel lblInactivityAction
    • lblInactivityTime

      private JLabel lblInactivityTime
    • lblProxyHost

      private JLabel lblProxyHost
    • lblProxyPort

      private JLabel lblProxyPort
    • lblUploadURL

      private JLabel lblUploadURL
    • lblUploadUsername

      private JLabel lblUploadUsername
    • lblWarn

      private JLabel lblWarn
    • lblWorkingHours

      private JLabel lblWorkingHours
    • pnButtons

      private JPanel pnButtons
    • pnGeneral

      private JPanel pnGeneral
    • pnInteraction

      private JPanel pnInteraction
    • pnNetwork

      private JPanel pnNetwork
    • pnRegularTasks

      private JPanel pnRegularTasks
    • spRegularTasks

      private JScrollPane spRegularTasks
    • tbRegularTasks

      private JTable tbRegularTasks
    • tpPanels

      private JTabbedPane tpPanels
    • txtHibernationTime

      private JFormattedTextField txtHibernationTime
    • txtHours

      private JFormattedTextField txtHours
    • txtInactivityTime

      private JFormattedTextField txtInactivityTime
    • txtProxyHost

      private JTextField txtProxyHost
    • txtProxyPort

      private JFormattedTextField txtProxyPort
    • txtUploadURL

      private JTextField txtUploadURL
    • txtUploadUsername

      private JTextField txtUploadUsername
    • regularTasks

      private Vector regularTasks
      Vector of currently planned regular tasks.
  • Constructor Details

    • SettingsDialog

      public SettingsDialog(Frame parent)
      Creates new dialog with system settings.
      Parameters:
      parent - Parent component of this dialog i.e. main window.
  • 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.
    • 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.
    • spRegularTasksKeyPressed

      private void spRegularTasksKeyPressed(KeyEvent evt)
    • chbCountPrivateKeyPressed

      private void chbCountPrivateKeyPressed(KeyEvent evt)
    • chbCheckPriorityKeyPressed

      private void chbCheckPriorityKeyPressed(KeyEvent evt)
    • chbArchiveNotStartedKeyPressed

      private void chbArchiveNotStartedKeyPressed(KeyEvent evt)
    • chbMoveUnfinishedKeyPressed

      private void chbMoveUnfinishedKeyPressed(KeyEvent evt)
    • chbHoursExceededKeyPressed

      private void chbHoursExceededKeyPressed(KeyEvent evt)
    • chbHoursNotReachedKeyPressed

      private void chbHoursNotReachedKeyPressed(KeyEvent evt)
    • tbRegularTasksKeyReleased

      private void tbRegularTasksKeyReleased(KeyEvent evt)
      Method called when any key was released while table with regular tasks had focus.
      Parameters:
      evt - Event that invoked this method call.
    • btRemoveActionPerformed

      private void btRemoveActionPerformed(ActionEvent evt)
      Method called when remove button was pressed.
      Parameters:
      evt - Event that invoked this method call.
    • btEditActionPerformed

      private void btEditActionPerformed(ActionEvent evt)
      Method called when edit button was pressed.
      Parameters:
      evt - Event that invoked this method call.
    • btAddActionPerformed

      private void btAddActionPerformed(ActionEvent evt)
      Method called when add button was pressed.
      Parameters:
      evt - Event that invoked this method call.
    • tbRegularTasksMouseClicked

      private void tbRegularTasksMouseClicked(MouseEvent evt)
      Method called when user clicked into table with regular tasks.
      Parameters:
      evt - Event that invoked this method call.
    • btCancelActionPerformed

      private void btCancelActionPerformed(ActionEvent evt)
      Method called when cancel button was pressed.
      Parameters:
      evt - Event that invoked this method call.
    • btOKActionPerformed

      private void btOKActionPerformed(ActionEvent evt)
      Method called when ok button was pressed.
      Parameters:
      evt - Event that invoked this method call.
    • formWindowClosing

      private void formWindowClosing(WindowEvent evt)
      Method called when this dialog is being closed.
      Parameters:
      evt - Event that invoked this method call.
    • chbReportActivityKeyPressed

      private void chbReportActivityKeyPressed(KeyEvent evt)
    • txtProxyHostKeyPressed

      private void txtProxyHostKeyPressed(KeyEvent evt)
    • chbLogEventsKeyPressed

      private void chbLogEventsKeyPressed(KeyEvent evt)
    • formMouseEntered

      private void formMouseEntered(MouseEvent evt)
    • txtInactivityTimeKeyPressed

      private void txtInactivityTimeKeyPressed(KeyEvent evt)
    • chbDetectInactivityActionPerformed

      private void chbDetectInactivityActionPerformed(ActionEvent evt)
    • txtHibernationTimeKeyPressed

      private void txtHibernationTimeKeyPressed(KeyEvent evt)
    • cmbInactivityActionKeyPressed

      private void cmbInactivityActionKeyPressed(KeyEvent evt)
    • cmbHibernationActionKeyPressed

      private void cmbHibernationActionKeyPressed(KeyEvent evt)
    • chbPopupGroupByKeywordKeyPressed

      private void chbPopupGroupByKeywordKeyPressed(KeyEvent evt)
    • txtHoursKeyPressed

      private void txtHoursKeyPressed(KeyEvent evt)
    • txtProxyPortKeyPressed

      private void txtProxyPortKeyPressed(KeyEvent evt)
    • chbUploadDiaryActionPerformed

      private void chbUploadDiaryActionPerformed(ActionEvent evt)
    • chbUploadDiaryKeyPressed

      private void chbUploadDiaryKeyPressed(KeyEvent evt)
    • txtUploadUsernameKeyPressed

      private void txtUploadUsernameKeyPressed(KeyEvent evt)
    • txtUploadURLKeyPressed

      private void txtUploadURLKeyPressed(KeyEvent evt)
    • checkButtons

      private void checkButtons()
      If any regular task is selected in the table enable both edit and remove buttons.
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Method called when some property of task was changed.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      evt - Event describing what was changed.