|
||||||||||
| 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.controls.datagrid.DataGrid
public class DataGrid
Basic DataGrid class. This is simple table-like container with customizable data view. It needs columns, data source (not typified array) and data binder.
| Constructor Summary | |
|---|---|
DataGrid()
Constructor |
|
| Method Summary | |
|---|---|
void |
dataBind()
Starts data bind process grid will ask dataBinder for each row to show it for user. |
void |
dataBind(IDataBinder dataBinder)
Starts data bind process with new IDataBinder implementation instance. |
DataGridColumn[] |
getColumns()
Gets columns of grid. |
IDataBinder |
getDataBinder()
Gets grid IDataBinder implementation instance. |
java.lang.Object[] |
getDataSource()
Gets grid datasource. |
IDataGridEventListener |
getEventListener()
Gets events listener. |
IDataGridRow |
getSelectedRow()
Gets selected row. |
void |
onCellClicked(com.google.gwt.user.client.ui.SourcesTableEvents sender,
int row,
int cell)
|
void |
setColumns(DataGridColumn[] columns)
Sets columns of grid. |
void |
setDataBinder(IDataBinder dataBinder)
Sets grid IDataBinder implementation instance. |
void |
setDataSource(java.lang.Object[] dataSource)
Sets grid datasource. |
void |
setEventListener(IDataGridEventListener eventListener)
Sets events listener. |
| 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 DataGrid()
| Method Detail |
|---|
public DataGridColumn[] getColumns()
public void setColumns(DataGridColumn[] columns)
columns - of gridpublic java.lang.Object[] getDataSource()
public void setDataSource(java.lang.Object[] dataSource)
dataSource - datasource instancepublic IDataBinder getDataBinder()
IDataBinder implementation instance.
IDataBinder implementation instancepublic void setDataBinder(IDataBinder dataBinder)
IDataBinder implementation instance.
dataBinder - IDataBinder implementation instancepublic void dataBind()
public void dataBind(IDataBinder dataBinder)
IDataBinder implementation instance.
dataBinder - IDataBinder implementation instancepublic IDataGridRow getSelectedRow()
public void onCellClicked(com.google.gwt.user.client.ui.SourcesTableEvents sender,
int row,
int cell)
onCellClicked in interface com.google.gwt.user.client.ui.TableListenerpublic IDataGridEventListener getEventListener()
public void setEventListener(IDataGridEventListener eventListener)
selectionChangedListener - IDataGridEventListener implementation instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||