public class ButtonPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
private javax.swing.JButton |
aboutButton
The about button.
|
private javax.swing.JButton |
addButton
The add button.
|
private javax.swing.JButton |
clearButton
The clear button.
|
private javax.swing.JButton |
loadButton
The load button.
|
private javax.swing.JTextField |
maximumAgeField
The maximum age field.
|
private javax.swing.JLabel |
maximumAgeLabel
The maximum age label.
|
private javax.swing.JTextField |
nameField
The name field.
|
private javax.swing.JLabel |
nameLabel
The name label.
|
private javax.swing.JComboBox<java.lang.String> |
oceanObjectTypes
The ocean object types, as String.
|
private javax.swing.JButton |
printButton
The print button.
|
private javax.swing.JButton |
remButton
The rem button.
|
private javax.swing.JButton |
saveButton
The save button.
|
private static long |
serialVersionUID
The Constant serialVersionUID.
|
private javax.swing.JButton |
startStopButton
The start stop button.
|
private javax.swing.JButton |
stepButton
The step button.
|
private javax.swing.JLabel |
xLabel
The x label.
|
private javax.swing.JTextField |
xValueField
The x value field.
|
private javax.swing.JLabel |
yLabel
The y label.
|
private javax.swing.JTextField |
yValueField
The y value field.
|
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 |
ButtonPanel()
Instantiates a new button panel.
|
Modifier and Type | Method and Description |
---|---|
private void |
addComponentsToButtonPanel()
Adds the components to button panel.
|
void |
addListeners(java.awt.event.ActionListener aL)
Adds the listeners.
|
private javax.swing.JButton |
getAboutButton()
Gets the about button.
|
javax.swing.JButton |
getAddButton()
Gets the adds the button.
|
private javax.swing.JButton |
getClearButton()
Gets the clear button.
|
private javax.swing.JButton |
getLoadButton()
Gets the load button.
|
javax.swing.JTextField |
getMaximumAgeField()
Gets the maximum age field.
|
javax.swing.JLabel |
getMaximumAgeLabel()
Gets the maximum age label.
|
javax.swing.JTextField |
getNameField()
Gets the name field.
|
java.lang.String |
getNameForNewObject()
Gets the name for new object.
|
protected javax.swing.JLabel |
getNameLabel()
Gets the name label.
|
java.lang.String |
getOceanObjectTypesString()
Gets the ocean object types string.
|
private javax.swing.JButton |
getPrintButton()
Gets the prints the button.
|
private javax.swing.JButton |
getRemButton()
Gets the rem button.
|
private javax.swing.JButton |
getSaveButton()
Gets the save button.
|
javax.swing.JButton |
getStartStopButton()
Gets the start stop button.
|
javax.swing.JButton |
getStepButton()
Gets the step button.
|
private javax.swing.JLabel |
getxLabel()
Gets the x label.
|
javax.swing.JTextField |
getXValueField()
Gets the x value field.
|
private javax.swing.JLabel |
getyLabel()
Gets the y label.
|
javax.swing.JTextField |
getYValueField()
Gets the y value field.
|
protected void |
setAboutButton(javax.swing.JButton aboutButton)
Sets the about button.
|
protected void |
setClearButton(javax.swing.JButton clearButton)
Sets the clear button.
|
void |
setMaximumAgeField(javax.swing.JTextField maximumAgeField)
Sets the maximum age field.
|
void |
setMaximumAgeLabel(javax.swing.JLabel maximumAgeLabel)
Sets the maximum age label.
|
void |
setNameField(javax.swing.JTextField nameField)
Sets the name field.
|
void |
setNameLabel(javax.swing.JLabel nameLabel)
Sets the name label.
|
protected void |
setPrintButton(javax.swing.JButton printButton)
Sets the prints the button.
|
protected void |
setStepButton(javax.swing.JButton stepButton)
Sets the step button.
|
private void |
setToolTips()
Sets the tool tips.
|
protected void |
setxLabel(javax.swing.JLabel xLabel)
Sets the x label.
|
protected void |
setxValueField(javax.swing.JTextField xValueField)
Sets the x value field.
|
protected void |
setyLabel(javax.swing.JLabel yLabel)
Sets the y label.
|
protected void |
setyValueField(javax.swing.JTextField yValueField)
Sets the y value 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, 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
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, 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
private static final long serialVersionUID
private javax.swing.JButton aboutButton
private final javax.swing.JButton addButton
private javax.swing.JButton clearButton
private final javax.swing.JButton loadButton
private javax.swing.JTextField maximumAgeField
private javax.swing.JLabel maximumAgeLabel
private javax.swing.JTextField nameField
private javax.swing.JLabel nameLabel
private final javax.swing.JComboBox<java.lang.String> oceanObjectTypes
private javax.swing.JButton printButton
private final javax.swing.JButton remButton
private final javax.swing.JButton saveButton
private final javax.swing.JButton startStopButton
private javax.swing.JButton stepButton
private javax.swing.JLabel xLabel
private javax.swing.JTextField xValueField
private javax.swing.JLabel yLabel
private javax.swing.JTextField yValueField
private void addComponentsToButtonPanel()
public void addListeners(java.awt.event.ActionListener aL)
aL
- the ActionListener that listens to all the buttonsprivate javax.swing.JButton getAboutButton()
public javax.swing.JButton getAddButton()
private javax.swing.JButton getClearButton()
private javax.swing.JButton getLoadButton()
public javax.swing.JTextField getMaximumAgeField()
public javax.swing.JLabel getMaximumAgeLabel()
public javax.swing.JTextField getNameField()
public java.lang.String getNameForNewObject()
protected javax.swing.JLabel getNameLabel()
public java.lang.String getOceanObjectTypesString()
private javax.swing.JButton getPrintButton()
private javax.swing.JButton getRemButton()
private javax.swing.JButton getSaveButton()
public javax.swing.JButton getStartStopButton()
public javax.swing.JButton getStepButton()
private javax.swing.JLabel getxLabel()
public javax.swing.JTextField getXValueField()
private javax.swing.JLabel getyLabel()
public javax.swing.JTextField getYValueField()
protected void setAboutButton(javax.swing.JButton aboutButton)
aboutButton
- the aboutButton to setprotected void setClearButton(javax.swing.JButton clearButton)
clearButton
- the clearButton to setpublic void setMaximumAgeField(javax.swing.JTextField maximumAgeField)
maximumAgeField
- the maximumAgeField to setpublic void setMaximumAgeLabel(javax.swing.JLabel maximumAgeLabel)
maximumAgeLabel
- the maximumAgeLabel to setpublic void setNameField(javax.swing.JTextField nameField)
nameField
- the new name fieldpublic void setNameLabel(javax.swing.JLabel nameLabel)
nameLabel
- the nameLabel to setprotected void setPrintButton(javax.swing.JButton printButton)
printButton
- the printButton to setprotected void setStepButton(javax.swing.JButton stepButton)
stepButton
- the stepButton to setprivate void setToolTips()
protected void setxLabel(javax.swing.JLabel xLabel)
xLabel
- the xLabel to setprotected void setxValueField(javax.swing.JTextField xValueField)
xValueField
- the xValueField to setprotected void setyLabel(javax.swing.JLabel yLabel)
yLabel
- the yLabel to setprotected void setyValueField(javax.swing.JTextField yValueField)
yValueField
- the yValueField to set