Class OperationsFrame

    • 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NEW_LINE  
      static java.lang.String NONE  
      • Fields inherited from class javax.swing.JFrame

        accessibleContext, 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 java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
      • Fields inherited from interface javax.swing.WindowConstants

        DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addButtonAction​(javax.swing.JButton b)  
      protected void addCheckBoxAction​(javax.swing.JCheckBox b)  
      protected void addComboBoxAction​(javax.swing.JComboBox<?> b)  
      protected void addHorizontalScrollBarKludgeFix​(javax.swing.JScrollPane pane, javax.swing.JPanel panel)  
      protected void addItem​(javax.swing.JComponent c, int x, int y)  
      protected void addItem​(javax.swing.JPanel p, javax.swing.JComponent c, int x, int y)  
      protected void addItemLeft​(javax.swing.JPanel p, javax.swing.JComponent c, int x, int y)  
      protected void addItemTop​(javax.swing.JPanel p, javax.swing.JComponent c, int x, int y)  
      protected void addItemWidth​(javax.swing.JPanel p, javax.swing.JComponent c, int width, int x, int y)  
      protected void addRadioButtonAction​(javax.swing.JRadioButton b)  
      protected void addSpinnerChangeListerner​(javax.swing.JSpinner s)  
      protected void adjustTextAreaColumnWidth​(javax.swing.JScrollPane scrollPane, javax.swing.JTextArea textArea)
      Will modify the character column width of a TextArea box to 90% of a panels width.
      protected void adjustTextAreaColumnWidth​(javax.swing.JScrollPane scrollPane, javax.swing.JTextArea textArea, java.awt.Dimension size)  
      protected void buttonActionPerformed​(java.awt.event.ActionEvent ae)  
      protected void checkBoxActionPerformed​(java.awt.event.ActionEvent ae)  
      protected void clearTableSort​(javax.swing.JTable table)  
      protected void comboBoxActionPerformed​(java.awt.event.ActionEvent ae)  
      protected void createShutDownTask()
      Code at frame level to clear modified flag
      void dispose()
      When window is finally destroyed, remove it from the list of windows.
      OperationsPanel getContentPane()
      protected int getNumberOfCheckboxesPerLine()
      Gets the number of checkboxes(+1) that can fix in one row see OperationsFrame.MIN_CHECKBOXES and OperationsFrame.MAX_CHECKBOXES
      void initComponents()
      By default, Swing components should be created an installed in this method, rather than in the ctor itself.
      void initMinimumSize()  
      void initMinimumSize​(java.awt.Dimension dimension)  
      void loadTableDetails​(javax.swing.JTable table)
      Load the table width, position, and sorting status from the user preferences file.
      protected void radioButtonActionPerformed​(java.awt.event.ActionEvent ae)  
      protected void selectNextItemComboBox​(javax.swing.JComboBox<?> b)  
      void setContentPane​(java.awt.Container contentPane)
      protected void spinnerChangeEvent​(javax.swing.event.ChangeEvent ae)  
      protected void storeValues()  
      • Methods inherited from class javax.swing.JFrame

        addImpl, createRootPane, frameInit, getAccessibleContext, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, 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
      • 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
    • Method Detail

      • initComponents

        public void initComponents()
        Description copied from class: JmriJFrame
        By default, Swing components should be created an installed in this method, rather than in the ctor itself.
        Overrides:
        initComponents in class JmriJFrame
      • initMinimumSize

        public void initMinimumSize​(java.awt.Dimension dimension)
      • addItem

        protected void addItem​(javax.swing.JComponent c,
                               int x,
                               int y)
      • addItem

        protected void addItem​(javax.swing.JPanel p,
                               javax.swing.JComponent c,
                               int x,
                               int y)
      • addItemLeft

        protected void addItemLeft​(javax.swing.JPanel p,
                                   javax.swing.JComponent c,
                                   int x,
                                   int y)
      • addItemTop

        protected void addItemTop​(javax.swing.JPanel p,
                                  javax.swing.JComponent c,
                                  int x,
                                  int y)
      • addItemWidth

        protected void addItemWidth​(javax.swing.JPanel p,
                                    javax.swing.JComponent c,
                                    int width,
                                    int x,
                                    int y)
      • getNumberOfCheckboxesPerLine

        protected int getNumberOfCheckboxesPerLine()
        Gets the number of checkboxes(+1) that can fix in one row see OperationsFrame.MIN_CHECKBOXES and OperationsFrame.MAX_CHECKBOXES
        Returns:
        the number of checkboxes, minimum is 5 (6 checkboxes)
      • addButtonAction

        protected void addButtonAction​(javax.swing.JButton b)
      • spinnerChangeEvent

        protected void spinnerChangeEvent​(javax.swing.event.ChangeEvent ae)
      • addComboBoxAction

        protected void addComboBoxAction​(javax.swing.JComboBox<?> b)
      • adjustTextAreaColumnWidth

        protected void adjustTextAreaColumnWidth​(javax.swing.JScrollPane scrollPane,
                                                 javax.swing.JTextArea textArea)
        Will modify the character column width of a TextArea box to 90% of a panels width. ScrollPane is set to 95% of panel width.
        Parameters:
        scrollPane - the pane containing the textArea
        textArea - the textArea to adjust
      • adjustTextAreaColumnWidth

        protected void adjustTextAreaColumnWidth​(javax.swing.JScrollPane scrollPane,
                                                 javax.swing.JTextArea textArea,
                                                 java.awt.Dimension size)
      • loadTableDetails

        public void loadTableDetails​(javax.swing.JTable table)
        Load the table width, position, and sorting status from the user preferences file.
        Parameters:
        table - The table to be adjusted.
      • clearTableSort

        protected void clearTableSort​(javax.swing.JTable table)
      • createShutDownTask

        protected void createShutDownTask()
        Code at frame level to clear modified flag
      • dispose

        public void dispose()
        Description copied from class: JmriJFrame
        When window is finally destroyed, remove it from the list of windows.

        Subclasses that over-ride this method must invoke this implementation with super.dispose() right before returning.

        Specified by:
        dispose in interface WindowInterface
        Overrides:
        dispose in class JmriJFrame
      • setContentPane

        public void setContentPane​(java.awt.Container contentPane)

        This implementation only accepts the content pane if it is an OperationsPanel.

        Specified by:
        setContentPane in interface javax.swing.RootPaneContainer
        Overrides:
        setContentPane in class javax.swing.JFrame
        Throws:
        java.lang.IllegalArgumentException - if the content pane is not an OperationsPanel
      • getContentPane

        public OperationsPanel getContentPane()

        This implementation only returns the content pane if it is an OperationsPanel.

        Specified by:
        getContentPane in interface javax.swing.RootPaneContainer
        Overrides:
        getContentPane in class javax.swing.JFrame
        Throws:
        java.lang.IllegalArgumentException - if the content pane is not an OperationsPanel