public abstract class AbstractPackageTable extends Object
Modifier and Type | Field and Description |
---|---|
protected com.github.gwtbootstrap.client.ui.CellTable<Package> |
cellTables |
protected com.google.gwt.view.client.ListDataProvider<Package> |
dataProvider |
protected boolean |
showGroupId |
Constructor and Description |
---|
AbstractPackageTable(boolean showGroupId)
Instantiates a new abstract package table.
|
Modifier and Type | Method and Description |
---|---|
void |
addPackages(List<Package> packages)
Adds the packages.
|
com.github.gwtbootstrap.client.ui.CellTable<Package> |
getCellTables()
Gets the cell tables.
|
com.google.gwt.view.client.ListDataProvider<Package> |
getDataProvider()
Gets the data provider.
|
abstract void |
initTable(com.google.gwt.user.cellview.client.AbstractCellTable<Package> packageTable,
com.google.gwt.user.cellview.client.SimplePager pager,
com.github.gwtbootstrap.client.ui.Pagination pagination)
Inits the table.
|
boolean |
isShowGroupId()
Checks if is show group id.
|
void |
setDataProvider(com.google.gwt.view.client.ListDataProvider<Package> dataProvider)
Sets the data provider.
|
void |
setShowGroupId(boolean showGroupId)
Sets the show group id.
|
protected com.github.gwtbootstrap.client.ui.CellTable<Package> cellTables
protected com.google.gwt.view.client.ListDataProvider<Package> dataProvider
protected boolean showGroupId
public AbstractPackageTable(boolean showGroupId)
showGroupId
- the show group idpublic abstract void initTable(com.google.gwt.user.cellview.client.AbstractCellTable<Package> packageTable, com.google.gwt.user.cellview.client.SimplePager pager, com.github.gwtbootstrap.client.ui.Pagination pagination)
packageTable
- the package tablepager
- the pagerpagination
- the paginationpublic void addPackages(List<Package> packages)
packages
- the packagespublic com.github.gwtbootstrap.client.ui.CellTable<Package> getCellTables()
public com.google.gwt.view.client.ListDataProvider<Package> getDataProvider()
public boolean isShowGroupId()
public void setDataProvider(com.google.gwt.view.client.ListDataProvider<Package> dataProvider)
dataProvider
- the new data providerpublic void setShowGroupId(boolean showGroupId)
showGroupId
- the new show group idCopyright © 2016. All Rights Reserved.