Class DataTableView

  • Direct Known Subclasses:
    SnapTableView

    public class DataTableView
    extends java.lang.Object
    This class represents a fetch of a set of data table rows for a given query.
    • Constructor Summary

      Constructors 
      Constructor Description
      DataTableView()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addRow​(Row aRow)
      Adds a row.
      protected Query createQuery()
      Creates the default query.
      java.lang.String getName()
      Returns the table view name.
      Query getQuery()
      Returns the query.
      java.util.List<Row> getRows()
      Returns the list of rows for this table view.
      protected java.util.List<Row> getRowsImpl()
      Returns the list of rows for this table view.
      WebSite getSite()
      Returns the data site.
      DataTable getTable()
      Returns the table.
      Entity getTableEntity()
      Returns the entity for the table file.
      boolean isRowsSet()
      Returns whether rows for this table view have been set.
      void refresh()
      Clears existing objects from this table.
      protected void removeRow​(Row aRow)
      Removes a row.
      void setName​(java.lang.String aName)
      Sets the table view name.
      void setQuery​(Query aQuery)
      Sets the query.
      protected void setTable​(DataTable aTable)
      Returns the table.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataTableView

        public DataTableView()
    • Method Detail

      • getSite

        public WebSite getSite()
        Returns the data site.
      • getTable

        public DataTable getTable()
        Returns the table.
      • setTable

        protected void setTable​(DataTable aTable)
        Returns the table.
      • getTableEntity

        public Entity getTableEntity()
        Returns the entity for the table file.
      • getName

        public java.lang.String getName()
        Returns the table view name.
      • setName

        public void setName​(java.lang.String aName)
        Sets the table view name.
      • getQuery

        public Query getQuery()
        Returns the query.
      • setQuery

        public void setQuery​(Query aQuery)
        Sets the query.
      • createQuery

        protected Query createQuery()
        Creates the default query.
      • isRowsSet

        public boolean isRowsSet()
        Returns whether rows for this table view have been set.
      • getRows

        public java.util.List<Row> getRows()
        Returns the list of rows for this table view.
      • getRowsImpl

        protected java.util.List<Row> getRowsImpl()
        Returns the list of rows for this table view.
      • addRow

        protected void addRow​(Row aRow)
        Adds a row.
      • removeRow

        protected void removeRow​(Row aRow)
        Removes a row.
      • refresh

        public void refresh()
        Clears existing objects from this table.