Package cds.table
Class TableModel
java.lang.Object
cds.table.TableModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a row to the tablevoidAdds 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 columnvoidgetProperties(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 tableintString[]Returns the Table properties (description, resource)getTableProperty(String tablePropName) Returns a property valuegetValueAt(int row, int col) Returns the value of a cellvoidsetDescription(String description) voidvoidvoidsetProperty(int col, String propName, String value) Returns the value of a given columnvoidSets (replace) a row value of the tablevoidsetTableProperties(String[] properties) Sets the Table properties (description, resource)voidsetTableProperties(ArrayList fieldPropertyNames, ArrayList fieldPropertyValues) voidsetTableProperty(String tablePropName, String value) Sets a property valuevoidsetValueAt(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
-