Class DataTableView

java.lang.Object
com.inductiveautomation.snap.web.DataTableView
Direct Known Subclasses:
SnapTableView

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

    • DataTableView

      public DataTableView()
  • Method Details

    • 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 String getName()
      Returns the table view name.
    • setName

      public void setName(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 List<Row> getRows()
      Returns the list of rows for this table view.
    • getRowsImpl

      protected 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.