Package com.inductiveautomation.snap.web
Class DataTable
- java.lang.Object
- 
- com.inductiveautomation.snap.web.DataTable
 
- 
- Direct Known Subclasses:
- SnapTable
 
 public class DataTable extends java.lang.ObjectA class to front for a table of data.
- 
- 
Constructor SummaryConstructors Constructor Description DataTable()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLocalRow(Row aRow)Adds a local row.protected DataTableViewcreateTableView()Creates a new table view.EntitygetEntity()Returns the entity for this table.RowgetLocalRow(java.lang.Object aPrimaryValue)Returns a local row for a primary value.java.lang.StringgetName()Returns the table name.WebSitegetSite()Returns the data site for this table.DataTableViewgetTableView()Returns the default view for this table.DataTableViewgetTableView(java.lang.String aName)Returns a named table view.DataTableViewgetTableView(java.lang.String aName, boolean doCreate)Returns a named table view.java.util.List<DataTableView>getTableViews()Returns the known table views.voidrefresh()Clears existing objects from this table.protected voidremoveLocalRow(Row aRow)Removes a local row.protected voidsetEntity(Entity anEntity)Sets the entity.protected voidsetSite(WebSite aSite)Returns the data site for this table.
 
- 
- 
- 
Method Detail- 
getSitepublic WebSite getSite() Returns the data site for this table.
 - 
setSiteprotected void setSite(WebSite aSite) Returns the data site for this table.
 - 
getNamepublic java.lang.String getName() Returns the table name.
 - 
getEntitypublic Entity getEntity() Returns the entity for this table.
 - 
setEntityprotected void setEntity(Entity anEntity) Sets the entity.
 - 
getTableViewpublic DataTableView getTableView() Returns the default view for this table.
 - 
getTableViewspublic java.util.List<DataTableView> getTableViews() Returns the known table views.
 - 
getTableViewpublic DataTableView getTableView(java.lang.String aName) Returns a named table view.
 - 
getTableViewpublic DataTableView getTableView(java.lang.String aName, boolean doCreate) Returns a named table view.
 - 
createTableViewprotected DataTableView createTableView() Creates a new table view.
 - 
getLocalRowpublic Row getLocalRow(java.lang.Object aPrimaryValue) Returns a local row for a primary value.
 - 
addLocalRowprotected void addLocalRow(Row aRow) Adds a local row.
 - 
removeLocalRowprotected void removeLocalRow(Row aRow) Removes a local row.
 - 
refreshpublic void refresh() Clears existing objects from this table.
 
- 
 
-