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.Object
A class to front for a table of data.
-
-
Constructor Summary
Constructors Constructor Description DataTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addLocalRow(Row aRow)
Adds a local row.protected DataTableView
createTableView()
Creates a new table view.Entity
getEntity()
Returns the entity for this table.Row
getLocalRow(java.lang.Object aPrimaryValue)
Returns a local row for a primary value.java.lang.String
getName()
Returns the table name.WebSite
getSite()
Returns the data site for this table.DataTableView
getTableView()
Returns the default view for this table.DataTableView
getTableView(java.lang.String aName)
Returns a named table view.DataTableView
getTableView(java.lang.String aName, boolean doCreate)
Returns a named table view.java.util.List<DataTableView>
getTableViews()
Returns the known table views.void
refresh()
Clears existing objects from this table.protected void
removeLocalRow(Row aRow)
Removes a local row.protected void
setEntity(Entity anEntity)
Sets the entity.protected void
setSite(WebSite aSite)
Returns the data site for this table.
-
-
-
Method Detail
-
getSite
public WebSite getSite()
Returns the data site for this table.
-
setSite
protected void setSite(WebSite aSite)
Returns the data site for this table.
-
getName
public java.lang.String getName()
Returns the table name.
-
getEntity
public Entity getEntity()
Returns the entity for this table.
-
setEntity
protected void setEntity(Entity anEntity)
Sets the entity.
-
getTableView
public DataTableView getTableView()
Returns the default view for this table.
-
getTableViews
public java.util.List<DataTableView> getTableViews()
Returns the known table views.
-
getTableView
public DataTableView getTableView(java.lang.String aName)
Returns a named table view.
-
getTableView
public DataTableView getTableView(java.lang.String aName, boolean doCreate)
Returns a named table view.
-
createTableView
protected DataTableView createTableView()
Creates a new table view.
-
getLocalRow
public Row getLocalRow(java.lang.Object aPrimaryValue)
Returns a local row for a primary value.
-
addLocalRow
protected void addLocalRow(Row aRow)
Adds a local row.
-
removeLocalRow
protected void removeLocalRow(Row aRow)
Removes a local row.
-
refresh
public void refresh()
Clears existing objects from this table.
-
-