public enum EViewElement extends java.lang.Enum<EViewElement> implements IEEnum
This is the view element to be displayed on screen. This enumeration is mostly
used by the interface of IComponentSubject
in its IComponentSubject.notify(IEData, EViewElement, Object)
method.
The following entries exists which I exposed here with a little description:
EViewElement instance | Type of the object instance ofIComponentSubject.notify(IEData, EViewElement, Object) | Description |
---|---|---|
LIST | java.util.List | The text field of a String instance of a JList component. |
LABELNUMBER | java.lang.String | Puts a formated text string into the component. |
NAME | java.lang.String | Displays the delivered String object. |
NUMBER | java.lang.Number | Puts the java.lang.Number into this component. |
VISIBLE | java.lang.Boolean | Sets the components visible or not. The delivered value is an instance of Boolean. |
ENABLE | java.lang.Boolean | Enables the components or not. The delivered value is an instance of Boolean. |
FOREGROUNDCOLOR | java.awt.Color | Sets the foreground color of the component. The delivered object is an instance of Color. |
BACKGROUNDCOLOR | java.awt.Color | Sets the background color of the component. The delivered object is an instance of Color. |
OPAQUE | java.lang.Boolean | Sets the opaque (background can be seen or is invisible) of the component. The delivered object is an instance of Boolean. |
SELECTED | java.lang.Boolean | Sets the selection of a component. The delivered object is an instance of Boolean. |
TOOLTIP | java.lang.String | Sets the tool tip. The delivered String element should never be null . |
TOOLTIP_CDI | java.lang.String | Sets the tool tip. The delivered String -element can also be null . In these cases it will display only the raw TINE address. |
TOOLTIP_TINE | java.lang.String | Sets the tool tip. The delivered String -element can also be null . In these cases it will display only the TINE path address. |
SEVERITY | de.desy.mst.libs.accelerator.ESeverity | Severity of the GUI element. A number: 0 (NORMAL), 1 (WARN), 2 (ERROR), 3 (FATAL). |
IGNORE_OPERATION | java.lang.Boolean | Disregards or regards all following operations on the EViewElement of IEData on the observer design pattern by setting the object to true or false . |
BORDER | java.awt.Border | Sets the border of the component(s). |
If the delivered object by the method of
IComponentSubject.notify(IEData, EViewElement, Object)
is not
as described in the above table an InvalidArgumentException will be
thrown.
Enum Constant and Description |
---|
BACKGROUNDCOLOR |
BORDER |
ENABLE |
FOREGROUNDCOLOR |
IGNORE_OPERATION |
LABELNUMBER |
LIST |
NAME |
NUMBER |
OPAQUE |
SELECTED |
SEVERITY |
TOOLTIP |
TOOLTIP_CDI |
TOOLTIP_TINE |
VISIBLE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName(EName description_)
Returns according to the enumeration of the description the corresponding
string value.
|
void |
putName(EName description_,
java.lang.String name_)
Sets to the according enumeration the string value of the corresponding
element.
|
static EViewElement |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EViewElement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EViewElement LIST
public static final EViewElement LABELNUMBER
public static final EViewElement NAME
public static final EViewElement NUMBER
public static final EViewElement SEVERITY
public static final EViewElement VISIBLE
public static final EViewElement ENABLE
public static final EViewElement OPAQUE
public static final EViewElement FOREGROUNDCOLOR
public static final EViewElement BACKGROUNDCOLOR
public static final EViewElement TOOLTIP
public static final EViewElement TOOLTIP_CDI
public static final EViewElement TOOLTIP_TINE
public static final EViewElement BORDER
public static final EViewElement SELECTED
public static final EViewElement IGNORE_OPERATION
public static EViewElement[] values()
for (EViewElement c : EViewElement.values()) System.out.println(c);
public static EViewElement valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName(EName description_)
IEEnum
null
value
is returned, except the enumeration of ID
which will always
return a value.14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft