public class MoSSPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected static java.awt.Font |
BOLD
the font for input text fields
|
protected static java.awt.GridBagConstraints |
FILL
the grid bag constraints for fillers
|
protected static java.awt.GridBagConstraints |
LEFT
the grid bag constraints for labels
|
protected static java.awt.GridBagConstraints |
MIDDLE
the grid bag constraints for middle input fields
|
protected static java.awt.GridBagConstraints |
RIGHT
the grid bag constraints for right input fields
|
protected static java.awt.Font |
SMALL
the font for help text fields
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier | Constructor and Description |
---|---|
protected |
MoSSPanel()
Create a MoSS tab panel.
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(java.awt.Component comp,
java.awt.GridBagConstraints gbc)
Add a component.
|
protected javax.swing.JButton |
addButton(java.lang.String text)
Add a button to a tab.
|
protected javax.swing.JButton |
addButton(java.lang.String text,
java.awt.GridBagConstraints gbc)
Add a button to a tab.
|
protected javax.swing.JCheckBox |
addCheckBox(boolean state)
Add a check box to a tab.
|
protected javax.swing.JCheckBox |
addCheckBox(boolean state,
java.awt.GridBagConstraints gbc)
Add a check box to a tab.
|
protected javax.swing.JComboBox<java.lang.String> |
addComboBox(java.lang.String[] items)
Add a combo box to a tab.
|
protected javax.swing.JComboBox<java.lang.String> |
addComboBox(java.lang.String[] items,
java.awt.GridBagConstraints gbc)
Add a combo box to a tab.
|
protected javax.swing.JTextField |
addFileInput(java.lang.String text)
Add a file input field to a tab.
|
protected javax.swing.JTextField |
addFileInput(java.lang.String text,
java.awt.GridBagConstraints gbc)
Add a text input field to a tab.
|
protected void |
addFiller(int height)
Add a filler.
|
protected void |
addHelp(java.lang.String text)
Add a help text.
|
protected javax.swing.JLabel |
addLabel(java.lang.String text)
Add a label to a tab.
|
protected javax.swing.JLabel |
addLabel(java.lang.String text,
java.awt.GridBagConstraints gbc)
Add a label to a tab.
|
protected javax.swing.JTextField |
addNumberInput(java.lang.String text)
Add a text input field to a tab.
|
protected javax.swing.JTextField |
addNumberInput(java.lang.String text,
java.awt.GridBagConstraints gbc)
Add a text input field to a tab.
|
protected javax.swing.JSpinner |
addSpinner(int val,
int min,
int max,
int step)
Add a spinner to a tab.
|
protected javax.swing.JSpinner |
addSpinner(int val,
int min,
int max,
int step,
java.awt.GridBagConstraints gbc)
Add a combo box to a tab.
|
protected javax.swing.JTextField |
addTextInput(java.lang.String text)
Add a text input field to a tab.
|
protected javax.swing.JTextField |
addTextInput(java.lang.String text,
java.awt.GridBagConstraints gbc)
Add a text input field to a tab.
|
static javax.swing.JTextField |
createNumberInput(java.lang.String text)
Create a number input field.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, 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
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
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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected static final java.awt.Font BOLD
protected static final java.awt.Font SMALL
protected static final java.awt.GridBagConstraints LEFT
protected static final java.awt.GridBagConstraints MIDDLE
protected static final java.awt.GridBagConstraints RIGHT
protected static final java.awt.GridBagConstraints FILL
protected MoSSPanel()
protected void add(java.awt.Component comp, java.awt.GridBagConstraints gbc)
comp
- the component to addgbc
- the grid bag constraints to useprotected void addHelp(java.lang.String text)
text
- the help textprotected void addFiller(int height)
height
- the height of the fillerprotected javax.swing.JLabel addLabel(java.lang.String text)
text
- the text of the labelJLabel
protected javax.swing.JLabel addLabel(java.lang.String text, java.awt.GridBagConstraints gbc)
text
- the text of the labelgbc
- the grid bag constraints to useJLabel
protected javax.swing.JButton addButton(java.lang.String text)
text
- the text of the buttonJButton
protected javax.swing.JButton addButton(java.lang.String text, java.awt.GridBagConstraints gbc)
text
- the text of the buttongbc
- the grid bag constraints to useJButton
protected javax.swing.JTextField addTextInput(java.lang.String text)
text
- the initial text of the text input fieldJTextField
protected javax.swing.JTextField addTextInput(java.lang.String text, java.awt.GridBagConstraints gbc)
text
- the initial text of the text input fieldgbc
- the grid bag constraints to useJTextField
public static javax.swing.JTextField createNumberInput(java.lang.String text)
text
- the initial text of the input fieldJFormattedTextField
protected javax.swing.JTextField addNumberInput(java.lang.String text)
text
- the initial text of the text input fieldJFormattedTextField
protected javax.swing.JTextField addNumberInput(java.lang.String text, java.awt.GridBagConstraints gbc)
text
- the initial text of the text input fieldgbc
- the grid bag constraints to useJFormattedTextField
protected javax.swing.JTextField addFileInput(java.lang.String text)
text
- the initial text of the file input fieldJTextField
protected javax.swing.JTextField addFileInput(java.lang.String text, java.awt.GridBagConstraints gbc)
text
- the initial text of the file input fieldgbc
- the grid bag constraints to useJTextField
protected javax.swing.JCheckBox addCheckBox(boolean state)
state
- the initial state of the check boxJCheckBox
protected javax.swing.JCheckBox addCheckBox(boolean state, java.awt.GridBagConstraints gbc)
state
- the initial state of the check boxgbc
- the grid bag constraints to useJCheckBox
protected javax.swing.JComboBox<java.lang.String> addComboBox(java.lang.String[] items)
items
- the list of itemsJComboBox
protected javax.swing.JComboBox<java.lang.String> addComboBox(java.lang.String[] items, java.awt.GridBagConstraints gbc)
items
- the list of itemsgbc
- the grid bag constraints to useJComboBox
protected javax.swing.JSpinner addSpinner(int val, int min, int max, int step)
val
- the initial valuemin
- the minimal valuemax
- the maximal valuestep
- the step sizeJSpinner
protected javax.swing.JSpinner addSpinner(int val, int min, int max, int step, java.awt.GridBagConstraints gbc)
val
- the initial valuemin
- the minimal valuemax
- the maximal valuestep
- the step sizegbc
- the grid bag constraints to useJSpinner