public abstract class RFControl extends RFPanel implements IViewContainer
This is the public class of a RF container which contains the part of
the control panel. Each control panel can hold one or more entries, which are
included in the array list of the type IEData
. There can
also be two or more elements in this array with the same type, but this is
normally not done. All entries are horizontal displayed with a gap of the
width width
between them.
Moreover you are forced to deliver also a string value for the action
which each element is supposed to. This can be recalled by the action in the
ActionEvent
with the method ActionEvent.getActionCommand()
.
The array element of the constructor are satisfied with the static class
called RFControl(Dimension, de.desy.mst.libs.accelerator.view.container.RFControl.RFControlHolder[])
which can be found in this class (RFControl.RFControlHolder
).
Modifier and Type | Class and Description |
---|---|
static class |
RFControl.RFControlHolder
New holder class for carrying different values (most of it, the data
component value is most important) for its supervisor class.
|
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<IEData,IViewComponent> |
_mapDataComponent
This is the map which associates the enumeration of the data component
and the view component, here the check box.
|
static int |
MAX_DELAY
Is the maximum delay time.
|
static long |
serialVersionUID
The serial version UID, which is used by the java.io.Serializable
interface.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier | Constructor and Description |
---|---|
protected |
RFControl(java.awt.Dimension dim_,
RFControl.RFControlHolder[] data_)
This public constructor sets the control panel of the RF container.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(javax.swing.JComponent component_) |
boolean |
getBoolean(IEValue container_,
EViewElement element_)
ATTENTION: THIS METHOD IS CURRENTLY NOT USED AND WILL
THROW A RUNTIME EXCEPTION!
|
javax.swing.JComponent |
getPanel()
Returns the component element.
|
java.lang.Number |
getValue(IEValue container_)
ATTENTION: THIS METHOD IS CURRENTLY NOT USED AND WILL
THROW A RUNTIME EXCEPTION!
|
void |
reset(IEValue container_)
ATTENTION: THIS METHOD IS CURRENTLY NOT USED AND WILL
THROW A RUNTIME EXCEPTION!
|
void |
setBoolean(IEValue container_,
EViewElement element_,
boolean value_)
ATTENTION: THIS METHOD IS CURRENTLY NOT USED AND WILL
THROW A RUNTIME EXCEPTION!
|
void |
setValue(IEValue container_,
java.lang.Number value_)
ATTENTION: THIS METHOD IS CURRENTLY NOT USED AND WILL
THROW A RUNTIME EXCEPTION!
|
debug, fetchGraphicComponent, fetchSeverity, fetchText, getMaximumSize, getMinimumSize, getPreferredSize, hasOpaque, isEnable, isValueAdjusting, isVisual, putBackground, putBorder, putEnable, putForeground, putListener, putNumber, putOpaque, putSelected, putSeverity, putText, putTooltip, putVisual, toString
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, 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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponent
public static final long serialVersionUID
public static final int MAX_DELAY
protected final java.util.Map<IEData,IViewComponent> _mapDataComponent
protected RFControl(java.awt.Dimension dim_, RFControl.RFControlHolder[] data_)
dim_
- Is the dimension if this container. Can also be null
.data_
- Is an array of the holder on data enumeration interfaces
and its width from the next.public void debug(javax.swing.JComponent component_)
public void reset(IEValue container_)
ATTENTION: THIS METHOD IS CURRENTLY NOT USED AND WILL THROW A RUNTIME EXCEPTION!
(non-Javadoc)
reset
in interface IViewContainer
container_
- Is the viewable container enumeration interface.IViewContainer.reset(de.desy.mst.libs.accelerator.IEValue)
public javax.swing.JComponent getPanel()
IViewContainer
getPanel
in interface IViewContainer
public java.lang.Number getValue(IEValue container_)
ATTENTION: THIS METHOD IS CURRENTLY NOT USED AND WILL THROW A RUNTIME EXCEPTION!
(non-Javadoc)
getValue
in interface IViewContainer
container_
- Is the viewable container enumeration interface.IViewContainer.getValue(de.desy.mst.libs.accelerator.IEValue)
public void setValue(IEValue container_, java.lang.Number value_)
ATTENTION: THIS METHOD IS CURRENTLY NOT USED AND WILL THROW A RUNTIME EXCEPTION!
(non-Javadoc)
setValue
in interface IViewContainer
container_
- Is the viewable container enumeration interface.value_
- Is the numeric value.IViewContainer.setValue(de.desy.mst.libs.accelerator.IEValue, java.lang.Number)
public boolean getBoolean(IEValue container_, EViewElement element_)
ATTENTION: THIS METHOD IS CURRENTLY NOT USED AND WILL THROW A RUNTIME EXCEPTION!
This allows to set a boolean value on the enumeration interface of
IEValue
. For example, you can get the enabling of the
container by calling it with EViewContainer.BUTTON and the
enumeration interface type of EViewElement.ENABLE.
getBoolean
in interface IViewContainer
container_
- Is the viewable container enumeration interface.element_
- Is the enumeration of the viewable element.IViewContainer.getBoolean(de.desy.mst.libs.accelerator.IEValue, de.desy.mst.libs.accelerator.EViewElement)
public void setBoolean(IEValue container_, EViewElement element_, boolean value_)
ATTENTION: THIS METHOD IS CURRENTLY NOT USED AND WILL THROW A RUNTIME EXCEPTION!
(non-Javadoc)
setBoolean
in interface IViewContainer
container_
- Is the viewable container enumeration interface.element_
- Is the enumeration of the viewable element.value_
- Is the boolean value to be set.IViewContainer.setBoolean(de.desy.mst.libs.accelerator.IEValue, de.desy.mst.libs.accelerator.EViewElement, boolean)
14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft