|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.table.cells.TableCell com.cosylab.gui.components.table.cells.NumericCell com.cosylab.gui.components.table.cells.LongCell com.cosylab.gui.components.table.cells.LongEnumCell
public class LongEnumCell
LongEnumCell holds enumeration valies. Each long value from min to max represents one enumeration state, which can have own name and value.
Field Summary | |
---|---|
static java.lang.String |
STATE_DESCRIPTION
State description property tag. |
static java.lang.String |
STATE_VALUE
State value property tag |
Fields inherited from class com.cosylab.gui.components.table.cells.NumericCell |
---|
FORMAT, MAXIMUM, MINIMUM, UNITS, UNITS_VISIBLE |
Fields inherited from class com.cosylab.gui.components.table.cells.TableCell |
---|
ALARM, commands, dataSource, ERROR, identifier, OUT_OF_BOUNDS, SEVERITY, SUSPENDED, TIMEOUT, timestamp, TOOLTIP, value, WARNING |
Constructor Summary | |
---|---|
LongEnumCell()
Constructs a new LongEnumCell. |
|
LongEnumCell(java.lang.String identifier,
java.lang.Object dataSource,
long value,
Command[] commands)
Constructs a new LongEnumCell. |
|
LongEnumCell(java.lang.String identifier,
java.lang.Object dataSource,
long value,
Command[] commands,
java.lang.String[] descriptions,
java.lang.Object[] values)
Creates a new LongEnumCell object. |
Method Summary | |
---|---|
java.lang.String |
getStateDescription(long i)
Returns the state description under the index i . |
java.lang.String |
getStateLabel(long l)
Returns the label name of the state under the index i . |
java.lang.Object |
getStateValue(long i)
Returns the value under the index i . |
long |
toLongValue(java.lang.String label)
Trys to lookup state table and find enum index with this label. |
Methods inherited from class com.cosylab.gui.components.table.cells.LongCell |
---|
getLongValue, setValue |
Methods inherited from class com.cosylab.gui.components.table.cells.NumericCell |
---|
getFormat, getMaximum, getMaximum, getMinimum, getMinimum, getUnits, isUnitsVisible |
Methods inherited from class com.cosylab.gui.components.table.cells.TableCell |
---|
addSupportedCharacteristic, compareTo, getCharacteristic, getCharacteristic, getCharacteristics, getCommands, getDataSource, getIdentifier, getSupportedCharacteristics, getTimestamp, getTooltip, getValue, isAlarm, isError, isOutOfBounds, isSuspended, isTimeout, isWarning, putAllCharacteristics, putCharacteristic, removeSupportedCharacteristic, setTimestamp, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STATE_DESCRIPTION
public static final java.lang.String STATE_VALUE
Constructor Detail |
---|
public LongEnumCell()
public LongEnumCell(java.lang.String identifier, java.lang.Object dataSource, long value, Command[] commands)
identifier
- dataSource
- value
- commands
- public LongEnumCell(java.lang.String identifier, java.lang.Object dataSource, long value, Command[] commands, java.lang.String[] descriptions, java.lang.Object[] values)
identifier
- dataSource
- value
- commands
- descriptions
- values
- Method Detail |
---|
public java.lang.String getStateDescription(long i)
i
.
i
- index of the requested description
public java.lang.Object getStateValue(long i)
i
.
i
- index of the requested value
public java.lang.String getStateLabel(long l)
i
.
l
- index of the requested label
public long toLongValue(java.lang.String label)
label
- enum state description label
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |