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 Summary
Constructors Constructor Description DataTableView()
-
Method Summary
All 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
-
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.
-
-