|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.displayers.table.AcopTableColumn
public abstract class AcopTableColumn
AcopTableColumn
is a DataConsumer
which uses
TableCells for displaying values. AcopTableColumn can be used in combination
with AcopTable
and can represent a single column in the
table.
AcopTable
Field Summary | |
---|---|
protected TableCell[] |
cells
|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
characteristics
|
protected DataState |
dataState
|
protected AcopTableParameters |
displayerParameters
|
protected int |
rowCount
|
protected AcopTable |
table
|
Constructor Summary | |
---|---|
AcopTableColumn()
Constructs a new AcopTableColumn |
|
AcopTableColumn(AcopTable table,
java.lang.String uniqueName,
java.lang.String shortName)
Constructs a new AcopTableColumn. |
Method Summary | |
---|---|
void |
addTableColumnListener(TableColumnListener l)
Adds a TableColumnListener which receives notifications when certain column values changed. |
void |
destroy()
Destroys this column and releases any resource associated with it. |
protected void |
fireColumnChanged()
|
java.lang.Class<?> |
getColumnClass()
Returns the class of the objects that this column presents. |
DataConsumer |
getDataConsumer(java.lang.Class type)
Returns data consumer for requested data consumer type. |
DataState |
getDataState()
Returns the current data state of this column. |
DataConsumer |
getDefaultDataConsumer()
Returns the implementation of default consumer type supported by this data consumer. |
AcopTableParameters |
getDisplayerParameters()
Returns the displayer parameters associated with this column. |
java.lang.String |
getHeaderName()
Returns the name that is printed in the table header. |
java.lang.String |
getName()
Returns name of this data consumer. |
int |
getRowCount()
Returns the number of rows. |
abstract java.lang.Object |
getValue(int rowIndex)
Returns the value at specified row. |
void |
removeTableColumnListener(TableColumnListener l)
Removes a TableColumnListener. |
void |
setCharacteristics(java.util.Map characteristics)
Sets new dynamic value characteristics to this data consumer. |
protected void |
setCharacteristicsOnCell(TableCell cell)
|
protected void |
setDataStateOnCell(TableCell cell)
|
void |
setDisplayerParameters(AcopTableParameters displayerParameters)
Sets the displayer parameters that specify the connection point and look of the column. |
void |
setRowCount(int rowCount)
Sets the number of rows. |
void |
updateDataState(DataState state)
Push data state (quality) update change for dynamic value. |
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 |
---|
getSupportedCharacteristics, getSupportedConsumerTypes |
Field Detail |
---|
protected AcopTable table
protected AcopTableParameters displayerParameters
protected DataState dataState
protected TableCell[] cells
protected int rowCount
protected java.util.HashMap<java.lang.String,java.lang.Object> characteristics
Constructor Detail |
---|
public AcopTableColumn()
public AcopTableColumn(AcopTable table, java.lang.String uniqueName, java.lang.String shortName)
table
- parent tableuniqueName
- unique name of the columnshortName
- short name of the columnMethod Detail |
---|
public java.lang.String getName()
DataConsumer
getName
in interface DataConsumer
public java.lang.String getHeaderName()
public java.lang.Class<?> getColumnClass()
public abstract java.lang.Object getValue(int rowIndex)
rowIndex
-
public void setRowCount(int rowCount)
rowCount
- new number of rowspublic int getRowCount()
public DataConsumer getDataConsumer(java.lang.Class type)
DataConsumer
Returns data consumer for requested data consumer type. If this data
consumer does not support required data consumer, null
is
returned.
If this data cosnumer does not support specific data consumer type, then it means, that it is not desirable to cast data of that type to any by this consumer supported data consumer types.
getDataConsumer
in interface DataConsumer
type
- Class of specific data consumer (e.g. DoubleConsumer)
null
if
not supportedpublic DataConsumer getDefaultDataConsumer()
DataConsumer
getDefaultDataConsumer
in interface DataConsumer
public void updateDataState(DataState state)
DataConsumer
updateDataState
in interface DataConsumer
state
- new data state(quality) descriptorpublic void setCharacteristics(java.util.Map characteristics)
DataConsumer
setCharacteristics
in interface DataConsumer
characteristics
- the Map
with attripublic void destroy()
public void addTableColumnListener(TableColumnListener l)
l
- public void removeTableColumnListener(TableColumnListener l)
l
- protected void fireColumnChanged()
public DataState getDataState()
protected void setCharacteristicsOnCell(TableCell cell)
protected void setDataStateOnCell(TableCell cell)
public AcopTableParameters getDisplayerParameters()
public void setDisplayerParameters(AcopTableParameters displayerParameters)
displayerParameters
- the parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |