public final class TableModel
extends java.lang.Object
Constructor and Description |
---|
TableModel() |
Modifier and Type | Method and Description |
---|---|
void |
addRow(java.util.ArrayList values)
Adds a row to the table
|
void |
addRow(java.lang.String[] row)
Adds a row to the table
|
java.lang.String |
getDescription() |
java.lang.String |
getId() |
java.lang.String |
getName() |
java.lang.String[] |
getProperties(int col)
Returns the property name list of a column (VOTable FIELD content for
example (name, ID, unit, description, UCD, ...)
|
java.lang.String |
getProperties(int col,
java.lang.String propName)
Returns the value of a given column
|
void |
getProperties(int col,
java.lang.String[] values)
Sets the property name list of a column (VOTable FIELD content for
example (name, ID, unit, description, UCD, ...)
|
java.lang.String[] |
getRow(int index)
Returns a row value of the table
|
int |
getRowCount() |
java.lang.String[] |
getTableProperties()
Returns the Table properties (description, resource)
|
java.lang.String |
getTableProperty(java.lang.String tablePropName)
Returns a property value
|
java.lang.String |
getValueAt(int row,
int col)
Returns the value of a cell
|
void |
setDescription(java.lang.String description) |
void |
setId(java.lang.String id) |
void |
setName(java.lang.String name) |
void |
setProperty(int col,
java.lang.String propName,
java.lang.String value)
Returns the value of a given column
|
void |
setRow(int index,
java.lang.String[] values)
Sets (replace) a row value of the table
|
void |
setTableProperties(java.util.ArrayList fieldPropertyNames,
java.util.ArrayList fieldPropertyValues) |
void |
setTableProperties(java.lang.String[] properties)
Sets the Table properties (description, resource)
|
void |
setTableProperty(java.lang.String tablePropName,
java.lang.String value)
Sets a property value
|
void |
setValueAt(int row,
int col,
java.lang.String value)
Sets the value of a cell
|
public java.lang.String[] getTableProperties()
public void setTableProperties(java.lang.String[] properties)
public void setTableProperties(java.util.ArrayList fieldPropertyNames, java.util.ArrayList fieldPropertyValues)
fieldPropertyNames
- VectorfieldPropertyValues
- Vectorpublic java.lang.String getTableProperty(java.lang.String tablePropName)
tablePropName
- Stringpublic void setTableProperty(java.lang.String tablePropName, java.lang.String value)
tablePropName
- Stringvalue
- Stringpublic java.lang.String[] getRow(int index)
index
- intpublic void addRow(java.lang.String[] row)
row
- String[]public void addRow(java.util.ArrayList values)
values
- String[]public void setRow(int index, java.lang.String[] values)
index
- intvalues
- String[]public java.lang.String getValueAt(int row, int col)
row
- intcol
- intpublic void setValueAt(int row, int col, java.lang.String value)
row
- intcol
- intvalue
- Stringpublic java.lang.String[] getProperties(int col)
col
- intpublic void getProperties(int col, java.lang.String[] values)
col
- intvalues
- String[]public java.lang.String getProperties(int col, java.lang.String propName)
col
- intpropName
- Stringpublic void setProperty(int col, java.lang.String propName, java.lang.String value)
col
- intpropName
- Stringvalue
- Stringpublic void setDescription(java.lang.String description)
public java.lang.String getDescription()
public void setId(java.lang.String id)
id
- Stringpublic java.lang.String getId()
public void setName(java.lang.String name)
name
- Stringpublic java.lang.String getName()
public int getRowCount()