|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel ca.spaz.cron.summary.SummaryPanel
public abstract class SummaryPanel
An abstract UI class for display of a set of field values. Supports arbitrary numbers of rows in 3-column displays.
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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, 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 |
---|
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 | |
---|---|
protected |
SummaryPanel()
Deprecated. Construct a summary panel with the default ordering of components. |
protected |
SummaryPanel(java.util.Comparator fieldOrdering)
Deprecated. Construct a summary panel with the specified number of columns and field ordering. |
Method Summary | |
---|---|
protected void |
addValueField(java.lang.String valueName,
java.lang.String valueUnit)
Deprecated. Add a new value field to the component. |
protected void |
addValueField(java.lang.String valueName,
java.lang.String labelText,
java.lang.String valueUnit)
Deprecated. Add a new value field to the component. |
protected java.lang.String |
doBooleanString(java.lang.String valueName,
java.lang.Boolean value)
Deprecated. Format a Boolean for display. |
protected java.lang.String |
doDoubleString(java.lang.String valueName,
java.lang.Double value)
Deprecated. Format a Double for display. |
protected java.lang.String |
doGetTextForValue(java.lang.String valueName,
java.lang.Object value)
Deprecated. Get the label text for a value. |
protected java.lang.String |
doIntegerString(java.lang.String valueName,
java.lang.Integer value)
Deprecated. Format a Integer for display. |
protected java.lang.String |
doString(java.lang.String valueName,
java.lang.String value)
Deprecated. Format a String for display. |
protected abstract void |
doValueUpdate(java.lang.String valueName)
Deprecated. Subclass-specific behaviour on value settings occurs here. |
protected void |
generateContentPane()
Deprecated. Regenerate the UI components. |
boolean |
getBooleanValue(java.lang.String valueName)
Deprecated. Retrieve a boolean value. |
protected javax.swing.JComponent |
getContentPane(java.util.List contentValues)
Deprecated. Overridable method to select the actual content panel of the display component. |
double |
getDoubleValue(java.lang.String valueName)
Deprecated. Retrieve a double value. |
int |
getIntValue(java.lang.String valueName)
Deprecated. Retrieve an int value. |
java.lang.String |
getLabelText(java.lang.String valueName)
Deprecated. |
java.lang.String |
getStringValue(java.lang.String valueName)
Deprecated. Retrieve a String value. |
protected java.lang.String |
getText(java.lang.String valueName)
Deprecated. |
protected java.lang.String |
getUnit(java.lang.String valueName)
Deprecated. get the unit string for the value, with all the fixings. |
protected java.util.List |
getValueList()
Deprecated. Get a list of the values in this summary panel. |
java.lang.String |
getValueText(java.lang.String valueName)
Deprecated. |
protected void |
removeValueField(java.lang.String valueName)
Deprecated. Purge a value from the component. |
void |
setValue(java.lang.String valueName,
boolean value)
Deprecated. Set a boolean value in the value set. |
void |
setValue(java.lang.String valueName,
double value)
Deprecated. Set a double value in the value set. |
void |
setValue(java.lang.String valueName,
int value)
Deprecated. Set an int value in the value set. |
void |
setValue(java.lang.String valueName,
java.lang.String value)
Deprecated. Set a String value in the value set. |
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, 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, 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, transferFocusBackward, 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, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SummaryPanel()
protected SummaryPanel(java.util.Comparator fieldOrdering)
fieldOrdering
- The Comparator
to sort the fields with. If null,
the field default ordering is the order they are added in.Method Detail |
---|
protected final void addValueField(java.lang.String valueName, java.lang.String valueUnit)
valueName
- The name to use for both the label and as the key. Must be unique.valueUnit
- The unit of measure (will be appended to the output value by default).protected final void addValueField(java.lang.String valueName, java.lang.String labelText, java.lang.String valueUnit)
valueName
- The name to use for both the label and as the key. Must be unique.labelText
- The text to be displayed on the label.valueUnit
- The unit of measure (will be appended to the output value by default).protected java.lang.String doBooleanString(java.lang.String valueName, java.lang.Boolean value)
Boolean
for display. Defaults to toString(), but sublcasses
can override this behaviour.
valueName
- The name of the value to be formatted.value
- The value to format.
protected java.lang.String doDoubleString(java.lang.String valueName, java.lang.Double value)
Double
for display. Defaults to toString(), but sublcasses
can override this behaviour.
valueName
- The name of the value to be formatted.value
- The value to format.
protected final java.lang.String doGetTextForValue(java.lang.String valueName, java.lang.Object value)
valueName
- The name of the value to retrieve.value
- The actual value to display.
protected java.lang.String doIntegerString(java.lang.String valueName, java.lang.Integer value)
Integer
for display. Defaults to toString(), but sublcasses
can override this behaviour.
valueName
- The name of the value to be formatted.value
- The value to format.
protected java.lang.String doString(java.lang.String valueName, java.lang.String value)
String
for display. Defaults to unmodified, but sublcasses
can override this behaviour.
valueName
- The name of the value to be formatted.value
- The value to format.
protected final java.lang.String getUnit(java.lang.String valueName)
valueName
- the value to get the unit for.
protected final java.lang.String getText(java.lang.String valueName)
public final java.lang.String getValueText(java.lang.String valueName)
public final java.lang.String getLabelText(java.lang.String valueName)
protected abstract void doValueUpdate(java.lang.String valueName)
valueName
- the name of the value that was updated.public final boolean getBooleanValue(java.lang.String valueName)
boolean
value.
valueName
- the name of the value to return.
valueName
. False if no boolean stored.public final double getDoubleValue(java.lang.String valueName)
double
value.
valueName
- the name of the value to return.
valueName
.
Double.NaN
if no double stored.public final int getIntValue(java.lang.String valueName)
int
value.
valueName
- the name of the value to return.
valueName
.
0 if no int stored.public final java.lang.String getStringValue(java.lang.String valueName)
String
value.
valueName
- the name of the value to return.
valueName
.
Empty string if no object stored.protected final void generateContentPane()
protected final java.util.List getValueList()
List
containing all the values in this summary panel.protected javax.swing.JComponent getContentPane(java.util.List contentValues)
contentValues
- The list of value tags that will be displayed in
this component.protected final void removeValueField(java.lang.String valueName)
valueName
- public final void setValue(java.lang.String valueName, boolean value)
boolean
value in the value set.
valueName
- the name of the value to set.value
- the value to set.public final void setValue(java.lang.String valueName, double value)
double
value in the value set.
valueName
- the name of the value to set.value
- the value to set.public final void setValue(java.lang.String valueName, int value)
int
value in the value set.
valueName
- the name of the value to set.value
- the value to set.public final void setValue(java.lang.String valueName, java.lang.String value)
String
value in the value set.
valueName
- the name of the value to set.value
- the value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |