org.eclipse.nebula.widgets.nattable.grid.data
Class DefaultColumnHeaderDataProvider

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.grid.data.DefaultColumnHeaderDataProvider
All Implemented Interfaces:
IDataProvider

public class DefaultColumnHeaderDataProvider
extends Object
implements IDataProvider


Constructor Summary
DefaultColumnHeaderDataProvider(String[] columnLabels)
           
DefaultColumnHeaderDataProvider(String[] propertyNames, Map<String,String> propertyToLabelMap)
           
 
Method Summary
 int getColumnCount()
           
 String getColumnHeaderLabel(int columnIndex)
           
 Object getDataValue(int columnIndex, int rowIndex)
          This class does not support multiple rows in the column header layer.
 int getRowCount()
           
 void setDataValue(int columnIndex, int rowIndex, Object newValue)
          Sets the value at the given column and row index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultColumnHeaderDataProvider

public DefaultColumnHeaderDataProvider(String[] columnLabels)

DefaultColumnHeaderDataProvider

public DefaultColumnHeaderDataProvider(String[] propertyNames,
                                       Map<String,String> propertyToLabelMap)
Method Detail

getColumnHeaderLabel

public String getColumnHeaderLabel(int columnIndex)

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface IDataProvider

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface IDataProvider

getDataValue

public Object getDataValue(int columnIndex,
                           int rowIndex)
This class does not support multiple rows in the column header layer.

Specified by:
getDataValue in interface IDataProvider
Returns:
the data value associated with the specified cell

setDataValue

public void setDataValue(int columnIndex,
                         int rowIndex,
                         Object newValue)
Description copied from interface: IDataProvider
Sets the value at the given column and row index. Optional operation. Should throw UnsupportedOperationException if this operation is not supported.

Specified by:
setDataValue in interface IDataProvider


Copyright © 2015. All rights reserved.