Package jmri.jmrix.openlcb.swing.lccpro
Class LccProFrame
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Frame
-
- javax.swing.JFrame
-
- jmri.util.JmriJFrame
-
- jmri.util.swing.multipane.TwoPaneTBWindow
-
- jmri.jmrix.openlcb.swing.lccpro.LccProFrame
-
- All Implemented Interfaces:
java.awt.event.ComponentListener
,java.awt.event.WindowListener
,java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
,javax.swing.RootPaneContainer
,javax.swing.WindowConstants
,BeanInterface
,ModifiedFlag
,WindowInterface
- Direct Known Subclasses:
LccProWindow
public class LccProFrame extends TwoPaneTBWindow
A window for LCC Network management.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.util.JmriJFrame
JmriJFrame.ScreenDimensions
-
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
-
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
-
Nested classes/interfaces inherited from interface jmri.util.swing.WindowInterface
WindowInterface.Hint
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
allowQuit
(package private) javax.swing.JSplitPane
bottomLCPanel
(package private) javax.swing.JPanel
bottomPanel
(package private) javax.swing.JSplitPane
bottomRPanel
(package private) javax.swing.JLabel
firstHelpLabel
(package private) static java.util.ArrayList<LccProFrame>
frameInstances
(package private) int
groupSplitPaneLocation
(package private) boolean
hideGroups
(package private) javax.swing.JTextPane
id
(package private) CanSystemConnectionMemo
memo
protected JmriAbstractAction
newWindowAction
(package private) jmri.jmrix.openlcb.swing.lccpro.LccProFrame.NodeInfoPane
nodeInfoPane
(package private) jmri.jmrix.openlcb.swing.lccpro.LccProFrame.NodePipPane
nodePipPane
(package private) MimicNodeStore
nodestore
(package private) UserPreferencesManager
prefsMgr
(package private) java.util.ResourceBundle
rb
(package private) javax.swing.JSplitPane
rosterGroupSplitPane
(package private) LccProTable
rtable
(package private) javax.swing.JLabel
statusField
(package private) static java.awt.Dimension
summaryPaneDim
-
Fields inherited from class jmri.util.swing.multipane.TwoPaneTBWindow
hideBottomPane
-
Fields inherited from class jmri.util.JmriJFrame
allowInFrameServlet, properties, reuseFrameSavedPosition, reuseFrameSavedSized, windowInterface
-
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
-
-
Constructor Summary
Constructors Constructor Description LccProFrame(java.lang.String name)
LccProFrame(java.lang.String name, java.lang.String menubarFile, java.lang.String toolbarFile)
LccProFrame(java.lang.String name, java.lang.String menubarFile, java.lang.String toolbarFile, CanSystemConnectionMemo memo)
LccProFrame(java.lang.String name, CanSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
additionsToToolBar()
protected void
allowQuit(boolean quitAllowed)
For use when the DP3 window is called from another JMRI instance, set this to prevent the DP3 from shutting down JMRI when the window is closed.(package private) javax.swing.JPanel
bottomRight()
protected void
buildWindow()
(package private) void
closeWindow(java.awt.event.WindowEvent e)
(package private) javax.swing.JComponent
createBottom()
(package private) javax.swing.JComponent
createTop()
protected JmriAbstractAction
getNewWindowAction()
java.lang.Object
getProperty(java.lang.String key)
Get the value of a property.(package private) void
handleQuit(java.awt.event.WindowEvent e)
protected void
helpMenu(javax.swing.JMenuBar menuBar, javax.swing.JFrame frame)
protected void
hideGroups()
void
hideGroupsPane(boolean hide)
protected void
hideSummary()
boolean
isAllowQuit()
protected void
newWindow()
protected void
newWindow(JmriAbstractAction action)
void
remoteCalls(java.lang.String[] args)
Match the first argument in the array against a locally-known method.(package private) void
saveWindowDetails()
void
setAllowQuit(boolean allowQuit)
protected void
setNewWindowAction(JmriAbstractAction newWindowAction)
protected void
showPopup(JmriMouseEvent e)
protected void
statusBar()
Create and display a status bar along the bottom edge of the Roster main pane.protected void
systemsMenu()
(package private) void
updateDetails()
void
windowClosing(java.awt.event.WindowEvent e)
The JmriJFrame implementation callsJmriJFrame.handleModified()
.-
Methods inherited from class jmri.util.swing.multipane.TwoPaneTBWindow
addMainMenuBar, addMainStatusBar, addMainToolBar, addToStatusBox, addToStatusBox, buildGUI, configureFrame, dispose, getBottom, getMenu, getSplitPane, getToolBar, getTop, hideBottomPane, resetTopToPreferredSizes
-
Methods inherited from class jmri.util.JmriJFrame
addHelpMenu, componentHidden, componentMoved, componentResized, componentShown, generateWindowRef, getAllowInFrameServlet, getEscapeKeyAction, getEscapeKeyClosesWindow, getFrame, getFrame, getFrameList, getFrameList, getIndexedProperty, getMaximumSize, getModifiedFlag, getPreferredSize, getPropertyNames, getSavePosition, getSaveSize, getScreenDimensions, getWindowFrameRef, getWindowInterface, handleModified, hasIndexedProperty, hasProperty, initComponents, makePrivateWindow, markWindowModified, multipleInstances, pack, setAllowInFrameServlet, setEscapeKeyAction, setEscapeKeyClosesWindow, setFrameLocation, setIndexedProperty, setModifiedFlag, setProperty, setSavePosition, setSaveSize, setShutDownTask, setWindowInterface, show, show, storeValues, undecorate, windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpened
-
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
-
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, 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, getMinimumSize, getMousePosition, 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, getFont, 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, 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
-
frameInstances
static final java.util.ArrayList<LccProFrame> frameInstances
-
allowQuit
protected boolean allowQuit
-
newWindowAction
protected JmriAbstractAction newWindowAction
-
nodestore
MimicNodeStore nodestore
-
nodeInfoPane
final jmri.jmrix.openlcb.swing.lccpro.LccProFrame.NodeInfoPane nodeInfoPane
-
nodePipPane
final jmri.jmrix.openlcb.swing.lccpro.LccProFrame.NodePipPane nodePipPane
-
firstHelpLabel
javax.swing.JLabel firstHelpLabel
-
groupSplitPaneLocation
int groupSplitPaneLocation
-
hideGroups
boolean hideGroups
-
id
final javax.swing.JTextPane id
-
prefsMgr
UserPreferencesManager prefsMgr
-
rb
final java.util.ResourceBundle rb
-
bottomPanel
final javax.swing.JPanel bottomPanel
-
bottomLCPanel
javax.swing.JSplitPane bottomLCPanel
-
bottomRPanel
javax.swing.JSplitPane bottomRPanel
-
rosterGroupSplitPane
javax.swing.JSplitPane rosterGroupSplitPane
-
rtable
LccProTable rtable
-
statusField
final javax.swing.JLabel statusField
-
summaryPaneDim
static final java.awt.Dimension summaryPaneDim
-
-
Constructor Detail
-
LccProFrame
public LccProFrame(java.lang.String name)
-
LccProFrame
public LccProFrame(java.lang.String name, CanSystemConnectionMemo memo)
-
LccProFrame
public LccProFrame(java.lang.String name, java.lang.String menubarFile, java.lang.String toolbarFile)
-
LccProFrame
public LccProFrame(java.lang.String name, java.lang.String menubarFile, java.lang.String toolbarFile, CanSystemConnectionMemo memo)
-
-
Method Detail
-
additionsToToolBar
protected void additionsToToolBar()
-
allowQuit
protected void allowQuit(boolean quitAllowed)
For use when the DP3 window is called from another JMRI instance, set this to prevent the DP3 from shutting down JMRI when the window is closed.- Parameters:
quitAllowed
- true if closing window should quit application; false otherwise
-
bottomRight
javax.swing.JPanel bottomRight()
-
buildWindow
protected final void buildWindow()
-
closeWindow
void closeWindow(java.awt.event.WindowEvent e)
-
createBottom
javax.swing.JComponent createBottom()
-
createTop
javax.swing.JComponent createTop()
-
isAllowQuit
public boolean isAllowQuit()
- Returns:
- Will closing the window quit JMRI?
-
setAllowQuit
public void setAllowQuit(boolean allowQuit)
- Parameters:
allowQuit
- Set state to either close JMRI or just the roster window
-
getNewWindowAction
protected JmriAbstractAction getNewWindowAction()
- Returns:
- the newWindowAction
-
setNewWindowAction
protected void setNewWindowAction(JmriAbstractAction newWindowAction)
- Parameters:
newWindowAction
- the newWindowAction to set
-
getProperty
public java.lang.Object getProperty(java.lang.String key)
Description copied from class:JmriJFrame
Get the value of a property.NOTE Implementing methods must not call
Bean.getProperty()
, as doing so will cause a stack overflow. Implementing methods may callBeans.getIntrospectedProperty()
instead. Subclasses should override this method with something more direct and faster- Specified by:
getProperty
in interfaceBeanInterface
- Overrides:
getProperty
in classJmriJFrame
- Parameters:
key
- name of the property- Returns:
- The value of the property or null
-
handleQuit
void handleQuit(java.awt.event.WindowEvent e)
-
helpMenu
protected void helpMenu(javax.swing.JMenuBar menuBar, javax.swing.JFrame frame)
-
hideGroups
protected void hideGroups()
-
hideGroupsPane
public void hideGroupsPane(boolean hide)
-
hideSummary
protected void hideSummary()
-
newWindow
protected void newWindow()
-
newWindow
protected void newWindow(JmriAbstractAction action)
-
remoteCalls
public void remoteCalls(java.lang.String[] args)
Match the first argument in the array against a locally-known method.- Specified by:
remoteCalls
in classTwoPaneTBWindow
- Parameters:
args
- Array of arguments, we take with element 0
-
saveWindowDetails
void saveWindowDetails()
-
showPopup
protected void showPopup(JmriMouseEvent e)
-
statusBar
protected void statusBar()
Create and display a status bar along the bottom edge of the Roster main pane.
-
systemsMenu
protected void systemsMenu()
-
updateDetails
void updateDetails()
-
windowClosing
public void windowClosing(java.awt.event.WindowEvent e)
Description copied from class:JmriJFrame
The JmriJFrame implementation callsJmriJFrame.handleModified()
.- Specified by:
windowClosing
in interfacejava.awt.event.WindowListener
- Overrides:
windowClosing
in classJmriJFrame
-
-