public interface IViewContainer
extends java.io.Serializable
A container can carry different labels, buttons etc. To get or set each of
these components to the container there exists different getter and setter
methods inside this interface, which allows you to get and set the value. As
an argument one has to deliver the enumeration interface of
IEValue
to control the element one wants to get or set.
There also exists a reset method (
reset(IEValue)
)
which will reset all values to the old ones.
ATTENTION: Remember that not all methods must be implemented by a concret class and can also throw a RuntimeException.
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(IEValue container_,
EViewElement element_)
This allows to set a boolean value on the enumeration interface of
IEValue . |
IViewComponent |
getComponent(IEValue container_,
IEData data_)
Returns the component of the viewable container.
|
javax.swing.JComponent |
getPanel()
Returns the component element.
|
java.lang.Number |
getValue(IEValue container_)
This will return for the corresponding viewable enumeration interface
the numeric value.
|
void |
reset(IEValue container_)
Will reset all current values to the old ones.
|
void |
setBoolean(IEValue container_,
EViewElement element_,
boolean value_)
Sets for the viewable container as an enumeration interface and the
corresponding element with a boolean value.
|
void |
setValue(IEValue element_,
java.lang.Number value_)
Sets the viewable container as an enumeration interface and the
corresponding element with a numeric value.
|
void reset(IEValue container_)
container_
- Is the viewable container enumeration interface.IViewComponent getComponent(IEValue container_, IEData data_) throws EnumerationException
container_
- Is the viewable container enumeration interface.data_
- Is the data component enumeration interface.EnumerationException
- An enumeration exceptions is thrown if
an error occurred on the enumeration interface.java.lang.Number getValue(IEValue container_)
container_
- Is the viewable container enumeration interface.void setValue(IEValue element_, java.lang.Number value_)
element_
- Is the viewable container enumeration interface.value_
- Is the numeric value.boolean getBoolean(IEValue container_, EViewElement element_)
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.
container_
- Is the viewable container enumeration interface.element_
- Is the enumeration of the viewable element.void setBoolean(IEValue container_, EViewElement element_, boolean value_)
container_
- Is the viewable container enumeration interface.element_
- Is the enumeration of the viewable element.value_
- Is the boolean value to be set.javax.swing.JComponent getPanel()
14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft