Package cds.table
Class TableModel
java.lang.Object
cds.table.TableModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a row to the tablevoid
Adds a row to the tablegetId()
getName()
String[]
getProperties
(int col) Returns the property name list of a column (VOTable FIELD content for example (name, ID, unit, description, UCD, ...)getProperties
(int col, String propName) Returns the value of a given columnvoid
getProperties
(int col, String[] values) Sets the property name list of a column (VOTable FIELD content for example (name, ID, unit, description, UCD, ...)String[]
getRow
(int index) Returns a row value of the tableint
String[]
Returns the Table properties (description, resource)getTableProperty
(String tablePropName) Returns a property valuegetValueAt
(int row, int col) Returns the value of a cellvoid
setDescription
(String description) void
void
void
setProperty
(int col, String propName, String value) Returns the value of a given columnvoid
Sets (replace) a row value of the tablevoid
setTableProperties
(String[] properties) Sets the Table properties (description, resource)void
setTableProperties
(ArrayList fieldPropertyNames, ArrayList fieldPropertyValues) void
setTableProperty
(String tablePropName, String value) Sets a property valuevoid
setValueAt
(int row, int col, String value) Sets the value of a cell
-
Constructor Details
-
TableModel
public TableModel()
-
-
Method Details
-
getTableProperties
Returns the Table properties (description, resource)- Returns:
- String[]
-
setTableProperties
Sets the Table properties (description, resource) -
setTableProperties
- Parameters:
fieldPropertyNames
- VectorfieldPropertyValues
- Vector
-
getTableProperty
Returns a property value- Parameters:
tablePropName
- String- Returns:
- String
-
setTableProperty
Sets a property value- Parameters:
tablePropName
- Stringvalue
- String
-
getRow
Returns a row value of the table- Parameters:
index
- int- Returns:
- String[]
-
addRow
Adds a row to the table- Parameters:
row
- String[]
-
addRow
Adds a row to the table- Parameters:
values
- String[]
-
setRow
Sets (replace) a row value of the table- Parameters:
index
- intvalues
- String[]
-
getValueAt
Returns the value of a cell- Parameters:
row
- intcol
- int- Returns:
- String
-
setValueAt
Sets the value of a cell- Parameters:
row
- intcol
- intvalue
- String
-
getProperties
Returns the property name list of a column (VOTable FIELD content for example (name, ID, unit, description, UCD, ...)- Parameters:
col
- int- Returns:
- String[]
-
getProperties
Sets the property name list of a column (VOTable FIELD content for example (name, ID, unit, description, UCD, ...)- Parameters:
col
- intvalues
- String[]
-
getProperties
Returns the value of a given column- Parameters:
col
- intpropName
- String- Returns:
- String
-
setProperty
Returns the value of a given column- Parameters:
col
- intpropName
- Stringvalue
- String
-
setDescription
-
getDescription
- Returns:
- String
-
setId
- Parameters:
id
- String
-
getId
- Returns:
- String
-
setName
- Parameters:
name
- String
-
getName
- Returns:
- String
-
getRowCount
public int getRowCount()- Returns:
- int
-