DESY ACOP Beans Home

com.cosylab.gui.components.table.cells
Class NumericCell

java.lang.Object
  extended by com.cosylab.gui.components.table.cells.TableCell
      extended by com.cosylab.gui.components.table.cells.NumericCell
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
DoubleCell, DoubleSeqCell, LongCell, LongSeqCell

public abstract class NumericCell
extends TableCell

Numeric cell holds numeric value: double or long.

Author:
Igor Kriznar

Field Summary
static java.lang.String FORMAT
          Characteristic name for string describing ANSI type of format.
static java.lang.String MAXIMUM
          Characteristic name for string describing maximal allowed value.
static java.lang.String MINIMUM
          Characteristic name for string describing minimal allowed value.
static java.lang.String UNITS
          Characteristic name for string describing physical units of value.
static java.lang.String UNITS_VISIBLE
          Characteristic name for value defining if units should be 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
NumericCell()
          Constructs a new NumericCell.
NumericCell(java.lang.String identifier, java.lang.Object dataSource, java.lang.Object value, Command[] commands)
          Constructs a new NumericCell.
 
Method Summary
 java.lang.String getFormat()
          Returns value of FORMAT characteristic.
 java.lang.Number getMaximum()
          Returns value of MAXIMUM characteristic.
 java.lang.Number getMaximum(java.lang.Number defaultValue)
          Returns value of MAXIMUM characteristic.
 java.lang.Number getMinimum()
          Returns value of MINIMUM characteristic.
 java.lang.Number getMinimum(java.lang.Number defaultValue)
          Returns value of MINIMUM characteristic.
 java.lang.String getUnits()
          Returns value of UNITS characteristic.
 boolean isUnitsVisible()
          Returns a flag if units are visible.
 
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

FORMAT

public static final java.lang.String FORMAT
Characteristic name for string describing ANSI type of format.

See Also:
Constant Field Values

UNITS

public static final java.lang.String UNITS
Characteristic name for string describing physical units of value.

See Also:
Constant Field Values

MINIMUM

public static final java.lang.String MINIMUM
Characteristic name for string describing minimal allowed value.

See Also:
Constant Field Values

MAXIMUM

public static final java.lang.String MAXIMUM
Characteristic name for string describing maximal allowed value.

See Also:
Constant Field Values

UNITS_VISIBLE

public static final java.lang.String UNITS_VISIBLE
Characteristic name for value defining if units should be visible.

See Also:
Constant Field Values
Constructor Detail

NumericCell

public NumericCell()
Constructs a new NumericCell.


NumericCell

public NumericCell(java.lang.String identifier,
                   java.lang.Object dataSource,
                   java.lang.Object value,
                   Command[] commands)
Constructs a new NumericCell.

Parameters:
identifier -
dataSource -
value -
commands -
Method Detail

getFormat

public java.lang.String getFormat()
Returns value of FORMAT characteristic.

Returns:
value of FORMAT characteristic

getUnits

public java.lang.String getUnits()
Returns value of UNITS characteristic.

Returns:
value of UNITS characteristic

isUnitsVisible

public boolean isUnitsVisible()
Returns a flag if units are visible.

Returns:

getMinimum

public java.lang.Number getMinimum()
Returns value of MINIMUM characteristic.

Returns:
value of MINIMUM characteristic

getMinimum

public java.lang.Number getMinimum(java.lang.Number defaultValue)
Returns value of MINIMUM characteristic.

Parameters:
defaultValue - DOCUMENT ME!
Returns:
value of MINIMUM characteristic

getMaximum

public java.lang.Number getMaximum()
Returns value of MAXIMUM characteristic.

Returns:
value of MAXIMUM characteristic

getMaximum

public java.lang.Number getMaximum(java.lang.Number defaultValue)
Returns value of MAXIMUM characteristic.

Parameters:
defaultValue - DOCUMENT ME!
Returns:
value of MAXIMUM characteristic


Copyright © 2010. All Rights Reserved.