Class TableStructure

    • Constructor Detail

      • TableStructure

        public TableStructure​(java.lang.Class<? extends ITable<?>> tableObjectClass)
    • Method Detail

      • getKind

        public TableStructureKind getKind()
        Returns:
        TableStructureKind indicating if the table is single content or multiple content
      • getColumn

        public TableColumn getColumn​(java.lang.String columnName)
        Parameters:
        columnName - name of the column in table
        Returns:
        TableColumn of the column with the given name
      • getColumnNames

        public java.util.List<java.lang.String> getColumnNames()
        Returns:
        names of all columns
      • getValue

        public java.lang.Object getValue​(java.lang.Object tableRow,
                                         TableColumn column)
        This method retrieves the value of a table cell in a given row and column.
        Parameters:
        tableRow - an instance of the table row class matching the kind of the tableObjectClass
        column - model of the table column
        Returns:
        the value of the table cell at in given tableRow and column
        See Also:
        TableColumn.getValue(Object)
      • getValue

        public java.lang.Object getValue​(java.lang.Object tableRow,
                                         java.lang.String columnName)
        See Also:
        getValue(Object, TableColumn)
      • getValues

        public java.util.List<java.lang.Object> getValues​(java.lang.Object tableRow)
        Returns:
        a list of all values in tableRow
        See Also:
        getValue(Object, TableColumn)