T - public abstract class AbstractDataView<T> extends Object implements DataView<T>
| Modifier and Type | Field and Description |
|---|---|
protected JsTableElement |
$table |
protected com.google.gwt.event.shared.HandlerRegistration |
attachHandler |
protected Column<T,?> |
autoSortColumn |
protected Components<CategoryComponent> |
categories |
protected ComponentFactory<? extends CategoryComponent,String> |
categoryFactory |
protected int |
categoryHeight |
protected List<Column<T,?>> |
columns |
protected gwt.material.design.jquery.client.api.JQueryElement |
container |
protected DataSource<T> |
dataSource |
protected DataDisplay<T> |
display |
protected TableRow |
headerRow |
protected List<TableHeader> |
headers |
protected String |
height |
protected String |
id |
protected com.google.gwt.view.client.ProvidesKey<T> |
keyProvider |
protected int |
longPressDuration |
protected gwt.material.design.jquery.client.api.JQueryElement |
maskElement |
static String |
maskHtml |
static String |
ORPHAN_PATTERN |
protected Components<RowComponent<T>> |
pendingRows |
protected gwt.material.design.client.ui.MaterialProgress |
progressWidget |
protected com.google.gwt.view.client.Range |
range |
protected boolean |
redraw |
protected boolean |
redrawCategories |
protected Renderer<T> |
renderer |
protected boolean |
rendering |
protected RowComponentFactory<T> |
rowFactory |
protected Components<RowComponent<T>> |
rows |
protected SortContext<T> |
sortContext |
protected JsTableSubHeaders |
subheaderLib |
protected Table |
table |
protected gwt.material.design.jquery.client.api.JQueryElement |
tableBody |
protected gwt.material.design.client.base.MaterialWidget |
tbody |
protected gwt.material.design.client.base.MaterialWidget |
thead |
protected gwt.material.design.jquery.client.api.JQueryElement |
topPanel |
protected int |
totalRows |
static String |
transitionEvents |
| Constructor and Description |
|---|
AbstractDataView() |
AbstractDataView(com.google.gwt.view.client.ProvidesKey<T> keyProvider) |
AbstractDataView(String id) |
AbstractDataView(String id,
com.google.gwt.view.client.ProvidesKey<T> keyProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategory(CategoryComponent category)
Explicitly add a
CategoryComponent, which will be drawn to the table. |
void |
addCategory(String category)
Explicitly add a category, which will be drawn to the table.
|
void |
addColumn(Column<T,?> column)
Add a new column to the data view.
|
void |
addColumn(Column<T,?> column,
String header)
Add a new column to the data view.
|
protected void |
addHeader(int index,
TableHeader header) |
protected TableSubHeader |
bindCategoryEvents(TableSubHeader category) |
protected CategoryComponent |
buildCategoryComponent(RowComponent<T> row) |
protected CategoryComponent |
buildCategoryComponent(String categoryName) |
protected RowComponent<T> |
buildRowComponent(T data) |
void |
clearCategories()
Clear all categories.
|
protected void |
clearExpansions() |
void |
clearRows(boolean clearData)
Clear data rows.
|
void |
clearRowsAndCategories(boolean clearData)
Clear all rows and categories.
|
void |
closeCategory(CategoryComponent category)
Close an existing Category.
|
void |
closeCategory(String categoryName)
Close an existing Category.
|
void |
deselectRow(com.google.gwt.dom.client.Element row,
boolean fireEvent)
Unselect a selected row.
|
void |
destroy()
Destroy the data view.
|
void |
disableCategory(String categoryName)
Disable a data view category.
|
protected boolean |
doSort(SortContext<T> sortContext,
Components<RowComponent<T>> rows)
Perform a sort on the a set of
RowComponent's. |
void |
enableCategory(String categoryName)
Enable a data view category.
|
void |
fireEvent(com.google.gwt.event.shared.GwtEvent<?> event) |
protected Column<T,?> |
getAutoSortColumn()
Get the auto sorting column, or null if no column is auto sorting.
|
protected int |
getCalculatedRowHeight() |
List<CategoryComponent> |
getCategories()
Get all registered category components.
|
CategoryComponent |
getCategory(String name)
Get a stored data category by name.
|
ComponentFactory<? extends CategoryComponent,String> |
getCategoryFactory() |
int |
getCategoryHeight() |
protected int |
getCategoryRowCount(String category) |
int |
getColumnCount()
Get the number of columns in the table.
|
int |
getColumnOffset()
Get the offset column index (used when selection mode is on).
|
List<Column<T,?>> |
getColumns()
Get the current defined columns.
|
com.google.gwt.user.client.ui.Widget |
getContainer()
Get the displays main container.
|
protected List<T> |
getData() |
DataSource<T> |
getDataSource()
Get the configured data source.
|
List<TableHeader> |
getHeaders()
Get the list of rendered header widgets.
|
String |
getHeight()
Get the table body height.
|
protected List<CategoryComponent> |
getHiddenCategories() |
String |
getId()
Get the data views id.
|
com.google.gwt.view.client.ProvidesKey<T> |
getKeyProvider() |
int |
getLongPressDuration()
Get the long press duration requirement.
|
protected T |
getModelByRowElement(com.google.gwt.dom.client.Element rowElement) |
protected List<T> |
getModelsByRowElements(List<com.google.gwt.dom.client.Element> rowElements) |
List<CategoryComponent> |
getOpenCategories()
Get all the open
CategoryComponent's or null if categories are disabled. |
protected CategoryComponent.OrphanCategoryComponent |
getOrphansCategory()
Get the
CategoryComponent.OrphanCategoryComponent for orphan rows. |
protected List<CategoryComponent> |
getPassedCategories() |
gwt.material.design.client.ui.MaterialProgress |
getProgressWidget()
Get the data views progress widget.
|
Renderer<T> |
getRenderer() |
RowComponent<T> |
getRow(int index)
Get a row by its rendered index.
|
RowComponent<T> |
getRow(T model)
Get a row by its representing model.
|
RowComponent<T> |
getRowByModel(T model)
Get a models
RowComponent or null if not found. |
int |
getRowCount()
Get the exact count of all rows.
|
protected com.google.gwt.dom.client.Element |
getRowElementByModel(T model) |
RowComponentFactory<T> |
getRowFactory()
Get the views row factory.
|
int |
getRowHeight()
Get the maximum row height.
|
protected int |
getRowIndexByElement(com.google.gwt.dom.client.Element rowElement) |
List<RowComponent<T>> |
getRows()
Get all data views
RowComponent's. |
protected List<RowComponent<T>> |
getRowsByCategory(Components<RowComponent<T>> rows,
CategoryComponent category) |
List<T> |
getSelectedRowModels(boolean visibleOnly)
Get all the selected row models.
|
SelectionType |
getSelectionType()
Get the data views row selection type.
|
SortContext<T> |
getSortContext()
Get the data views current sort context, or null if no sort context is applied.
|
JsTableSubHeaders |
getSubheaderLib()
Get the subheader library API.
|
protected TableSubHeader |
getTableSubHeader(gwt.material.design.jquery.client.api.JQueryElement elem)
Get a stored data categories subheader by jquery element.
|
protected TableSubHeader |
getTableSubHeader(String name)
Get a stored data categories subheader by name.
|
int |
getTotalRows()
Get the configured total rows count.
|
Object |
getValueKey(T value)
Get the key for the specified value.
|
protected List<CategoryComponent> |
getVisibleCategories() |
int |
getVisibleItemCount()
Get the visible item count of the data view.
|
com.google.gwt.view.client.Range |
getVisibleRange()
Get the range of visible rows.
|
boolean |
hasCategory(String categoryName)
Has this data view got an existing
CategoryComponent with given name. |
boolean |
hasDeselectedRows(boolean visibleOnly)
Does this view have unselected rows.
|
boolean |
hasSelectedRows(boolean visibleOnly)
Does this view have selected rows.
|
void |
insertColumn(int beforeIndex,
Column<T,?> column,
String header)
Inserts a column into the table at the specified index.
|
boolean |
isCategoryEmpty(CategoryComponent category)
Check if a category has data to provide.
|
boolean |
isHeaderVisible(int colIndex)
Check if a header with the given index is visible.
|
boolean |
isLoadMask()
Is the data views loading mask applied.
|
boolean |
isRedraw()
Is redrawing the data view.
|
boolean |
isRendering()
Is the data view rendering.
|
boolean |
isSetup()
Is the data view setup.
|
boolean |
isShiftDown() |
boolean |
isUseCategories()
Is the data view using categories where possible.
|
boolean |
isUseLoadOverlay()
Is the data view using loading overlay mask.
|
boolean |
isUseRowExpansion()
Is the data view using row expansion.
|
boolean |
isUseStickyHeader()
True if we are using sticky table header.
|
protected boolean |
isWithinView(int start,
int length) |
protected boolean |
isWithinView(int start,
int length,
boolean canOverflow) |
void |
loaded(int startIndex,
List<T> data)
Data views loader has loaded data for use.
|
protected boolean |
maybeApplyAutoSortColumn()
Check and apply the auto sort column
Column.setAutoSort(boolean)
if no sort has been invoked. |
protected void |
onConstructed()
Called after the data view is constructed.
|
protected void |
onSetup(TableScaffolding scaffolding) |
void |
openCategory(CategoryComponent category)
Open an existing Category.
|
void |
openCategory(String categoryName)
Open an existing Category.
|
protected void |
prepareRows()
Prepare all row specific functionality.
|
void |
refresh()
Invoke a view refresh.
|
protected void |
reindexColumns() |
void |
removeColumn(int colIndex)
Remove an existing column by index.
|
void |
removeColumn(int colIndex,
boolean hardRemove) |
void |
removeColumns()
Remove all columns.
|
protected void |
removeHeader(int index) |
void |
render(Components<Component<?>> components)
Render the data view components to DOM.
|
protected void |
renderCategory(CategoryComponent category) |
void |
renderColumn(Column<T,?> column) |
protected void |
renderColumns() |
protected void |
renderComponent(Component<?> component) |
protected boolean |
renderRows(Components<RowComponent<T>> rows)
Compile list of
RowComponent's and invoke a render. |
void |
selectAllRows(boolean select)
Select or deselect all rows.
|
void |
selectAllRows(boolean select,
boolean fireEvent)
Select or deselect all rows.
|
void |
selectRow(com.google.gwt.dom.client.Element row,
boolean fireEvent)
Select a given row.
|
void |
setCategoryFactory(ComponentFactory<? extends CategoryComponent,String> categoryFactory)
Set your own custom
CategoryComponentFactory to generate your categories. |
void |
setDataSource(DataSource<T> dataSource)
Set a
DataSource for data loading. |
void |
setDisplay(DataDisplay<T> display)
Set the data views display view.
|
void |
setHeight(String height)
Set the table body height.
|
void |
setLoadMask(boolean loadMask)
Set the data views loading mask.
|
void |
setLongPressDuration(int longPressDuration)
Set the long press duration requirement.
|
void |
setRedraw(boolean redraw)
Set redraw data view elements.
|
protected void |
setRedrawCategories(boolean redrawCategories) |
void |
setRenderer(Renderer<T> renderer)
Set your own custom renderer.
|
void |
setRowData(int start,
List<? extends T> values)
Set values associated with the rows in the visible range.
|
void |
setRowFactory(RowComponentFactory<T> rowFactory)
Set your own custom
RowComponentFactory to generate your row components. |
void |
setRowHeight(int rowHeight)
Set maximum row height.
|
void |
setSelectionType(SelectionType selectionType)
Set the data views row selection type.
|
void |
setTotalRows(int totalRows)
Set the total row count.
|
void |
setup(TableScaffolding scaffolding)
Setup the data view.
|
protected void |
setupHeaderSelectionBox() |
protected void |
setupShiftDetection() |
protected void |
setupStickyHeader() |
protected void |
setupSubHeaders() |
void |
setUseCategories(boolean useCategories)
Allow the data view to generate categories,
or use added categories for row data.
|
void |
setUseLoadOverlay(boolean useLoadOverlay)
Use the loading overlay mask.
|
void |
setUseRowExpansion(boolean useRowExpansion)
Use row expansion functionality, giving the user
a way to expand rows for extra information.
|
void |
setUseStickyHeader(boolean stickyHeader)
Enable the use of sticky table header bar.
|
void |
setVisibleRange(int start,
int length)
Set the visible range or rows.
|
void |
setVisibleRange(com.google.gwt.view.client.Range range)
Set the visible range or rows.
|
protected void |
setVisibleRange(com.google.gwt.view.client.Range range,
boolean forceRangeChangeEvent) |
void |
sort(Column<T,?> column)
Sort a column.
|
void |
sort(Column<T,?> column,
SortDir dir)
Sort a column.
|
protected Components<RowComponent<T>> |
sort(Components<RowComponent<T>> rows,
TableHeader th,
Column<T,?> column,
int index) |
protected Components<RowComponent<T>> |
sort(Components<RowComponent<T>> rows,
TableHeader th,
Column<T,?> column,
int index,
boolean renderRows) |
protected Components<RowComponent<T>> |
sort(Components<RowComponent<T>> rows,
TableHeader th,
Column<T,?> column,
int index,
SortDir dir) |
protected Components<RowComponent<T>> |
sort(Components<RowComponent<T>> rows,
TableHeader th,
Column<T,?> column,
int index,
SortDir dir,
boolean renderRows) |
void |
sort(int columnIndex)
Sort a column matching the given index (the index excludes the selection box row).
|
void |
sort(int columnIndex,
SortDir dir)
Sort a column matching the given index (the index excludes the selection box row).
|
void |
toggleRowSelect(gwt.material.design.jquery.client.api.Event event,
com.google.gwt.dom.client.Element row)
Select a row by given element.
|
void |
toggleRowSelect(gwt.material.design.jquery.client.api.Event event,
com.google.gwt.dom.client.Element row,
boolean fireEvent)
Select a row by given element.
|
void |
updateCheckAllInputState() |
protected void |
updateCheckAllInputState(gwt.material.design.jquery.client.api.JQueryElement input) |
void |
updateRow(T model)
Update a models row within the table.
|
protected void |
updateSortContext(TableHeader th,
Column<T,?> column) |
protected void |
updateSortContext(TableHeader th,
Column<T,?> column,
SortDir dir) |
protected DataDisplay<T> display
protected DataSource<T> dataSource
protected SortContext<T> sortContext
protected Column<T,?> autoSortColumn
protected RowComponentFactory<T> rowFactory
protected ComponentFactory<? extends CategoryComponent,String> categoryFactory
protected com.google.gwt.view.client.ProvidesKey<T> keyProvider
protected JsTableSubHeaders subheaderLib
protected int categoryHeight
protected boolean rendering
protected boolean redraw
protected boolean redrawCategories
protected gwt.material.design.client.base.MaterialWidget thead
protected gwt.material.design.client.base.MaterialWidget tbody
protected gwt.material.design.client.ui.MaterialProgress progressWidget
protected gwt.material.design.jquery.client.api.JQueryElement container
protected JsTableElement $table
protected gwt.material.design.jquery.client.api.JQueryElement maskElement
protected gwt.material.design.jquery.client.api.JQueryElement tableBody
protected gwt.material.design.jquery.client.api.JQueryElement topPanel
protected com.google.gwt.view.client.Range range
protected int totalRows
protected int longPressDuration
protected final Components<RowComponent<T>> rows
protected final Components<RowComponent<T>> pendingRows
protected final Components<CategoryComponent> categories
protected final List<TableHeader> headers
protected com.google.gwt.event.shared.HandlerRegistration attachHandler
public static final String ORPHAN_PATTERN
public static final String maskHtml
public static final String transitionEvents
public AbstractDataView()
public AbstractDataView(String id)
public AbstractDataView(com.google.gwt.view.client.ProvidesKey<T> keyProvider)
public AbstractDataView(String id, com.google.gwt.view.client.ProvidesKey<T> keyProvider)
protected void onConstructed()
setup(TableScaffolding).public void render(Components<Component<?>> components)
DataViewprotected boolean renderRows(Components<RowComponent<T>> rows)
RowComponent's and invoke a render.
Controls the building of category components and custom components.
Which then render(Components) is invoked to perform DOM render.
Rows which are already rendered are reprocessed based on their equals method.
If the data is equal to the row in the same index it use the existing row.rows - list of rows to be rendered against the existing rows.protected void renderComponent(Component<?> component)
protected void renderColumns()
public void renderColumn(Column<T,?> column)
public void setRenderer(Renderer<T> renderer)
HasRendererBaseRenderer for the standard rendering.setRenderer in interface HasRenderer<T>public Renderer<T> getRenderer()
public void setDataSource(DataSource<T> dataSource)
HasDataSourceDataSource for data loading.setDataSource in interface HasDataSource<T>public DataSource<T> getDataSource()
HasDataSourcegetDataSource in interface HasDataSource<T>public JsTableSubHeaders getSubheaderLib()
DataViewgetSubheaderLib in interface DataView<T>public void setup(TableScaffolding scaffolding) throws Exception
DataViewprotected void onSetup(TableScaffolding scaffolding)
protected void prepareRows()
protected void setupStickyHeader()
protected void setupSubHeaders()
protected boolean isWithinView(int start, int length)
protected boolean isWithinView(int start, int length, boolean canOverflow)
public int getRowCount()
HasRowsgetRowCount in interface HasRows<T>public com.google.gwt.view.client.Range getVisibleRange()
HasRowsgetVisibleRange in interface HasRows<T>HasRows.setVisibleRange(Range),
HasRows.setVisibleRange(int, int)public void setVisibleRange(int start, int length)
HasRowsHasRows.setVisibleRange(Range).setVisibleRange in interface HasRows<T>start - the start indexlength - the lengthHasRows.getVisibleRange()public void setVisibleRange(com.google.gwt.view.client.Range range)
HasRowssetVisibleRange in interface HasRows<T>range - the visible rangeHasRows.getVisibleRange()protected void setVisibleRange(com.google.gwt.view.client.Range range, boolean forceRangeChangeEvent)
public boolean isHeaderVisible(int colIndex)
DataViewisHeaderVisible in interface DataView<T>public void addColumn(Column<T,?> column)
HasColumnsaddColumn in interface HasColumns<T>column - the column objectpublic void addColumn(Column<T,?> column, String header)
HasColumnsaddColumn in interface HasColumns<T>column - the column objectpublic void insertColumn(int beforeIndex, Column<T,?> column, String header)
HasColumnsinsertColumn in interface HasColumns<T>beforeIndex - the index to insert the columncolumn - the column to be addedprotected void updateSortContext(TableHeader th, Column<T,?> column)
protected void updateSortContext(TableHeader th, Column<T,?> column, SortDir dir)
public void sort(int columnIndex)
HasColumnssort in interface HasColumns<T>columnIndex - valid index to the user added Columns.public void sort(int columnIndex, SortDir dir)
HasColumnssort in interface HasColumns<T>columnIndex - valid index to the user added Columns.dir - the sort direction or null for auto reversing.public void sort(Column<T,?> column)
HasColumnssort in interface HasColumns<T>column - matching column that was added via ##addColumn(Column).public void sort(Column<T,?> column, SortDir dir)
HasColumnssort in interface HasColumns<T>column - matching column that was added via ##addColumn(Column).dir - the sort direction or null for auto reversing.protected Components<RowComponent<T>> sort(Components<RowComponent<T>> rows, TableHeader th, Column<T,?> column, int index)
protected Components<RowComponent<T>> sort(Components<RowComponent<T>> rows, TableHeader th, Column<T,?> column, int index, SortDir dir)
protected Components<RowComponent<T>> sort(Components<RowComponent<T>> rows, TableHeader th, Column<T,?> column, int index, boolean renderRows)
protected Components<RowComponent<T>> sort(Components<RowComponent<T>> rows, TableHeader th, Column<T,?> column, int index, SortDir dir, boolean renderRows)
protected boolean doSort(SortContext<T> sortContext, Components<RowComponent<T>> rows)
RowComponent's.
Sorting will check for each components category and sort per category if found.public void removeColumn(int colIndex)
HasColumnsremoveColumn in interface HasColumns<T>colIndex - the columns placement indexpublic void removeColumn(int colIndex, boolean hardRemove)
public void removeColumns()
HasColumnsremoveColumns in interface HasColumns<T>public List<Column<T,?>> getColumns()
HasColumnsgetColumns in interface HasColumns<T>public int getColumnOffset()
HasColumnsgetColumnOffset in interface HasColumns<T>public int getColumnCount()
public SelectionType getSelectionType()
HasRowsgetSelectionType in interface HasRows<T>public void setSelectionType(SelectionType selectionType)
HasRowssetSelectionType in interface HasRows<T>protected void setupHeaderSelectionBox()
protected void setupShiftDetection()
protected void reindexColumns()
public boolean isSetup()
DataViewpublic boolean isRendering()
DataViewisRendering in interface DataView<T>public void setUseStickyHeader(boolean stickyHeader)
ViewSettingssetUseStickyHeader in interface ViewSettingspublic boolean isUseStickyHeader()
ViewSettingsisUseStickyHeader in interface ViewSettingspublic void selectAllRows(boolean select)
HasRowsselectAllRows in interface HasRows<T>select - true will select, false with deselectpublic void selectAllRows(boolean select, boolean fireEvent)
HasRowsselectAllRows in interface HasRows<T>select - true will select, false with deselectfireEvent - fire the '' event.public void toggleRowSelect(gwt.material.design.jquery.client.api.Event event, com.google.gwt.dom.client.Element row)
event - sourced even (can be null)row - element of the row selectionpublic void toggleRowSelect(gwt.material.design.jquery.client.api.Event event, com.google.gwt.dom.client.Element row, boolean fireEvent)
event - sourced even (can be null)row - element of the row selectionfireEvent - fire the row select event.public void selectRow(com.google.gwt.dom.client.Element row, boolean fireEvent)
HasRowspublic void deselectRow(com.google.gwt.dom.client.Element row, boolean fireEvent)
HasRowsdeselectRow in interface HasRows<T>public boolean hasDeselectedRows(boolean visibleOnly)
HasRowshasDeselectedRows in interface HasRows<T>visibleOnly - should we restrict this check to visible rows only.public boolean hasSelectedRows(boolean visibleOnly)
HasRowshasSelectedRows in interface HasRows<T>visibleOnly - should we restrict this check to visible rows only.public List<T> getSelectedRowModels(boolean visibleOnly)
HasRowsgetSelectedRowModels in interface HasRows<T>visibleOnly - should we restrict this check to visible rows only.public void setRowData(int start, List<? extends T> values)
HasRowssetRowData in interface HasRows<T>start - the start index of the datavalues - the values within the rangeprotected boolean maybeApplyAutoSortColumn()
Column.setAutoSort(boolean)
if no sort has been invoked.protected Column<T,?> getAutoSortColumn()
public ComponentFactory<? extends CategoryComponent,String> getCategoryFactory()
protected RowComponent<T> buildRowComponent(T data)
protected CategoryComponent buildCategoryComponent(RowComponent<T> row)
protected CategoryComponent buildCategoryComponent(String categoryName)
public Object getValueKey(T value)
value - the valuepublic com.google.gwt.view.client.ProvidesKey<T> getKeyProvider()
getKeyProvider in interface com.google.gwt.view.client.HasKeyProvider<T>public int getVisibleItemCount()
DataViewgetVisibleItemCount in interface DataView<T>public int getRowHeight()
HasRowsgetRowHeight in interface HasRows<T>public void setRowHeight(int rowHeight)
HasRowssetRowHeight in interface HasRows<T>protected int getCalculatedRowHeight()
public void addCategory(String category)
HasCategoriesaddCategory in interface HasCategoriescategory - The category name.public void addCategory(CategoryComponent category)
HasCategoriesCategoryComponent, which will be drawn to the table.
If the category already exists then it will be ignored.addCategory in interface HasCategoriescategory - The category data defined.protected void renderCategory(CategoryComponent category)
public boolean hasCategory(String categoryName)
HasCategoriesCategoryComponent with given name.hasCategory in interface HasCategoriespublic void disableCategory(String categoryName)
HasCategoriesdisableCategory in interface HasCategoriespublic void enableCategory(String categoryName)
HasCategoriesenableCategory in interface HasCategoriespublic List<CategoryComponent> getCategories()
HasCategoriesgetCategories in interface HasCategoriespublic List<CategoryComponent> getOpenCategories()
HasCategoriesCategoryComponent's or null if categories are disabled.getOpenCategories in interface HasCategoriespublic boolean isCategoryEmpty(CategoryComponent category)
HasCategoriesisCategoryEmpty in interface HasCategoriespublic SortContext<T> getSortContext()
DataViewgetSortContext in interface DataView<T>public boolean isRedraw()
DataViewpublic void setRedraw(boolean redraw)
DataViewpublic void updateRow(T model)
HasRowspublic RowComponent<T> getRow(T model)
HasRowspublic RowComponent<T> getRow(int index)
HasRowspublic RowComponent<T> getRowByModel(T model)
HasRowsRowComponent or null if not found.getRowByModel in interface HasRows<T>model - a model with a valid equals method.RowComponent.protected int getRowIndexByElement(com.google.gwt.dom.client.Element rowElement)
protected com.google.gwt.dom.client.Element getRowElementByModel(T model)
protected T getModelByRowElement(com.google.gwt.dom.client.Element rowElement)
protected List<T> getModelsByRowElements(List<com.google.gwt.dom.client.Element> rowElements)
protected List<RowComponent<T>> getRowsByCategory(Components<RowComponent<T>> rows, CategoryComponent category)
protected List<CategoryComponent> getHiddenCategories()
protected List<CategoryComponent> getVisibleCategories()
protected List<CategoryComponent> getPassedCategories()
public void setRowFactory(RowComponentFactory<T> rowFactory)
HasRowsRowComponentFactory to generate your row components.setRowFactory in interface HasRows<T>public RowComponentFactory<T> getRowFactory()
HasRowsgetRowFactory in interface HasRows<T>public void setCategoryFactory(ComponentFactory<? extends CategoryComponent,String> categoryFactory)
HasCategoriesCategoryComponentFactory to generate your categories.setCategoryFactory in interface HasCategoriespublic void setLoadMask(boolean loadMask)
DataViewsetLoadMask in interface DataView<T>public boolean isLoadMask()
DataViewisLoadMask in interface DataView<T>public gwt.material.design.client.ui.MaterialProgress getProgressWidget()
DataViewgetProgressWidget in interface DataView<T>public int getTotalRows()
HasRowsgetTotalRows in interface HasRows<T>public void setTotalRows(int totalRows)
HasRowssetTotalRows in interface HasRows<T>public boolean isUseCategories()
ViewSettingsisUseCategories in interface ViewSettingspublic void setUseCategories(boolean useCategories)
ViewSettingssetUseCategories in interface ViewSettingspublic boolean isUseLoadOverlay()
ViewSettingsisUseLoadOverlay in interface ViewSettingspublic void setUseLoadOverlay(boolean useLoadOverlay)
ViewSettingssetUseLoadOverlay in interface ViewSettingspublic boolean isUseRowExpansion()
ViewSettingsisUseRowExpansion in interface ViewSettingspublic void setUseRowExpansion(boolean useRowExpansion)
ViewSettingssetUseRowExpansion in interface ViewSettingspublic int getLongPressDuration()
ViewSettingsgetLongPressDuration in interface ViewSettingspublic void setLongPressDuration(int longPressDuration)
ViewSettingssetLongPressDuration in interface ViewSettingspublic void loaded(int startIndex, List<T> data)
HasDataSourceloaded in interface HasDataSource<T>public com.google.gwt.user.client.ui.Widget getContainer()
DataViewgetContainer in interface DataView<T>public void setDisplay(DataDisplay<T> display)
DataViewsetDisplay in interface DataView<T>public final void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
fireEvent in interface com.google.gwt.event.shared.HasHandlersprotected TableSubHeader bindCategoryEvents(TableSubHeader category)
public void updateCheckAllInputState()
protected void updateCheckAllInputState(gwt.material.design.jquery.client.api.JQueryElement input)
public List<RowComponent<T>> getRows()
HasRowsRowComponent's.public CategoryComponent getCategory(String name)
getCategory in interface HasCategoriesname - name of the category component.protected CategoryComponent.OrphanCategoryComponent getOrphansCategory()
CategoryComponent.OrphanCategoryComponent for orphan rows.public int getCategoryHeight()
public void openCategory(String categoryName)
HasCategoriesopenCategory in interface HasCategoriespublic void openCategory(CategoryComponent category)
HasCategoriesopenCategory in interface HasCategoriespublic void closeCategory(String categoryName)
HasCategoriescloseCategory in interface HasCategoriespublic void closeCategory(CategoryComponent category)
HasCategoriescloseCategory in interface HasCategoriesprotected TableSubHeader getTableSubHeader(String name)
protected TableSubHeader getTableSubHeader(gwt.material.design.jquery.client.api.JQueryElement elem)
protected void clearExpansions()
public void clearRows(boolean clearData)
HasRowspublic void clearCategories()
HasCategoriesclearCategories in interface HasCategoriespublic void clearRowsAndCategories(boolean clearData)
HasCategoriesclearRowsAndCategories in interface HasCategoriesclearData - should we also clear the stored data.public List<TableHeader> getHeaders()
DataViewgetHeaders in interface DataView<T>protected void addHeader(int index, TableHeader header)
protected void removeHeader(int index)
protected int getCategoryRowCount(String category)
protected void setRedrawCategories(boolean redrawCategories)
public void setHeight(String height)
ViewSettingssetHeight in interface ViewSettingspublic String getHeight()
ViewSettingsgetHeight in interface ViewSettingspublic boolean isShiftDown()
Copyright © 2018. All rights reserved.