|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jmri.util.JmriJFrame
jmri.jmrit.simpleclock.SimpleClockFrame
public class SimpleClockFrame
Frame for user configuration of Simple Timebase The current implementation (2007) handles the internal clock and one hardware clock
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Nested classes/interfaces inherited from interface jmri.util.swing.WindowInterface |
|---|
WindowInterface.Hint |
| Field Summary | |
|---|---|
protected JComboBox |
clockStartBox
|
protected JLabel |
clockStatus
|
protected JCheckBox |
correctCheckBox
|
protected JCheckBox |
displayCheckBox
|
protected JTextField |
factorField
|
protected JTextField |
hoursField
|
(package private) static org.slf4j.Logger |
log
|
protected JTextField |
minutesField
|
protected JButton |
setRateButton
|
protected JButton |
setStartTimeButton
|
protected JButton |
setTimeButton
|
protected JCheckBox |
showStartupCheckBox
|
protected boolean |
showTime
|
protected JButton |
startButton
|
protected JTextField |
startHoursField
|
protected JTextField |
startMinutesField
|
protected JCheckBox |
startSetTimeCheckBox
|
protected JCheckBox |
startStoppedCheckBox
|
protected JButton |
stopButton
|
protected JCheckBox |
synchronizeCheckBox
|
(package private) DecimalFormat |
threeDigits
|
protected JLabel |
timeLabel
|
protected JComboBox |
timeSourceBox
|
| Fields inherited from class jmri.util.JmriJFrame |
|---|
allowInFrameServlet, properties, reuseFrameSavedPosition, reuseFrameSavedSized, windowInterface |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SimpleClockFrame()
Constructor method |
|
| Method Summary | |
|---|---|
void |
initComponents()
Initialize the config window |
void |
propertyChange(PropertyChangeEvent e)
Handle a change to clock properties |
void |
setRateButtonActionPerformed()
Method to handle Set Rate button |
void |
setTimeButtonActionPerformed()
Method to handle Set Time button |
(package private) void |
setTimeLabel()
Method to set the current Timebase time into timeLabel |
void |
startButtonActionPerformed()
Method to handle Start Clock button |
void |
stopButtonActionPerformed()
Method to handle Stop Clock button |
(package private) void |
updateRate()
Method to adjust to rate changes |
(package private) void |
updateRunningButton()
Method to adjust to running state changes |
(package private) void |
updateTime()
Method to update clock state information |
void |
windowClosing(WindowEvent e)
Method to handle window closing event |
| Methods inherited from class java.awt.Frame |
|---|
getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
protected boolean showTime
DecimalFormat threeDigits
protected JComboBox timeSourceBox
protected JComboBox clockStartBox
protected JCheckBox synchronizeCheckBox
protected JCheckBox correctCheckBox
protected JCheckBox displayCheckBox
protected JCheckBox showStartupCheckBox
protected JCheckBox startStoppedCheckBox
protected JCheckBox startSetTimeCheckBox
protected JTextField factorField
protected JTextField hoursField
protected JTextField minutesField
protected JTextField startHoursField
protected JTextField startMinutesField
protected JButton setRateButton
protected JButton setTimeButton
protected JButton startButton
protected JButton stopButton
protected JButton setStartTimeButton
protected JLabel clockStatus
protected JLabel timeLabel
static org.slf4j.Logger log
| Constructor Detail |
|---|
public SimpleClockFrame()
| Method Detail |
|---|
public void initComponents()
throws Exception
initComponents in class JmriJFrameExceptionvoid updateRate()
void updateRunningButton()
public void setRateButtonActionPerformed()
public void setTimeButtonActionPerformed()
public void startButtonActionPerformed()
public void stopButtonActionPerformed()
void updateTime()
void setTimeLabel()
public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerwindowClosing in class JmriJFrame
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||