Package org.cesilko.rachota.gui
Class SettingsDialog
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Dialog
-
- javax.swing.JDialog
-
- org.cesilko.rachota.gui.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.PropertyChangeListenerDialog 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
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JButtonbtAddprivate javax.swing.JButtonbtCancelprivate javax.swing.JButtonbtEditprivate javax.swing.JButtonbtOKprivate javax.swing.JButtonbtRemoveprivate javax.swing.JCheckBoxchbArchiveNotStartedprivate javax.swing.JCheckBoxchbCheckPriorityprivate javax.swing.JCheckBoxchbCountPrivateprivate javax.swing.JCheckBoxchbDetectInactivityprivate javax.swing.JCheckBoxchbHoursExceededprivate javax.swing.JCheckBoxchbHoursNotReachedprivate javax.swing.JCheckBoxchbLogEventsprivate javax.swing.JCheckBoxchbMoveUnfinishedprivate javax.swing.JCheckBoxchbPopupGroupByKeywordprivate javax.swing.JCheckBoxchbReportActivityprivate javax.swing.JCheckBoxchbUploadDiaryprivate javax.swing.JComboBoxcmbHibernationActionprivate javax.swing.JComboBoxcmbInactivityActionprivate javax.swing.JComboBoxcmbOnExitActionprivate javax.swing.JLabellblHibernationActionprivate javax.swing.JLabellblHibernationTimeprivate javax.swing.JLabellblHoursprivate javax.swing.JLabellblInactivityActionprivate javax.swing.JLabellblInactivityTimeprivate javax.swing.JLabellblProxyHostprivate javax.swing.JLabellblProxyPortprivate javax.swing.JLabellblUploadURLprivate javax.swing.JLabellblUploadUsernameprivate javax.swing.JLabellblWarnprivate javax.swing.JLabellblWorkingHoursprivate javax.swing.JLabellbOnExitprivate static java.util.logging.Loggerlogprivate javax.swing.JPanelpnButtonsprivate javax.swing.JPanelpnGeneralprivate javax.swing.JPanelpnInteractionprivate javax.swing.JPanelpnNetworkprivate javax.swing.JPanelpnRegularTasksprivate java.util.VectorregularTasksVector of currently planned regular tasks.private javax.swing.JScrollPanespRegularTasksprivate javax.swing.JTabletbRegularTasksprivate javax.swing.JTabbedPanetpPanelsprivate javax.swing.JFormattedTextFieldtxtHibernationTimeprivate javax.swing.JFormattedTextFieldtxtHoursprivate javax.swing.JFormattedTextFieldtxtInactivityTimeprivate javax.swing.JTextFieldtxtProxyHostprivate javax.swing.JFormattedTextFieldtxtProxyPortprivate javax.swing.JTextFieldtxtUploadURLprivate javax.swing.JTextFieldtxtUploadUsername-
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
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 voidbtAddActionPerformed(java.awt.event.ActionEvent evt)Method called when add button was pressed.private voidbtCancelActionPerformed(java.awt.event.ActionEvent evt)Method called when cancel button was pressed.private voidbtEditActionPerformed(java.awt.event.ActionEvent evt)Method called when edit button was pressed.private voidbtOKActionPerformed(java.awt.event.ActionEvent evt)Method called when ok button was pressed.private voidbtRemoveActionPerformed(java.awt.event.ActionEvent evt)Method called when remove button was pressed.private voidchbArchiveNotStartedKeyPressed(java.awt.event.KeyEvent evt)private voidchbCheckPriorityKeyPressed(java.awt.event.KeyEvent evt)private voidchbCountPrivateKeyPressed(java.awt.event.KeyEvent evt)private voidchbDetectInactivityActionPerformed(java.awt.event.ActionEvent evt)private voidchbHoursExceededKeyPressed(java.awt.event.KeyEvent evt)private voidchbHoursNotReachedKeyPressed(java.awt.event.KeyEvent evt)private voidchbLogEventsKeyPressed(java.awt.event.KeyEvent evt)private voidchbMoveUnfinishedKeyPressed(java.awt.event.KeyEvent evt)private voidchbPopupGroupByKeywordKeyPressed(java.awt.event.KeyEvent evt)private voidchbReportActivityKeyPressed(java.awt.event.KeyEvent evt)private voidchbUploadDiaryActionPerformed(java.awt.event.ActionEvent evt)private voidchbUploadDiaryKeyPressed(java.awt.event.KeyEvent evt)private voidcheckButtons()If any regular task is selected in the table enable both edit and remove buttons.private voidcmbHibernationActionKeyPressed(java.awt.event.KeyEvent evt)private voidcmbInactivityActionKeyPressed(java.awt.event.KeyEvent evt)private voidformMouseEntered(java.awt.event.MouseEvent evt)private voidformWindowClosing(java.awt.event.WindowEvent evt)Method called when this dialog is being closed.java.awt.FontgetFont()Returns font that should be used for all widgets in this component based on the language preferences specified by user.private voidinitComponents()This method is called from within the constructor to initialize the form.voidpropertyChange(java.beans.PropertyChangeEvent evt)Method called when some property of task was changed.private voidspRegularTasksKeyPressed(java.awt.event.KeyEvent evt)private voidtbRegularTasksKeyReleased(java.awt.event.KeyEvent evt)Method called when any key was released while table with regular tasks had focus.private voidtbRegularTasksMouseClicked(java.awt.event.MouseEvent evt)Method called when user clicked into table with regular tasks.private voidtxtHibernationTimeKeyPressed(java.awt.event.KeyEvent evt)private voidtxtHoursKeyPressed(java.awt.event.KeyEvent evt)private voidtxtInactivityTimeKeyPressed(java.awt.event.KeyEvent evt)private voidtxtProxyHostKeyPressed(java.awt.event.KeyEvent evt)private voidtxtProxyPortKeyPressed(java.awt.event.KeyEvent evt)private voidtxtUploadURLKeyPressed(java.awt.event.KeyEvent evt)private voidtxtUploadUsernameKeyPressed(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
-
-
-
-
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.
-
-
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:
getFontin interfacejava.awt.MenuContainer- Overrides:
getFontin classjava.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:
propertyChangein interfacejava.beans.PropertyChangeListener- Parameters:
evt- Event describing what was changed.
-
-