uk.ac.starlink.util.gui
Class ArrayTableColumn

java.lang.Object
  extended by uk.ac.starlink.util.gui.ArrayTableColumn

public abstract class ArrayTableColumn
extends Object

Provides the specification for a table column. This is to be used in conjunction with ArrayTableModel.

Since:
14 Oct 2009
Author:
Mark Taylor

Constructor Summary
ArrayTableColumn(String name, Class clazz)
          Constructor.
 
Method Summary
 Class getContentClass()
          Returns the class which all values of this column will belong to.
 String getName()
          Returns the name of this column.
abstract  Object getValue(Object item)
          Returns the value in this column for the row represented by the given row data object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayTableColumn

public ArrayTableColumn(String name,
                        Class clazz)
Constructor.

Parameters:
name - column name
clazz - class which all objects returned by the getValue(java.lang.Object) method will be instances of (or null)
Method Detail

getValue

public abstract Object getValue(Object item)
Returns the value in this column for the row represented by the given row data object.

Parameters:
item - row data object
Returns:
cell value in this column

getName

public String getName()
Returns the name of this column.

Returns:
column name

getContentClass

public Class getContentClass()
Returns the class which all values of this column will belong to.

Returns:
content class


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.