Package cds.table

Class TableModel

java.lang.Object
cds.table.TableModel

public final class TableModel extends Object
  • Constructor Details

    • TableModel

      public TableModel()
  • Method Details

    • getTableProperties

      public String[] getTableProperties()
      Returns the Table properties (description, resource)
      Returns:
      String[]
    • setTableProperties

      public void setTableProperties(String[] properties)
      Sets the Table properties (description, resource)
    • setTableProperties

      public void setTableProperties(ArrayList fieldPropertyNames, ArrayList fieldPropertyValues)
      Parameters:
      fieldPropertyNames - Vector
      fieldPropertyValues - Vector
    • getTableProperty

      public String getTableProperty(String tablePropName)
      Returns a property value
      Parameters:
      tablePropName - String
      Returns:
      String
    • setTableProperty

      public void setTableProperty(String tablePropName, String value)
      Sets a property value
      Parameters:
      tablePropName - String
      value - String
    • getRow

      public String[] getRow(int index)
      Returns a row value of the table
      Parameters:
      index - int
      Returns:
      String[]
    • addRow

      public void addRow(String[] row)
      Adds a row to the table
      Parameters:
      row - String[]
    • addRow

      public void addRow(ArrayList values)
      Adds a row to the table
      Parameters:
      values - String[]
    • setRow

      public void setRow(int index, String[] values)
      Sets (replace) a row value of the table
      Parameters:
      index - int
      values - String[]
    • getValueAt

      public String getValueAt(int row, int col)
      Returns the value of a cell
      Parameters:
      row - int
      col - int
      Returns:
      String
    • setValueAt

      public void setValueAt(int row, int col, String value)
      Sets the value of a cell
      Parameters:
      row - int
      col - int
      value - String
    • getProperties

      public String[] getProperties(int col)
      Returns the property name list of a column (VOTable FIELD content for example (name, ID, unit, description, UCD, ...)
      Parameters:
      col - int
      Returns:
      String[]
    • getProperties

      public void getProperties(int col, String[] values)
      Sets the property name list of a column (VOTable FIELD content for example (name, ID, unit, description, UCD, ...)
      Parameters:
      col - int
      values - String[]
    • getProperties

      public String getProperties(int col, String propName)
      Returns the value of a given column
      Parameters:
      col - int
      propName - String
      Returns:
      String
    • setProperty

      public void setProperty(int col, String propName, String value)
      Returns the value of a given column
      Parameters:
      col - int
      propName - String
      value - String
    • setDescription

      public void setDescription(String description)
    • getDescription

      public String getDescription()
      Returns:
      String
    • setId

      public void setId(String id)
      Parameters:
      id - String
    • getId

      public String getId()
      Returns:
      String
    • setName

      public void setName(String name)
      Parameters:
      name - String
    • getName

      public String getName()
      Returns:
      String
    • getRowCount

      public int getRowCount()
      Returns:
      int