DESY ACOP Beans Home

de.desy.acop.displayers.table
Class AcopStringTableColumn

java.lang.Object
  extended by de.desy.acop.displayers.table.AcopTableColumn
      extended by de.desy.acop.displayers.table.AcopStringTableColumn
All Implemented Interfaces:
DataConsumer, StringSeqConsumer

public class AcopStringTableColumn
extends AcopTableColumn
implements StringSeqConsumer

TableColumn for presenting string values.

Author:
Jaka Bobnar, Cosylab

Field Summary
static java.lang.String[] SUPPORTED_CHARACTERISTICS
           
static java.lang.Class[] SUPPORTED_CONSUMER_TYPES
           
 
Fields inherited from class de.desy.acop.displayers.table.AcopTableColumn
cells, characteristics, dataState, displayerParameters, rowCount, table
 
Constructor Summary
AcopStringTableColumn()
          Constructs new AcopStringTableColumn.
AcopStringTableColumn(AcopTable table, java.lang.String uniqueName, java.lang.String shortName)
          Constructs new AcopStringTableColumn.
 
Method Summary
 java.lang.Class<?> getColumnClass()
          Returns the class of the objects that this column presents.
 DataState getDataState()
          Returns the current data state of this column.
 java.lang.String[] getSupportedCharacteristics()
          Resturns array with names of supported characteristics.
 java.lang.Class<DataConsumer>[] getSupportedConsumerTypes()
          Returns array of supported data consumer types, which can be used as parameter and returnned with getDataCosnumer(Class) method.
 java.lang.Object getValue(int rowIndex)
          Returns the value at specified row.
 void updateValue(long timestamp, java.lang.String[] names)
          Notifys this consumer about new dynamic value update.
 
Methods inherited from class de.desy.acop.displayers.table.AcopTableColumn
addTableColumnListener, destroy, fireColumnChanged, getDataConsumer, getDefaultDataConsumer, getDisplayerParameters, getHeaderName, getName, getRowCount, removeTableColumnListener, setCharacteristics, setCharacteristicsOnCell, setDataStateOnCell, setDisplayerParameters, setRowCount, updateDataState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cosylab.gui.displayers.DataConsumer
getDataConsumer, getDefaultDataConsumer, getName, setCharacteristics, updateDataState
 

Field Detail

SUPPORTED_CONSUMER_TYPES

public static final java.lang.Class[] SUPPORTED_CONSUMER_TYPES

SUPPORTED_CHARACTERISTICS

public static final java.lang.String[] SUPPORTED_CHARACTERISTICS
Constructor Detail

AcopStringTableColumn

public AcopStringTableColumn()
Constructs new AcopStringTableColumn.


AcopStringTableColumn

public AcopStringTableColumn(AcopTable table,
                             java.lang.String uniqueName,
                             java.lang.String shortName)
Constructs new AcopStringTableColumn.

Parameters:
table - parent table
uniqueName - unique name of the column
shortName - short name of the column
Method Detail

getColumnClass

public java.lang.Class<?> getColumnClass()
Description copied from class: AcopTableColumn
Returns the class of the objects that this column presents.

Overrides:
getColumnClass in class AcopTableColumn
Returns:
column class

getSupportedCharacteristics

public java.lang.String[] getSupportedCharacteristics()
Description copied from interface: DataConsumer
Resturns array with names of supported characteristics. Data source can use this method to optimize setting characteristics to this data consumer. If arrray of length 0 is return, then consumer does not need or support any characteristic. If null is returned, than consumer expect all existing characteristics from data source.

Specified by:
getSupportedCharacteristics in interface DataConsumer
Returns:
array with names of supported characteristics

getSupportedConsumerTypes

public java.lang.Class<DataConsumer>[] getSupportedConsumerTypes()
Description copied from interface: DataConsumer
Returns array of supported data consumer types, which can be used as parameter and returnned with getDataCosnumer(Class) method.

Specified by:
getSupportedConsumerTypes in interface DataConsumer
Returns:
array of supported data consumer types

getValue

public java.lang.Object getValue(int rowIndex)
Description copied from class: AcopTableColumn
Returns the value at specified row.

Specified by:
getValue in class AcopTableColumn
Returns:

updateValue

public void updateValue(long timestamp,
                        java.lang.String[] names)
Description copied from interface: StringSeqConsumer
Notifys this consumer about new dynamic value update.

Specified by:
updateValue in interface StringSeqConsumer
Parameters:
timestamp - the time of dynamic value event
names - new value

getDataState

public DataState getDataState()
Description copied from class: AcopTableColumn
Returns the current data state of this column.

Overrides:
getDataState in class AcopTableColumn
Returns:
the data state


Copyright © 2010. All Rights Reserved.