Class RosterFrame
- 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.jmrit.roster.swing.RosterFrame
-
- 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
,RosterEntrySelector
,RosterGroupSelector
,ModifiedFlag
,WindowInterface
- Direct Known Subclasses:
DecoderPro3Window
public class RosterFrame extends TwoPaneTBWindow implements RosterEntrySelector, RosterGroupSelector
A window for Roster management.TODO: Several methods are copied from PaneProgFrame and should be refactored No programmer support yet (dummy object below). Color only covering borders. No reset toolbar support yet. No glass pane support (See DecoderPro3Panes class and usage below). Special panes (Roster entry, attributes, graphics) not included. How do you pick a programmer file? (hardcoded) Initialization needs partial deferral, too for 1st pane to appear.
- See Also:
PaneSet
, 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
protected java.lang.String
baseTitle
(package private) javax.swing.JRadioButtonMenuItem
contextEdit
(package private) javax.swing.JRadioButtonMenuItem
contextOps
(package private) javax.swing.JRadioButtonMenuItem
contextService
(package private) javax.swing.JTextPane
dateUpdated
(package private) javax.swing.JTextPane
dccAddress
(package private) javax.swing.JTextPane
decoderFamily
(package private) javax.swing.JTextPane
decoderModel
(package private) javax.swing.JRadioButton
edit
(package private) javax.swing.JTextPane
filename
(package private) javax.swing.JLabel
firstHelpLabel
(package private) static java.util.ArrayList<RosterFrame>
frameInstances
(package private) RosterGroupsPanel
groups
(package private) int
groupSplitPaneLocation
(package private) boolean
hideGroups
(package private) boolean
hideRosterImage
(package private) javax.swing.JTextPane
id
(package private) boolean
inStartProgrammer
(package private) ResizableImagePanel
locoImage
(package private) javax.swing.JTextPane
maxSpeed
(package private) javax.swing.JTextPane
mfg
(package private) javax.swing.JTextPane
model
(package private) ProgModeSelector
modePanel
protected JmriAbstractAction
newWindowAction
(package private) javax.swing.JLabel
operationsModeProgrammerLabel
(package private) javax.swing.JRadioButton
ops
(package private) ConnectionConfig
opsModeProCon
(package private) javax.swing.JTextPane
owner
(package private) UserPreferencesManager
prefsMgr
(package private) javax.swing.JButton
prog1Button
(package private) javax.swing.JButton
prog2Button
(package private) java.lang.String
programmer1
(package private) java.lang.String
programmer2
(package private) java.awt.event.ActionListener
programModeListener
(package private) java.util.ResourceBundle
rb
(package private) RosterEntry
re
(package private) javax.swing.JTextPane
roadName
(package private) javax.swing.JTextPane
roadNumber
(package private) javax.swing.JPanel
rosterDetailPanel
(package private) java.beans.PropertyChangeListener
rosterEntryUpdateListener
(package private) javax.swing.JSplitPane
rosterGroupSplitPane
(package private) javax.swing.JButton
rosterMedia
(package private) RosterTable
rtable
(package private) ConnectionConfig
serModeProCon
(package private) javax.swing.JRadioButton
service
(package private) javax.swing.JLabel
serviceModeProgrammerLabel
(package private) javax.swing.JLabel
statusField
(package private) java.awt.Dimension
summaryPaneDim
(package private) javax.swing.JButton
throttleLabels
(package private) javax.swing.JButton
throttleLaunch
-
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
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Fields inherited from interface jmri.jmrit.roster.RosterEntrySelector
SELECTED_ROSTER_ENTRIES
-
Fields inherited from interface jmri.jmrit.roster.rostergroup.RosterGroupSelector
SELECTED_ROSTER_GROUP
-
-
Constructor Summary
Constructors Constructor Description RosterFrame()
RosterFrame(java.lang.String name)
RosterFrame(java.lang.String name, java.lang.String menubarFile, java.lang.String toolbarFile)
-
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) boolean
checkIfEntrySelected()
(package private) boolean
checkIfEntrySelected(boolean allowMultiple)
(package private) void
closeWindow(java.awt.event.WindowEvent e)
protected void
copyLoco()
(package private) javax.swing.JComponent
createBottom()
(package private) javax.swing.JComponent
createTop()
protected void
deleteLoco()
(package private) void
editMediaButton()
protected void
enableRosterGroupMenuItems(boolean enable)
protected void
exportLoco()
(package private) void
formatTextAreaAsLabel(javax.swing.JTextPane pane)
RosterEntry[]
getAllRosterEntries()
protected java.lang.String
getBaseTitle()
protected JmriAbstractAction
getNewWindowAction()
protected ProgrammerConfigManager
getProgrammerConfigManager()
java.lang.Object
getProperty(java.lang.String key)
Get the value of a property.java.lang.Object
getRemoteObject(java.lang.String value)
RosterEntry[]
getSelectedRosterEntries()
Get the currently selected roster entries.java.lang.String
getSelectedRosterGroup()
(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
hideRosterImage()
protected void
hideSummary()
boolean
isAllowQuit()
(package private) void
locoSelected(java.lang.String id)
An entry has been selected in the Roster Table, activate the bottom part of the window.protected void
newWindow()
protected void
newWindow(JmriAbstractAction action)
protected void
printLoco(boolean preview)
Prepare a roster entry to be printed, and display a selection list.void
remoteCalls(java.lang.String[] args)
Match the first argument in the array against a locally-known method.(package private) javax.swing.JPanel
rosterDetails()
(package private) void
saveWindowDetails()
protected void
selectLoco(int dccAddress, boolean isLong, int mfgId, int modelId)
Identify locomotive complete, act on it by setting the GUI.void
setAllowQuit(boolean allowQuit)
protected void
setBaseTitle(java.lang.String baseTitle)
protected void
setNewWindowAction(JmriAbstractAction newWindowAction)
void
setProgrammerLaunch(int buttonId, java.lang.String programmer, java.lang.String buttonText)
Simple method to change over the programmer buttons.void
setSelectedRosterGroup(java.lang.String rosterGroup)
void
setTitle(java.lang.String title)
protected void
showPopup(JmriMouseEvent e)
protected void
startIdentifyLoco()
Start the identify operation after [Identify Loco] button pressed.protected void
startProgrammer(DecoderFile decoderFile, RosterEntry re, java.lang.String filename)
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()
(package private) void
updateProgMode()
protected void
updateProgrammerStatus(java.beans.PropertyChangeEvent evt)
Handle setting up and updating the GUI for the types of programmer available.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, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.jmrit.roster.RosterEntrySelector
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from interface jmri.jmrit.roster.rostergroup.RosterGroupSelector
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Field Detail
-
frameInstances
static final java.util.ArrayList<RosterFrame> frameInstances
-
allowQuit
protected boolean allowQuit
-
baseTitle
protected java.lang.String baseTitle
-
newWindowAction
protected JmriAbstractAction newWindowAction
-
contextEdit
final javax.swing.JRadioButtonMenuItem contextEdit
-
contextOps
final javax.swing.JRadioButtonMenuItem contextOps
-
contextService
final javax.swing.JRadioButtonMenuItem contextService
-
dateUpdated
final javax.swing.JTextPane dateUpdated
-
dccAddress
final javax.swing.JTextPane dccAddress
-
decoderFamily
final javax.swing.JTextPane decoderFamily
-
decoderModel
final javax.swing.JTextPane decoderModel
-
edit
final javax.swing.JRadioButton edit
-
filename
final javax.swing.JTextPane filename
-
firstHelpLabel
javax.swing.JLabel firstHelpLabel
-
groupSplitPaneLocation
int groupSplitPaneLocation
-
groups
RosterGroupsPanel groups
-
hideGroups
boolean hideGroups
-
hideRosterImage
boolean hideRosterImage
-
id
final javax.swing.JTextPane id
-
inStartProgrammer
boolean inStartProgrammer
-
locoImage
ResizableImagePanel locoImage
-
maxSpeed
javax.swing.JTextPane maxSpeed
-
mfg
final javax.swing.JTextPane mfg
-
modePanel
final ProgModeSelector modePanel
-
model
final javax.swing.JTextPane model
-
operationsModeProgrammerLabel
final javax.swing.JLabel operationsModeProgrammerLabel
-
ops
final javax.swing.JRadioButton ops
-
opsModeProCon
ConnectionConfig opsModeProCon
-
owner
final javax.swing.JTextPane owner
-
prefsMgr
UserPreferencesManager prefsMgr
-
prog1Button
final javax.swing.JButton prog1Button
-
prog2Button
final javax.swing.JButton prog2Button
-
programModeListener
java.awt.event.ActionListener programModeListener
-
programmer1
java.lang.String programmer1
-
programmer2
java.lang.String programmer2
-
rb
final java.util.ResourceBundle rb
-
re
transient RosterEntry re
-
roadName
final javax.swing.JTextPane roadName
-
roadNumber
final javax.swing.JTextPane roadNumber
-
rosterDetailPanel
final javax.swing.JPanel rosterDetailPanel
-
rosterEntryUpdateListener
java.beans.PropertyChangeListener rosterEntryUpdateListener
-
rosterGroupSplitPane
javax.swing.JSplitPane rosterGroupSplitPane
-
rosterMedia
final javax.swing.JButton rosterMedia
-
rtable
RosterTable rtable
-
serModeProCon
ConnectionConfig serModeProCon
-
service
final javax.swing.JRadioButton service
-
serviceModeProgrammerLabel
final javax.swing.JLabel serviceModeProgrammerLabel
-
statusField
final javax.swing.JLabel statusField
-
summaryPaneDim
final java.awt.Dimension summaryPaneDim
-
throttleLabels
final javax.swing.JButton throttleLabels
-
throttleLaunch
final javax.swing.JButton throttleLaunch
-
-
Constructor Detail
-
RosterFrame
public RosterFrame()
-
RosterFrame
public RosterFrame(java.lang.String name)
-
RosterFrame
public RosterFrame(java.lang.String name, java.lang.String menubarFile, java.lang.String toolbarFile)
-
-
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()
-
checkIfEntrySelected
boolean checkIfEntrySelected()
-
checkIfEntrySelected
boolean checkIfEntrySelected(boolean allowMultiple)
-
closeWindow
void closeWindow(java.awt.event.WindowEvent e)
-
copyLoco
protected void copyLoco()
-
createBottom
javax.swing.JComponent createBottom()
-
createTop
javax.swing.JComponent createTop()
-
deleteLoco
protected void deleteLoco()
-
editMediaButton
void editMediaButton()
-
enableRosterGroupMenuItems
protected void enableRosterGroupMenuItems(boolean enable)
-
exportLoco
protected void exportLoco()
-
formatTextAreaAsLabel
void formatTextAreaAsLabel(javax.swing.JTextPane pane)
-
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
-
getBaseTitle
protected java.lang.String getBaseTitle()
- Returns:
- the baseTitle
-
setBaseTitle
protected final void setBaseTitle(java.lang.String baseTitle)
- Parameters:
baseTitle
- the baseTitle to set
-
getNewWindowAction
protected JmriAbstractAction getNewWindowAction()
- Returns:
- the newWindowAction
-
setNewWindowAction
protected void setNewWindowAction(JmriAbstractAction newWindowAction)
- Parameters:
newWindowAction
- the newWindowAction to set
-
setTitle
public void setTitle(java.lang.String title)
- Overrides:
setTitle
in classjava.awt.Frame
-
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
-
getRemoteObject
public java.lang.Object getRemoteObject(java.lang.String value)
-
getSelectedRosterEntries
public RosterEntry[] getSelectedRosterEntries()
Description copied from interface:RosterEntrySelector
Get the currently selected roster entries. Since the selection could contain multiple roster entries, this returns an array of RosterEntry instead of a single RosterEntry.- Specified by:
getSelectedRosterEntries
in interfaceRosterEntrySelector
- Returns:
- an array of RosterEntries
-
getAllRosterEntries
public RosterEntry[] getAllRosterEntries()
-
getSelectedRosterGroup
public java.lang.String getSelectedRosterGroup()
- Specified by:
getSelectedRosterGroup
in interfaceRosterGroupSelector
-
getProgrammerConfigManager
protected ProgrammerConfigManager getProgrammerConfigManager()
-
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)
-
hideRosterImage
protected void hideRosterImage()
-
hideSummary
protected void hideSummary()
-
locoSelected
final void locoSelected(java.lang.String id)
An entry has been selected in the Roster Table, activate the bottom part of the window.- Parameters:
id
- ID of the selected roster entry
-
newWindow
protected void newWindow()
-
newWindow
protected void newWindow(JmriAbstractAction action)
-
printLoco
protected void printLoco(boolean preview)
Prepare a roster entry to be printed, and display a selection list.- Parameters:
preview
- true if output should go to a Preview pane on screen, false to output to a printer (dialog)- See Also:
PrintRosterEntry.printPanes(boolean)
-
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
-
rosterDetails
javax.swing.JPanel rosterDetails()
-
saveWindowDetails
void saveWindowDetails()
-
selectLoco
protected void selectLoco(int dccAddress, boolean isLong, int mfgId, int modelId)
Identify locomotive complete, act on it by setting the GUI. This will fire "GUI changed" events which will reset the decoder GUI.- Parameters:
dccAddress
- address of locomotiveisLong
- true if address is long; false if shortmfgId
- manufacturer id as in decodermodelId
- model id as in decoder
-
setProgrammerLaunch
public void setProgrammerLaunch(int buttonId, java.lang.String programmer, java.lang.String buttonText)
Simple method to change over the programmer buttons.TODO This should be implemented with the buttons in their own class etc. but this will work for now.
- Parameters:
buttonId
- 1 or 2; use 1 for basic programmer; 2 for comprehensive programmerprogrammer
- name of programmerbuttonText
- button title
-
setSelectedRosterGroup
public void setSelectedRosterGroup(java.lang.String rosterGroup)
-
showPopup
protected void showPopup(JmriMouseEvent e)
-
startIdentifyLoco
protected void startIdentifyLoco()
Start the identify operation after [Identify Loco] button pressed.This defines what happens when Identify is done.
-
startProgrammer
protected void startProgrammer(DecoderFile decoderFile, RosterEntry re, java.lang.String filename)
-
statusBar
protected void statusBar()
Create and display a status bar along the bottom edge of the Roster main pane.TODO This status bar needs sorting out properly
-
systemsMenu
protected void systemsMenu()
-
updateDetails
void updateDetails()
-
updateProgMode
void updateProgMode()
-
updateProgrammerStatus
protected void updateProgrammerStatus(@CheckForNull java.beans.PropertyChangeEvent evt)
Handle setting up and updating the GUI for the types of programmer available.- Parameters:
evt
- the triggering event; if not null and if a removal of a ProgrammerManager, care will be taken not to trigger the automatic creation of a new ProgrammerManager
-
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
-
-