net.pleso.framework.client.ui.controls.datagrid.interfaces
Interface IDataGridRow


public interface IDataGridRow

Interface of row in DataGrid class


Method Summary
 java.lang.String getCellText(int columnIndex)
          Gets text from specified cell of row.
 com.google.gwt.user.client.ui.Widget getCellWidget(int columnIndex)
          Sets widget from specified cell of row.
 DataGrid getDataGrid()
           
 java.lang.Object getDataRow()
          This function return data of this row from grid's dataset.
 int getIndex()
           
 void setCellText(int columnIndex, java.lang.String text)
          Sets text to specified cell of row.
 void setCellWidget(int columnIndex, com.google.gwt.user.client.ui.Widget widget)
          Sets widget to specified cell of row.
 void setStyleName(java.lang.String styleName)
          Sets css-style for this row
 

Method Detail

getDataGrid

DataGrid getDataGrid()
Returns:
DataGrid - owner of row

getIndex

int getIndex()
Returns:
index in grid's dataset

getDataRow

java.lang.Object getDataRow()
This function return data of this row from grid's dataset.

Returns:
datarow object from dataset of grid

setCellText

void setCellText(int columnIndex,
                 java.lang.String text)
Sets text to specified cell of row.

Parameters:
columnIndex - index of cell's column
text - text to set

getCellText

java.lang.String getCellText(int columnIndex)
Gets text from specified cell of row.

Parameters:
columnIndex - index of cell's column
Returns:
text in cell

setCellWidget

void setCellWidget(int columnIndex,
                   com.google.gwt.user.client.ui.Widget widget)
Sets widget to specified cell of row.

Parameters:
columnIndex - index of cell's column
widget - widget to set

getCellWidget

com.google.gwt.user.client.ui.Widget getCellWidget(int columnIndex)
Sets widget from specified cell of row.

Parameters:
columnIndex - index of cell's column
Returns:
widget in cell

setStyleName

void setStyleName(java.lang.String styleName)
Sets css-style for this row

Parameters:
styleName - css-style name


Copyright © 2006-2007 pleso.net crew All Rights Reserved.