public abstract class MetaColumn extends Object
MetaColumnTableModel| Constructor and Description |
|---|
MetaColumn(uk.ac.starlink.table.ColumnInfo info)
Constructs a new MetaColumn with a given metadata object.
|
MetaColumn(String name,
Class<?> clazz)
Constructs a new MetaColumn with a given name and content class.
|
MetaColumn(String name,
Class<?> clazz,
String description)
Constructs a new MetaColumn with a given name, content class and
description.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getName()
Returns the name of this column.
|
abstract 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,
Object value)
Sets the value of the entry in this column at a given row.
|
public MetaColumn(String name, Class<?> clazz)
name - the name of the columnclazz - the Class of which every entry in this column will
be a memberpublic MetaColumn(String name, Class<?> clazz, 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 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 queriedirow may be written topublic void setValue(int irow,
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 String getName()
public Class<?> getContentClass()
public uk.ac.starlink.table.ColumnInfo getInfo()
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.