Package com.inductiveautomation.snap.web
Class DataTableView
- java.lang.Object
- 
- com.inductiveautomation.snap.web.DataTableView
 
- 
- Direct Known Subclasses:
- SnapTableView
 
 public class DataTableView extends java.lang.ObjectThis class represents a fetch of a set of data table rows for a given query.
- 
- 
Constructor SummaryConstructors Constructor Description DataTableView()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddRow(Row aRow)Adds a row.protected QuerycreateQuery()Creates the default query.java.lang.StringgetName()Returns the table view name.QuerygetQuery()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.WebSitegetSite()Returns the data site.DataTablegetTable()Returns the table.EntitygetTableEntity()Returns the entity for the table file.booleanisRowsSet()Returns whether rows for this table view have been set.voidrefresh()Clears existing objects from this table.protected voidremoveRow(Row aRow)Removes a row.voidsetName(java.lang.String aName)Sets the table view name.voidsetQuery(Query aQuery)Sets the query.protected voidsetTable(DataTable aTable)Returns the table.
 
- 
- 
- 
Method Detail- 
getSitepublic WebSite getSite() Returns the data site.
 - 
getTablepublic DataTable getTable() Returns the table.
 - 
setTableprotected void setTable(DataTable aTable) Returns the table.
 - 
getTableEntitypublic Entity getTableEntity() Returns the entity for the table file.
 - 
getNamepublic java.lang.String getName() Returns the table view name.
 - 
setNamepublic void setName(java.lang.String aName) Sets the table view name.
 - 
getQuerypublic Query getQuery() Returns the query.
 - 
setQuerypublic void setQuery(Query aQuery) Sets the query.
 - 
createQueryprotected Query createQuery() Creates the default query.
 - 
isRowsSetpublic boolean isRowsSet() Returns whether rows for this table view have been set.
 - 
getRowspublic java.util.List<Row> getRows() Returns the list of rows for this table view.
 - 
getRowsImplprotected java.util.List<Row> getRowsImpl() Returns the list of rows for this table view.
 - 
addRowprotected void addRow(Row aRow) Adds a row.
 - 
removeRowprotected void removeRow(Row aRow) Removes a row.
 - 
refreshpublic void refresh() Clears existing objects from this table.
 
- 
 
-