public abstract class MetaColumn
extends java.lang.Object
MetaColumnTableModel
Constructor and Description |
---|
MetaColumn(uk.ac.starlink.table.ColumnInfo info)
Constructs a new MetaColumn with a given metadata object.
|
MetaColumn(java.lang.String name,
java.lang.Class clazz)
Constructs a new MetaColumn with a given name and content class.
|
MetaColumn(java.lang.String name,
java.lang.Class clazz,
java.lang.String description)
Constructs a new MetaColumn with a given name, content class and
description.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getContentClass()
Returns the class of which all entries in this column are members.
|
uk.ac.starlink.table.ColumnInfo |
getInfo()
Returns the metadata object describing this column.
|
java.lang.String |
getName()
Returns the name of this column.
|
abstract java.lang.Object |
getValue(int irow)
Returns the entry at a given row in this column.
|
boolean |
isEditable(int irow)
Indicates whether the entry at a given row in this column can
be edited (whether
setValue(int, java.lang.Object) may be called on irow). |
void |
setValue(int irow,
java.lang.Object value)
Sets the value of the entry in this column at a given row.
|
public MetaColumn(java.lang.String name, java.lang.Class clazz)
name
- the name of the columnclazz
- the Class of which every entry in this column will
be a memberpublic MetaColumn(java.lang.String name, java.lang.Class clazz, java.lang.String description)
name
- the name of the columnclazz
- the Class of which every entry in this column will
be a memberdescription
- short textual description of columnpublic MetaColumn(uk.ac.starlink.table.ColumnInfo info)
info
- column metadatapublic abstract java.lang.Object getValue(int irow)
irow
- the row for which this column is being queriedpublic boolean isEditable(int irow)
setValue(int, java.lang.Object)
may be called on irow).
This class's implementation returns false, but it may
be overridden by subclasses which permit cell modification.irow
- the row for which this column is being queriedpublic void setValue(int irow, java.lang.Object value)
isEditable(int)
(irow) returns true.irow
- the row whose value in this column is to be setvalue
- the new value of the entry at irowpublic java.lang.String getName()
public java.lang.Class getContentClass()
public uk.ac.starlink.table.ColumnInfo getInfo()
Copyright © 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.