public final class RFSpinner extends javax.swing.JSpinner implements IViewComponent
IViewComponent
interface.javax.swing.JSpinner.AccessibleJSpinner, javax.swing.JSpinner.DateEditor, javax.swing.JSpinner.DefaultEditor, javax.swing.JSpinner.ListEditor, javax.swing.JSpinner.NumberEditor
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLAZZ
Class name
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
RFSpinner(javax.swing.SpinnerModel model_)
Constructor.
|
RFSpinner(javax.swing.SpinnerModel model_,
java.awt.Dimension dim_)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
debug()
This will debug the viewable component, by, for example, displaying the
outer area as a line border or something like that.
|
EGraphicComponent |
fetchGraphicComponent()
Returns the current component as an enumeration value.
|
ESeverity |
fetchSeverity()
Fetches the severity of the component.
|
java.lang.String |
fetchText(IEData view_)
This will fetch the text of the component.
|
java.awt.Dimension |
getMaximumSize() |
java.awt.Dimension |
getMinimumSize() |
java.awt.Dimension |
getPreferredSize() |
boolean |
hasOpaque()
Tells the caller if this component is drawn with a background or not.
|
boolean |
isEnable()
Asks if the current component is enabled and so for click-able on the
screen.
|
boolean |
isValueAdjusting(IEData view_)
Queries if the value is adjusting.
|
boolean |
isVisual()
Queries if this component is opaque or not.
|
void |
putBackground(java.awt.Color background_)
Currently the background color is set to the internal editor instance
if it is of the kind
JSpinner.DefaultEditor . |
void |
putBorder(javax.swing.border.Border border_)
Puts the Swing border to the component.
|
void |
putEnable(boolean enable_)
Sets the enable property.
|
void |
putForeground(java.awt.Color foreground_)
Currently the foreground color is set to the internal editor instance
if it is of the kind
JSpinner.DefaultEditor . |
void |
putListener(java.util.EventListener listener_)
Only change listener are accepted.
|
void |
putNumber(java.lang.Number number_,
IEData data_)
If the spinner model is of the type
SpinnerNumberModel then the
model is casted to the inherited type and sets the value. |
void |
putOpaque(boolean opaque_)
Sets the opaque of this component.
|
void |
putSelected(boolean isSelected_)
Puts the selected boolean value to the viewable component.
|
void |
putSeverity(ESeverity severity_)
Sets the severity of this component.
|
void |
putText(java.lang.String label_,
IEData view_)
The spinner has no text field and therefore this method does really
nothing.
|
void |
putTooltip(java.lang.String tooltip_)
Puts the tool tip text to the viewable component.
|
void |
putVisual(boolean visual_)
Sets the visibility of this component.
|
java.lang.String |
toString()
Returns the current name of this label by just calling the
getName()
method. |
addChangeListener, commitEdit, createEditor, fireStateChanged, getAccessibleContext, getChangeListeners, getEditor, getModel, getNextValue, getPreviousValue, getUI, getUIClassID, getValue, removeChangeListener, setEditor, setModel, setUI, setValue, 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, getNextFocusableComponent, getPopupLocation, 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, paramString, 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, transferFocus, transferFocusBackward, transferFocusUpCycle
public RFSpinner(javax.swing.SpinnerModel model_)
model_
- Spinner model.public RFSpinner(javax.swing.SpinnerModel model_, java.awt.Dimension dim_)
model_
- Spinner model.dim_
- This is the dimension of this container. If the dimension is
null
the size of the instance is taken via its super method
and so fore this instance isn't fixed in its size.public java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent
public java.awt.Dimension getMaximumSize()
getMaximumSize
in class javax.swing.JComponent
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public EGraphicComponent fetchGraphicComponent()
IViewComponent
fetchGraphicComponent
in interface IViewComponent
public java.lang.String fetchText(IEData view_)
IViewComponent
fetchText
in interface IViewComponent
view_
- This is the current view element in which you wanted to append
the above label text. This can be in some inherited class also be
null.public boolean isEnable()
IViewComponent
isEnable
in interface IViewComponent
public boolean isVisual()
IViewComponent
isVisual
in interface IViewComponent
public boolean hasOpaque()
IViewComponent
hasOpaque
in interface IViewComponent
public boolean isValueAdjusting(IEData view_)
IViewComponent
Queries if the value is adjusting. If this is true it will return the value true otherwise false.
The word adjusting means that you take a component and drag it around on screen with holding down the key or mouse button pressed. If this occurs a true is returned.
isValueAdjusting
in interface IViewComponent
view_
- Is the data component for which this method will query for.public void putListener(java.util.EventListener listener_)
putListener
in interface IViewComponent
listener_
- The listener interface.public void putText(java.lang.String label_, IEData view_)
putText
in interface IViewComponent
label_
- This is the text as a string value which represents the
current displayed text.view_
- This is the current view element in which you wanted to append
the above label text. This can be in some inherited class also be
null.public void putNumber(java.lang.Number number_, IEData data_)
SpinnerNumberModel
then the
model is casted to the inherited type and sets the value. Otherwise
nothing is done and the method will return immediately without doing
anything.putNumber
in interface IViewComponent
number_
- The number to be set.data_
- Is the viewable data component.public void putEnable(boolean enable_)
IViewComponent
putEnable
in interface IViewComponent
enable_
- Enables or disables this component.public void putVisual(boolean visual_)
IViewComponent
putVisual
in interface IViewComponent
visual_
- Sets the visibility of the component to be true or not.public void putOpaque(boolean opaque_)
IViewComponent
putOpaque
in interface IViewComponent
opaque_
- The opaque value.public void putForeground(java.awt.Color foreground_)
JSpinner.DefaultEditor
. Otherwise it will
directly set to the color of the spinner instance itself.putForeground
in interface IViewComponent
foreground_
- Is the current foreground color.public void putBackground(java.awt.Color background_)
JSpinner.DefaultEditor
. Otherwise it will
directly set to the color of the spinner instance itself.putBackground
in interface IViewComponent
background_
- Is the current background color.public void putTooltip(java.lang.String tooltip_)
IViewComponent
putTooltip
in interface IViewComponent
tooltip_
- The tool tip text.public java.lang.String toString()
getName()
method.toString
in class java.awt.Component
public void putSelected(boolean isSelected_)
IViewComponent
putSelected
in interface IViewComponent
isSelected_
- Is a boolean value.public void putBorder(javax.swing.border.Border border_)
IViewComponent
putBorder
in interface IViewComponent
border_
- Is a Swing border.public void debug()
IViewComponent
debug
in interface IViewComponent
public ESeverity fetchSeverity()
IViewComponent
Fetches the severity of the component. This value has no direct influence on the GUI element but tells the caller if the severity value is set and sets corresponding the background and foreground color, for example.
fetchSeverity
in interface IViewComponent
public void putSeverity(ESeverity severity_)
IViewComponent
putSeverity
in interface IViewComponent
severity_
- The severity value.14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft