org.gcube.portlets.user.tdw.client.config
Class TabularDataGridViewConfig

java.lang.Object
  extended by org.gcube.portlets.user.tdw.client.config.TabularDataGridViewConfig
All Implemented Interfaces:
com.sencha.gxt.widget.core.client.grid.GridViewConfig<DataRow>

public class TabularDataGridViewConfig
extends Object
implements com.sencha.gxt.widget.core.client.grid.GridViewConfig<DataRow>

A bridge between the GridViewConfig and the TableViewConfig.

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected  Row row
           
protected  RowStyleProvider rowStyleProvider
           
 
Constructor Summary
TabularDataGridViewConfig(TableViewConfig config, TableDefinition definition)
           
 
Method Summary
 String getColStyle(DataRow model, com.sencha.gxt.core.client.ValueProvider<? super DataRow,?> valueProvider, int rowIndex, int colIndex)
          
 String getRowStyle(DataRow model, int rowIndex)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rowStyleProvider

protected RowStyleProvider rowStyleProvider

row

protected Row row
Constructor Detail

TabularDataGridViewConfig

public TabularDataGridViewConfig(TableViewConfig config,
                                 TableDefinition definition)
Method Detail

getColStyle

public String getColStyle(DataRow model,
                          com.sencha.gxt.core.client.ValueProvider<? super DataRow,?> valueProvider,
                          int rowIndex,
                          int colIndex)

Specified by:
getColStyle in interface com.sencha.gxt.widget.core.client.grid.GridViewConfig<DataRow>

getRowStyle

public String getRowStyle(DataRow model,
                          int rowIndex)

Specified by:
getRowStyle in interface com.sencha.gxt.widget.core.client.grid.GridViewConfig<DataRow>


Copyright © 2013. All Rights Reserved.