DESY ACOP Beans Home

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

java.lang.Object
  extended by com.cosylab.gui.components.table.cells.TableCell
      extended by com.cosylab.gui.components.table.cells.DeviceCell
All Implemented Interfaces:
java.lang.Comparable

public class DeviceCell
extends TableCell

DeviceCell holds place for device: an entitiy providion identifier and possibly commands.

Author:
Igor Kriznar

Field Summary
 
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
DeviceCell()
          Constructs a new DeviceCell.
DeviceCell(java.lang.String identifier, java.lang.Object dataSource, java.lang.Object value, Command[] commands)
          Constructs a new DeviceCell.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean isHighlightCell()
          Returnst true if this cell is highlighted (selected).
 void setHighlightCell(boolean cellSelected)
          Highlights this cell.
 java.lang.String toString()
          Returns identifier.
 
Methods inherited from class com.cosylab.gui.components.table.cells.TableCell
addSupportedCharacteristic, getCharacteristic, getCharacteristic, getCharacteristics, getCommands, getDataSource, getIdentifier, getSupportedCharacteristics, getTimestamp, getTooltip, getValue, isAlarm, isError, isOutOfBounds, isSuspended, isTimeout, isWarning, putAllCharacteristics, putCharacteristic, removeSupportedCharacteristic, setTimestamp, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeviceCell

public DeviceCell()
Constructs a new DeviceCell.


DeviceCell

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

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

toString

public java.lang.String toString()
Returns identifier.

Overrides:
toString in class TableCell
See Also:
TableCell.toString()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class TableCell

isHighlightCell

public boolean isHighlightCell()
Returnst true if this cell is highlighted (selected).

Returns:
true if highlighted

setHighlightCell

public void setHighlightCell(boolean cellSelected)
Highlights this cell. This method does not fire any events. Upon changing the highlight property the cell should be repainted.

Parameters:
cellSelected -


Copyright © 2010. All Rights Reserved.