Class 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 javax.swing.JFrame

        javax.swing.JFrame.AccessibleJFrame
      • Nested classes/interfaces inherited from class java.awt.Frame

        java.awt.Frame.AccessibleAWTFrame
      • 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
      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 calls JmriJFrame.handleModified().
      • 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 java.awt.MenuContainer

        getFont, postEvent