Class SettingsDialog

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

    public class SettingsDialog
    extends javax.swing.JDialog
    implements java.beans.PropertyChangeListener
    Dialog with system settings.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JDialog

        javax.swing.JDialog.AccessibleJDialog
      • Nested classes/interfaces inherited from class java.awt.Dialog

        java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
      • Nested classes/interfaces inherited from class java.awt.Window

        java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Constructor Summary

      Constructors 
      Constructor Description
      SettingsDialog​(java.awt.Frame parent)
      Creates new dialog with system settings.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void btAddActionPerformed​(java.awt.event.ActionEvent evt)
      Method called when add button was pressed.
      private void btCancelActionPerformed​(java.awt.event.ActionEvent evt)
      Method called when cancel button was pressed.
      private void btEditActionPerformed​(java.awt.event.ActionEvent evt)
      Method called when edit button was pressed.
      private void btOKActionPerformed​(java.awt.event.ActionEvent evt)
      Method called when ok button was pressed.
      private void btRemoveActionPerformed​(java.awt.event.ActionEvent evt)
      Method called when remove button was pressed.
      private void chbArchiveNotStartedKeyPressed​(java.awt.event.KeyEvent evt)  
      private void chbCheckPriorityKeyPressed​(java.awt.event.KeyEvent evt)  
      private void chbCountPrivateKeyPressed​(java.awt.event.KeyEvent evt)  
      private void chbDetectInactivityActionPerformed​(java.awt.event.ActionEvent evt)  
      private void chbHoursExceededKeyPressed​(java.awt.event.KeyEvent evt)  
      private void chbHoursNotReachedKeyPressed​(java.awt.event.KeyEvent evt)  
      private void chbLogEventsKeyPressed​(java.awt.event.KeyEvent evt)  
      private void chbMoveUnfinishedKeyPressed​(java.awt.event.KeyEvent evt)  
      private void chbPopupGroupByKeywordKeyPressed​(java.awt.event.KeyEvent evt)  
      private void chbReportActivityKeyPressed​(java.awt.event.KeyEvent evt)  
      private void chbUploadDiaryActionPerformed​(java.awt.event.ActionEvent evt)  
      private void chbUploadDiaryKeyPressed​(java.awt.event.KeyEvent evt)  
      private void checkButtons()
      If any regular task is selected in the table enable both edit and remove buttons.
      private void cmbHibernationActionKeyPressed​(java.awt.event.KeyEvent evt)  
      private void cmbInactivityActionKeyPressed​(java.awt.event.KeyEvent evt)  
      private void formMouseEntered​(java.awt.event.MouseEvent evt)  
      private void formWindowClosing​(java.awt.event.WindowEvent evt)
      Method called when this dialog is being closed.
      java.awt.Font getFont()
      Returns font that should be used for all widgets in this component based on the language preferences specified by user.
      private void initComponents()
      This method is called from within the constructor to initialize the form.
      void propertyChange​(java.beans.PropertyChangeEvent evt)
      Method called when some property of task was changed.
      private void spRegularTasksKeyPressed​(java.awt.event.KeyEvent evt)  
      private void tbRegularTasksKeyReleased​(java.awt.event.KeyEvent evt)
      Method called when any key was released while table with regular tasks had focus.
      private void tbRegularTasksMouseClicked​(java.awt.event.MouseEvent evt)
      Method called when user clicked into table with regular tasks.
      private void txtHibernationTimeKeyPressed​(java.awt.event.KeyEvent evt)  
      private void txtHoursKeyPressed​(java.awt.event.KeyEvent evt)  
      private void txtInactivityTimeKeyPressed​(java.awt.event.KeyEvent evt)  
      private void txtProxyHostKeyPressed​(java.awt.event.KeyEvent evt)  
      private void txtProxyPortKeyPressed​(java.awt.event.KeyEvent evt)  
      private void txtUploadURLKeyPressed​(java.awt.event.KeyEvent evt)  
      private void txtUploadUsernameKeyPressed​(java.awt.event.KeyEvent evt)  
      • Methods inherited from class javax.swing.JDialog

        addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
      • Methods inherited from class java.awt.Dialog

        addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
      • Methods inherited from class java.awt.Window

        addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • log

        private static final java.util.logging.Logger log
      • btAdd

        private javax.swing.JButton btAdd
      • btCancel

        private javax.swing.JButton btCancel
      • btEdit

        private javax.swing.JButton btEdit
      • btOK

        private javax.swing.JButton btOK
      • btRemove

        private javax.swing.JButton btRemove
      • chbArchiveNotStarted

        private javax.swing.JCheckBox chbArchiveNotStarted
      • chbCheckPriority

        private javax.swing.JCheckBox chbCheckPriority
      • chbCountPrivate

        private javax.swing.JCheckBox chbCountPrivate
      • chbDetectInactivity

        private javax.swing.JCheckBox chbDetectInactivity
      • chbHoursExceeded

        private javax.swing.JCheckBox chbHoursExceeded
      • chbHoursNotReached

        private javax.swing.JCheckBox chbHoursNotReached
      • chbLogEvents

        private javax.swing.JCheckBox chbLogEvents
      • chbMoveUnfinished

        private javax.swing.JCheckBox chbMoveUnfinished
      • chbPopupGroupByKeyword

        private javax.swing.JCheckBox chbPopupGroupByKeyword
      • chbReportActivity

        private javax.swing.JCheckBox chbReportActivity
      • chbUploadDiary

        private javax.swing.JCheckBox chbUploadDiary
      • cmbHibernationAction

        private javax.swing.JComboBox cmbHibernationAction
      • cmbInactivityAction

        private javax.swing.JComboBox cmbInactivityAction
      • cmbOnExitAction

        private javax.swing.JComboBox cmbOnExitAction
      • lbOnExit

        private javax.swing.JLabel lbOnExit
      • lblHibernationAction

        private javax.swing.JLabel lblHibernationAction
      • lblHibernationTime

        private javax.swing.JLabel lblHibernationTime
      • lblHours

        private javax.swing.JLabel lblHours
      • lblInactivityAction

        private javax.swing.JLabel lblInactivityAction
      • lblInactivityTime

        private javax.swing.JLabel lblInactivityTime
      • lblProxyHost

        private javax.swing.JLabel lblProxyHost
      • lblProxyPort

        private javax.swing.JLabel lblProxyPort
      • lblUploadURL

        private javax.swing.JLabel lblUploadURL
      • lblUploadUsername

        private javax.swing.JLabel lblUploadUsername
      • lblWarn

        private javax.swing.JLabel lblWarn
      • lblWorkingHours

        private javax.swing.JLabel lblWorkingHours
      • pnButtons

        private javax.swing.JPanel pnButtons
      • pnGeneral

        private javax.swing.JPanel pnGeneral
      • pnInteraction

        private javax.swing.JPanel pnInteraction
      • pnNetwork

        private javax.swing.JPanel pnNetwork
      • pnRegularTasks

        private javax.swing.JPanel pnRegularTasks
      • spRegularTasks

        private javax.swing.JScrollPane spRegularTasks
      • tbRegularTasks

        private javax.swing.JTable tbRegularTasks
      • tpPanels

        private javax.swing.JTabbedPane tpPanels
      • txtHibernationTime

        private javax.swing.JFormattedTextField txtHibernationTime
      • txtHours

        private javax.swing.JFormattedTextField txtHours
      • txtInactivityTime

        private javax.swing.JFormattedTextField txtInactivityTime
      • txtProxyHost

        private javax.swing.JTextField txtProxyHost
      • txtProxyPort

        private javax.swing.JFormattedTextField txtProxyPort
      • txtUploadURL

        private javax.swing.JTextField txtUploadURL
      • txtUploadUsername

        private javax.swing.JTextField txtUploadUsername
      • regularTasks

        private java.util.Vector regularTasks
        Vector of currently planned regular tasks.
    • Constructor Detail

      • SettingsDialog

        public SettingsDialog​(java.awt.Frame parent)
        Creates new dialog with system settings.
        Parameters:
        parent - Parent component of this dialog i.e. main window.
    • Method Detail

      • getFont

        public java.awt.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 java.awt.MenuContainer
        Overrides:
        getFont in class java.awt.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​(java.awt.event.KeyEvent evt)
      • chbCountPrivateKeyPressed

        private void chbCountPrivateKeyPressed​(java.awt.event.KeyEvent evt)
      • chbCheckPriorityKeyPressed

        private void chbCheckPriorityKeyPressed​(java.awt.event.KeyEvent evt)
      • chbArchiveNotStartedKeyPressed

        private void chbArchiveNotStartedKeyPressed​(java.awt.event.KeyEvent evt)
      • chbMoveUnfinishedKeyPressed

        private void chbMoveUnfinishedKeyPressed​(java.awt.event.KeyEvent evt)
      • chbHoursExceededKeyPressed

        private void chbHoursExceededKeyPressed​(java.awt.event.KeyEvent evt)
      • chbHoursNotReachedKeyPressed

        private void chbHoursNotReachedKeyPressed​(java.awt.event.KeyEvent evt)
      • tbRegularTasksKeyReleased

        private void tbRegularTasksKeyReleased​(java.awt.event.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​(java.awt.event.ActionEvent evt)
        Method called when remove button was pressed.
        Parameters:
        evt - Event that invoked this method call.
      • btEditActionPerformed

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

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

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

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

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

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

        private void chbReportActivityKeyPressed​(java.awt.event.KeyEvent evt)
      • txtProxyHostKeyPressed

        private void txtProxyHostKeyPressed​(java.awt.event.KeyEvent evt)
      • chbLogEventsKeyPressed

        private void chbLogEventsKeyPressed​(java.awt.event.KeyEvent evt)
      • formMouseEntered

        private void formMouseEntered​(java.awt.event.MouseEvent evt)
      • txtInactivityTimeKeyPressed

        private void txtInactivityTimeKeyPressed​(java.awt.event.KeyEvent evt)
      • chbDetectInactivityActionPerformed

        private void chbDetectInactivityActionPerformed​(java.awt.event.ActionEvent evt)
      • txtHibernationTimeKeyPressed

        private void txtHibernationTimeKeyPressed​(java.awt.event.KeyEvent evt)
      • cmbInactivityActionKeyPressed

        private void cmbInactivityActionKeyPressed​(java.awt.event.KeyEvent evt)
      • cmbHibernationActionKeyPressed

        private void cmbHibernationActionKeyPressed​(java.awt.event.KeyEvent evt)
      • chbPopupGroupByKeywordKeyPressed

        private void chbPopupGroupByKeywordKeyPressed​(java.awt.event.KeyEvent evt)
      • txtHoursKeyPressed

        private void txtHoursKeyPressed​(java.awt.event.KeyEvent evt)
      • txtProxyPortKeyPressed

        private void txtProxyPortKeyPressed​(java.awt.event.KeyEvent evt)
      • chbUploadDiaryActionPerformed

        private void chbUploadDiaryActionPerformed​(java.awt.event.ActionEvent evt)
      • chbUploadDiaryKeyPressed

        private void chbUploadDiaryKeyPressed​(java.awt.event.KeyEvent evt)
      • txtUploadUsernameKeyPressed

        private void txtUploadUsernameKeyPressed​(java.awt.event.KeyEvent evt)
      • txtUploadURLKeyPressed

        private void txtUploadURLKeyPressed​(java.awt.event.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​(java.beans.PropertyChangeEvent evt)
        Method called when some property of task was changed.
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
        Parameters:
        evt - Event describing what was changed.