protected abstract static class DeviceAdaptiveGrid.GridImpl
extends com.google.gwt.user.client.ui.SimplePanel
| Modifier and Type | Field and Description |
|---|---|
protected DeviceAdaptiveGridColumnDefinitions |
columnDefinitions |
protected String |
detailDialogTitle |
protected Grid |
grid |
| Modifier | Constructor and Description |
|---|---|
protected |
DeviceAdaptiveGrid.GridImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addBeforeCancelRowEditionHandler(BeforeCancelRowEditionHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addBeforeRowEditHandler(BeforeRowEditHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addBeforeSaveRowEditionHandler(BeforeSaveRowEditionHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addBeforeShowRowDetailsHandler(BeforeShowRowDetailsHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addCancelRowEditionHandler(CancelRowEditionHandler handler) |
void |
addColumnEditorValidator(String key,
ColumnEditorValidator columnEditorValidator)
Add a validator to a editable column
|
com.google.gwt.event.shared.HandlerRegistration |
addLoadRowDetailsHandler(LoadRowDetailsHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addRowClickHandler(RowClickHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addRowDoubleClickHandler(RowDoubleClickHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addRowEditHandler(RowEditHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addRowRenderHandler(RowRenderHandler handler) |
void |
addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)
On scroll event handler
|
com.google.gwt.event.shared.HandlerRegistration |
addShowRowDetailsHandler(ShowRowDetailsHandler handler) |
void |
clear() |
abstract com.google.gwt.user.client.ui.Widget |
getActionWidget(String key)
Retrieve the widget associated to the grid component
|
List<DataRow> |
getCurrentPageRows() |
int |
getCurrentPageSize() |
org.cruxframework.crux.core.client.datasource.PagedDataSource<?> |
getDataSource() |
String |
getDetailDialogTitle() |
protected ColumnDefinitions |
getGridColumnDefinitionsByDevice()
Retrieve the columns defined to a Large device
|
int |
getPageCount() |
DataRow |
getRow(com.google.gwt.user.client.ui.Widget w) |
RowSelectionModel |
getRowSelectionModel() |
List<DataRow> |
getSelectedRows() |
void |
goToPage(int page) |
void |
initGrid(DeviceAdaptiveGridColumnDefinitions columnDefinitions,
int pageSize,
RowSelectionModel rowSelection,
int cellSpacing,
boolean autoLoadData,
boolean stretchColumns,
boolean highlightRowOnMouseOver,
String emptyDataFilling,
boolean fixedCellSize,
String defaultSortingColumn,
Grid.SortingType defaultSortingType)
Initialize grid component
|
void |
initGrid(DeviceAdaptiveGridColumnDefinitions columnDefinitions,
int pageSize,
RowSelectionModel rowSelection,
int cellSpacing,
boolean autoLoadData,
boolean stretchColumns,
boolean highlightRowOnMouseOver,
String emptyDataFilling,
boolean fixedCellSize,
String defaultSortingColumn,
Grid.SortingType defaultSortingType,
boolean keepEditorOnClickDisabledRows)
Initialize grid component
|
void |
initGrid(DeviceAdaptiveGridColumnDefinitions columnDefinitions,
int pageSize,
RowSelectionModel rowSelection,
int cellSpacing,
boolean autoLoadData,
boolean stretchColumns,
boolean highlightRowOnMouseOver,
String emptyDataFilling,
boolean fixedCellSize,
String defaultSortingColumn,
Grid.SortingType defaultSortingType,
boolean keepEditorOnClickDisabledRows,
boolean showEditorButtons) |
void |
initGrid(DeviceAdaptiveGridColumnDefinitions columnDefinitions,
int pageSize,
RowSelectionModel rowSelection,
int cellSpacing,
boolean autoLoadData,
boolean stretchColumns,
boolean highlightRowOnMouseOver,
String emptyDataFilling,
boolean fixedCellSize,
String defaultSortingColumn,
Grid.SortingType defaultSortingType,
boolean keepEditorOnClickDisabledRows,
boolean showEditorButtons,
boolean freezeHeaders) |
void |
initGrid(DeviceAdaptiveGridColumnDefinitions columnDefinitions,
int pageSize,
RowSelectionModel rowSelection,
int cellSpacing,
boolean autoLoadData,
boolean stretchColumns,
boolean highlightRowOnMouseOver,
String emptyDataFilling,
boolean fixedCellSize,
String defaultSortingColumn,
Grid.SortingType defaultSortingType,
boolean keepEditorOnClickDisabledRows,
boolean showEditorButtons,
boolean freezeHeaders,
String detailDialogTitle) |
boolean |
isDataLoaded() |
void |
loadData() |
void |
nextPage() |
void |
previousPage() |
void |
refresh() |
void |
setDataSource(org.cruxframework.crux.core.client.datasource.PagedDataSource<?> dataSource) |
void |
setDataSource(org.cruxframework.crux.core.client.datasource.PagedDataSource<?> dataSource,
boolean autoLoadData) |
void |
setDetailDialogTitle(String title) |
void |
setHeight(String height) |
void |
setPager(Pager pager) |
void |
setRowSelectionModel(RowSelectionModel rowSelectionModel) |
void |
setWidth(String width) |
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidgetadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toStringprotected Grid grid
protected DeviceAdaptiveGridColumnDefinitions columnDefinitions
protected String detailDialogTitle
public void initGrid(DeviceAdaptiveGridColumnDefinitions columnDefinitions, int pageSize, RowSelectionModel rowSelection, int cellSpacing, boolean autoLoadData, boolean stretchColumns, boolean highlightRowOnMouseOver, String emptyDataFilling, boolean fixedCellSize, String defaultSortingColumn, Grid.SortingType defaultSortingType)
columnDefinitions - The definition of grid`s columnspageSize - The maximum size of a pagerowSelection - Row selection modecellSpacing - Space between cellsautoLoadData - Load data automaticallystretchColumns - Stretch columns to content, if neededhighlightRowOnMouseOver - Highlight row when the mouse cursor is over itemptyDataFilling - fixedCellSize - Fix the size of all cellsdefaultSortingColumn - The default column used to sort datadefaultSortingType - Sorting typepublic com.google.gwt.event.shared.HandlerRegistration addBeforeSaveRowEditionHandler(BeforeSaveRowEditionHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addLoadRowDetailsHandler(LoadRowDetailsHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addRowEditHandler(RowEditHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addBeforeCancelRowEditionHandler(BeforeCancelRowEditionHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addCancelRowEditionHandler(CancelRowEditionHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addBeforeRowEditHandler(BeforeRowEditHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addShowRowDetailsHandler(ShowRowDetailsHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addBeforeShowRowDetailsHandler(BeforeShowRowDetailsHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addRowDoubleClickHandler(RowDoubleClickHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addRowClickHandler(RowClickHandler handler)
public RowSelectionModel getRowSelectionModel()
public void initGrid(DeviceAdaptiveGridColumnDefinitions columnDefinitions, int pageSize, RowSelectionModel rowSelection, int cellSpacing, boolean autoLoadData, boolean stretchColumns, boolean highlightRowOnMouseOver, String emptyDataFilling, boolean fixedCellSize, String defaultSortingColumn, Grid.SortingType defaultSortingType, boolean keepEditorOnClickDisabledRows)
columnDefinitions - The definition of grid`s columnspageSize - The maximum size of a pagerowSelection - Row selection modecellSpacing - Space between cellsautoLoadData - Load data automaticallystretchColumns - Stretch columns to content, if neededhighlightRowOnMouseOver - Highlight row when the mouse cursor is over itemptyDataFilling - fixedCellSize - Fix the size of all cellsdefaultSortingColumn - The default column used to sort datadefaultSortingType - Sorting typekeepEditorOnClickDisabledRows - Keep row's editor opened even when clicking on a disabled datarowpublic void initGrid(DeviceAdaptiveGridColumnDefinitions columnDefinitions, int pageSize, RowSelectionModel rowSelection, int cellSpacing, boolean autoLoadData, boolean stretchColumns, boolean highlightRowOnMouseOver, String emptyDataFilling, boolean fixedCellSize, String defaultSortingColumn, Grid.SortingType defaultSortingType, boolean keepEditorOnClickDisabledRows, boolean showEditorButtons)
public void initGrid(DeviceAdaptiveGridColumnDefinitions columnDefinitions, int pageSize, RowSelectionModel rowSelection, int cellSpacing, boolean autoLoadData, boolean stretchColumns, boolean highlightRowOnMouseOver, String emptyDataFilling, boolean fixedCellSize, String defaultSortingColumn, Grid.SortingType defaultSortingType, boolean keepEditorOnClickDisabledRows, boolean showEditorButtons, boolean freezeHeaders)
public void initGrid(DeviceAdaptiveGridColumnDefinitions columnDefinitions, int pageSize, RowSelectionModel rowSelection, int cellSpacing, boolean autoLoadData, boolean stretchColumns, boolean highlightRowOnMouseOver, String emptyDataFilling, boolean fixedCellSize, String defaultSortingColumn, Grid.SortingType defaultSortingType, boolean keepEditorOnClickDisabledRows, boolean showEditorButtons, boolean freezeHeaders, String detailDialogTitle)
public void addColumnEditorValidator(String key, ColumnEditorValidator columnEditorValidator)
key - columnEditorValidator - public void setHeight(String height)
setHeight in class com.google.gwt.user.client.ui.UIObjectpublic void setWidth(String width)
setWidth in class com.google.gwt.user.client.ui.UIObjectpublic void setDetailDialogTitle(String title)
public String getDetailDialogTitle()
public void setDataSource(org.cruxframework.crux.core.client.datasource.PagedDataSource<?> dataSource)
dataSource - Grid.setDataSource(org.cruxframework.crux.core.client.datasource.PagedDataSource)public void setDataSource(org.cruxframework.crux.core.client.datasource.PagedDataSource<?> dataSource,
boolean autoLoadData)
public void addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)
handler - public void loadData()
Grid.loadData()public void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetsclear in class com.google.gwt.user.client.ui.PanelAbstractGrid.clear()public void refresh()
AbstractGrid.refresh()public List<DataRow> getSelectedRows()
Grid.getSelectedRows()public int getCurrentPageSize()
Grid.getCurrentPageSize()public org.cruxframework.crux.core.client.datasource.PagedDataSource<?> getDataSource()
Grid.getDataSource()public List<DataRow> getCurrentPageRows()
Grid.getCurrentPageRows()public DataRow getRow(com.google.gwt.user.client.ui.Widget w)
w - Grid.getRow(com.google.gwt.user.client.ui.Widget)public void nextPage()
Grid.nextPage()public void previousPage()
Grid.previousPage()public void setPager(Pager pager)
pager - Grid.setPager(org.cruxframework.crux.widgets.client.paging.Pager)public void goToPage(int page)
page - Grid.goToPage(int)public int getPageCount()
Grid.getPageCount()public boolean isDataLoaded()
Grid.isDataLoaded()public com.google.gwt.event.shared.HandlerRegistration addRowRenderHandler(RowRenderHandler handler)
handler - Event handlerAbstractGrid.addRowRenderHandler(org.cruxframework.crux.widgets.client.event.row.RowRenderHandler)protected ColumnDefinitions getGridColumnDefinitionsByDevice()
public void setRowSelectionModel(RowSelectionModel rowSelectionModel)
public abstract com.google.gwt.user.client.ui.Widget getActionWidget(String key)
id - Copyright © 2016. All rights reserved.