Class OperationsPanel

    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JPanel

        javax.swing.JPanel.AccessibleJPanel
      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • 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.JComponent

        listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • Fields inherited from class java.awt.Component

        accessibleContext, 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
    • Constructor Summary

      Constructors 
      Constructor Description
      OperationsPanel()  
    • Method Summary

      All Methods Static 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, java.awt.Dimension size)
      Will modify the character column width of a TextArea box to 90% of a panels width.
      protected void buttonActionPerformed​(java.awt.event.ActionEvent ae)  
      static void cacheState​(javax.swing.JTable table)  
      protected void checkBoxActionPerformed​(java.awt.event.ActionEvent ae)  
      protected void clearTableSort​(javax.swing.JTable table)  
      protected void comboBoxActionPerformed​(java.awt.event.ActionEvent ae)  
      void dispose()  
      static javax.swing.JPanel getColorChooserPanel​(java.lang.String title, java.awt.Color color, javax.swing.JColorChooser chooser)  
      static javax.swing.JPanel getColorChooserPanel​(java.lang.String text, javax.swing.JColorChooser chooser)  
      protected int getNumberOfCheckboxesPerLine​(java.awt.Dimension size)  
      protected java.lang.String getWindowFrameRef()  
      static void loadFontSizeComboBox​(javax.swing.JComboBox<java.lang.Integer> box)  
      void loadTableDetails​(javax.swing.JTable table)
      Load the table width, position, and sorting status from the user preferences file.
      static void loadTableDetails​(javax.swing.JTable table, java.lang.String name)  
      static void padComboBox​(javax.swing.JComboBox<?> comboBox)
      Increases the width of the ComboBox to the maximum number of characters for a standard attribute.
      static void padComboBox​(javax.swing.JComboBox<?> comboBox, int count)
      Increases the width of the ComboBox so the names don't get truncated when displayed.
      static void persist​(javax.swing.JTable table)  
      protected void radioButtonActionPerformed​(java.awt.event.ActionEvent ae)  
      static void saveTableState()  
      protected void selectNextItemComboBox​(javax.swing.JComboBox<?> b)  
      protected void spinnerChangeEvent​(javax.swing.event.ChangeEvent ae)  
      protected void storeValues()  
      • Methods inherited from class javax.swing.JPanel

        getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • Methods inherited from class javax.swing.JComponent

        addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • padComboBox

        public static void padComboBox​(javax.swing.JComboBox<?> comboBox)
        Increases the width of the ComboBox to the maximum number of characters for a standard attribute. This prevents names from being truncated when displayed.
        Parameters:
        comboBox - the box needing width adjustment
      • padComboBox

        public static void padComboBox​(javax.swing.JComboBox<?> comboBox,
                                       int count)
        Increases the width of the ComboBox so the names don't get truncated when displayed. If there are names in the ComboxBox that exceed the character count, then the wider width is used.
        Parameters:
        comboBox - the box needing width adjustment
        count - the minimum number of characters to display properly
      • 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)
      • 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,
                                                 java.awt.Dimension size)
        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
        size - the preferred 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.
      • loadTableDetails

        public static void loadTableDetails​(javax.swing.JTable table,
                                            java.lang.String name)
      • persist

        public static void persist​(javax.swing.JTable table)
      • cacheState

        public static void cacheState​(javax.swing.JTable table)
      • clearTableSort

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

        public static javax.swing.JPanel getColorChooserPanel​(java.lang.String text,
                                                              javax.swing.JColorChooser chooser)
      • getColorChooserPanel

        public static javax.swing.JPanel getColorChooserPanel​(java.lang.String title,
                                                              java.awt.Color color,
                                                              javax.swing.JColorChooser chooser)
      • loadFontSizeComboBox

        public static void loadFontSizeComboBox​(javax.swing.JComboBox<java.lang.Integer> box)