|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.cruxframework.crux.widgets.client.deviceadaptivegrid.DeviceAdaptiveGrid
public class DeviceAdaptiveGrid
| Nested Class Summary | |
|---|---|
protected static class |
DeviceAdaptiveGrid.GridImpl
|
protected static class |
DeviceAdaptiveGrid.GridLargeImpl
|
protected static class |
DeviceAdaptiveGrid.GridSmallImpl
|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
protected DeviceAdaptiveGrid.GridImpl |
gridImpl
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
DeviceAdaptiveGrid()
|
|
| Method Summary | |
|---|---|
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)
|
com.google.gwt.event.shared.HandlerRegistration |
addShowRowDetailsHandler(ShowRowDetailsHandler handler)
|
void |
clear()
|
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()
|
ColumnDefinitions |
getGridColumnDefinitionsByDevice()
|
String |
getHeight()
|
protected Grid |
getInnerGrid()
|
int |
getPageCount()
Return the total number of pages |
DataRow |
getRow(com.google.gwt.user.client.ui.Widget w)
|
RowSelectionModel |
getRowSelectionModel()
|
List<DataRow> |
getSelectedRows()
|
void |
goToPage(int page)
Moves the pageable's cursor to an arbitrary 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()
Checks if pageable data is already available |
void |
loadData()
|
void |
nextPage()
Moves the pageable's cursor to the next page |
void |
previousPage()
Moves the pageable's cursor to the previous page |
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 detailDialogTitle)
|
void |
setHeight(String height)
|
void |
setPager(Pager pager)
Sets the pager for call back |
void |
setRowSelectionModel(RowSelectionModel rowSelectionModel)
|
void |
setWidth(String width)
|
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected DeviceAdaptiveGrid.GridImpl gridImpl
| Constructor Detail |
|---|
public DeviceAdaptiveGrid()
| Method Detail |
|---|
public String getDetailDialogTitle()
public void setDetailDialogTitle(String detailDialogTitle)
public String getHeight()
public void setDataSource(org.cruxframework.crux.core.client.datasource.PagedDataSource<?> dataSource)
dataSource - The datasource used to fill the grid
public void setDataSource(org.cruxframework.crux.core.client.datasource.PagedDataSource<?> dataSource,
boolean autoLoadData)
setDataSource in interface org.cruxframework.crux.core.client.datasource.HasDataSource<org.cruxframework.crux.core.client.datasource.PagedDataSource<?>>
public void addColumnEditorValidator(String key,
ColumnEditorValidator columnEditorValidator)
key - columnEditorValidator - public void loadData()
Grid.loadData()public void clear()
AbstractGrid.clear()public ColumnDefinitions getGridColumnDefinitionsByDevice()
public void addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)
public com.google.gwt.event.shared.HandlerRegistration addRowClickHandler(RowClickHandler handler)
HasRowClickHandlers.addRowClickHandler(org.cruxframework.crux.widgets.client.event.row.RowClickHandler)public com.google.gwt.event.shared.HandlerRegistration addRowDoubleClickHandler(RowDoubleClickHandler handler)
HasRowDoubleClickHandlers.addRowDoubleClickHandler(org.cruxframework.crux.widgets.client.event.row.RowDoubleClickHandler)public com.google.gwt.event.shared.HandlerRegistration addRowRenderHandler(RowRenderHandler handler)
HasRowRenderHandlers.addRowRenderHandler(org.cruxframework.crux.widgets.client.event.row.RowRenderHandler)public com.google.gwt.event.shared.HandlerRegistration addBeforeShowRowDetailsHandler(BeforeShowRowDetailsHandler handler)
br.com.sysmap.crux.widgets.client.event.row.HasBeforeShowDetailsHandlers#addBeforeShowRowDetailsHandler(br.com.sysmap.crux.widgets.client.event.row.BeforeShowDetailsHandler)public com.google.gwt.event.shared.HandlerRegistration addShowRowDetailsHandler(ShowRowDetailsHandler handler)
br.com.sysmap.crux.widgets.client.event.row.HasShowRowDetailsHandlers#addShowRowDetailsHandler(br.com.sysmap.crux.widgets.client.event.row.ShowRowDetailsHandler)public com.google.gwt.event.shared.HandlerRegistration addBeforeRowEditHandler(BeforeRowEditHandler handler)
HasBeforeRowEditHandlers.addBeforeRowEditHandler(org.cruxframework.crux.widgets.client.event.row.BeforeRowEditHandler)public com.google.gwt.event.shared.HandlerRegistration addCancelRowEditionHandler(CancelRowEditionHandler handler)
HasCancelRowEditionHandler.addCancelRowEditionHandler(org.cruxframework.crux.widgets.client.event.row.CancelRowEditionHandler)public com.google.gwt.event.shared.HandlerRegistration addBeforeCancelRowEditionHandler(BeforeCancelRowEditionHandler handler)
HasBeforeCancelRowEditionHandler.addBeforeCancelRowEditionHandler(org.cruxframework.crux.widgets.client.event.row.BeforeCancelRowEditionHandler)public com.google.gwt.event.shared.HandlerRegistration addRowEditHandler(RowEditHandler handler)
HasRowEditHandlers.addRowEditHandler(org.cruxframework.crux.widgets.client.event.row.RowEditHandler)public com.google.gwt.event.shared.HandlerRegistration addLoadRowDetailsHandler(LoadRowDetailsHandler handler)
br.com.sysmap.crux.widgets.client.event.row.HasLoadRowDetailsHandlers#addLoadRowDetailsHandler(br.com.sysmap.crux.widgets.client.event.row.LoadRowDetailsHandler)public com.google.gwt.event.shared.HandlerRegistration addBeforeSaveRowEditionHandler(BeforeSaveRowEditionHandler handler)
HasBeforeSaveRowEditionHandler.addBeforeSaveRowEditionHandler(org.cruxframework.crux.widgets.client.event.row.BeforeSaveRowEditionHandler)public int getCurrentPageSize()
Grid.getCurrentPageSize()public org.cruxframework.crux.core.client.datasource.PagedDataSource<?> getDataSource()
getDataSource in interface org.cruxframework.crux.core.client.datasource.HasDataSource<org.cruxframework.crux.core.client.datasource.PagedDataSource<?>>Grid.getDataSource()public List<DataRow> getCurrentPageRows()
Grid.getCurrentPageRows()public void refresh()
AbstractGrid.refresh()public List<DataRow> getSelectedRows()
Grid.getSelectedRows()public void nextPage()
Pageable
nextPage in interface PageableGrid.nextPage()public void previousPage()
Pageable
previousPage in interface PageableGrid.previousPage()public void setPager(Pager pager)
Pageable
setPager in interface Pageablepager - Grid.setPager(org.cruxframework.crux.widgets.client.paging.Pager)public void goToPage(int page)
Pageable
goToPage in interface Pageablepage - The page of the requested indexGrid.goToPage(int)public DataRow getRow(com.google.gwt.user.client.ui.Widget w)
w -
Grid.getRow(com.google.gwt.user.client.ui.Widget)public int getPageCount()
Pageable
getPageCount in interface PageableGrid.getPageCount()public boolean isDataLoaded()
Pageable
isDataLoaded in interface PageableGrid.isDataLoaded()public com.google.gwt.user.client.ui.Widget getActionWidget(String key)
id -
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 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 type
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 datarow
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)
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)
protected Grid getInnerGrid()
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 RowSelectionModel getRowSelectionModel()
public void setRowSelectionModel(RowSelectionModel rowSelectionModel)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||