|
||||||||||
| 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
net.pleso.framework.client.ui.custom.controls.datagrid.DataGridWrapper
public class DataGridWrapper
This class is wrapper around DataGrid for custom controls.
Impements IDataBinder interface for own DataGrid instance
This is composite control with DataGrid and Pager.
Used in CustomRBWindow
It implements:
- work with IAuthDataSource
- anisochronous data manipulation
- work with Pager
- sorting data with SortableColumnHeader widget
| Constructor Summary | |
|---|---|
DataGridWrapper(IWindow parentWindow,
IAuthDataSource dataSource,
IRBColumn[] columns)
Constructor |
|
| Method Summary | |
|---|---|
void |
bindHeader(IDataGridHeader dataGridHeader)
Grid call this method when it wants to show cell in header In implementation of this method data binder could set text (or widget) in current header cell. |
void |
bindRow(IDataGridRow dataGridRow)
Grid call this method when it wants to show row with data In implementation of this method data binder could set text (or widget) in all cells of current data row. |
void |
fireOrder(SortableColumnHeader columnHeader)
Calls when user click on header text or order image |
IRBColumn[] |
getColumns()
Gets data columns |
IAuthDataSource |
getDataSource()
Gets data source instance |
IDataGridEventListener |
getEventListener()
Gets events listener of DataGrid |
IRowClassifier[] |
getRowClassifiers()
Gets row classifiers |
IDataRow |
getSelectedRow()
Gets current selected row |
void |
loadData()
Gets data (total count of record and data array) from IAuthDataSource
by asynchronous interface and bind it into DataGrid. |
void |
loadData(SelectParams params)
Loads data to grid from datasource with special parameters |
void |
pagerParamsChanged()
Calls when user click on Previous or Next button and parameters like offset and limit are changed |
void |
setEventListener(IDataGridEventListener eventListener)
Sets events listener of DataGrid |
void |
setRowClassifiers(IRowClassifier[] rowClassifiers)
Sets row classifiers |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getElement |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached, onBrowserEvent, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataGridWrapper(IWindow parentWindow,
IAuthDataSource dataSource,
IRBColumn[] columns)
dataSource - IAuthDataSource implementation instancecolumns - IRBColumn array| Method Detail |
|---|
public IAuthDataSource getDataSource()
public IRBColumn[] getColumns()
public IRowClassifier[] getRowClassifiers()
public void setRowClassifiers(IRowClassifier[] rowClassifiers)
rowClassifiers - row classifierspublic void bindHeader(IDataGridHeader dataGridHeader)
IDataBinder
bindHeader in interface IDataBinderdataGridHeader - header to bindpublic void bindRow(IDataGridRow dataGridRow)
IDataBinder
bindRow in interface IDataBinderdataGridRow - row to bindpublic void loadData()
IAuthDataSource
by asynchronous interface and bind it into DataGrid.
Also checks authorization and shows 'loading' status panel.
public void loadData(SelectParams params)
params - SelectParams instance with data selection parameterspublic void pagerParamsChanged()
IPagerEventListener
pagerParamsChanged in interface IPagerEventListenerpublic void fireOrder(SortableColumnHeader columnHeader)
ISortableColumnHeaderListener
fireOrder in interface ISortableColumnHeaderListenerpublic IDataRow getSelectedRow()
public IDataGridEventListener getEventListener()
DataGrid
public void setEventListener(IDataGridEventListener eventListener)
DataGrid
selectionChangedListener - IDataGridEventListener implementation instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||