Class _302_CustomColumnPropertyAccessorExample
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.examples.AbstractNatExample
-
- org.eclipse.nebula.widgets.nattable.examples._300_Data._302_CustomColumnPropertyAccessorExample
-
- All Implemented Interfaces:
INatExample
public class _302_CustomColumnPropertyAccessorExample extends AbstractNatExample
Example showing how to implement and use a custom IColumnPropertyAccessor.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.nebula.widgets.nattable.examples.INatExample
BASE_PACKAGE, BASE_PATH, CLASSIC_BASE_PACKAGE, CLASSIC_BASE_PATH, CLASSIC_EXAMPLES_PREFIX, TUTORIAL_EXAMPLES_PREFIX
-
-
Constructor Summary
Constructors Constructor Description _302_CustomColumnPropertyAccessorExample()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IDataProvider
createColumnHeaderDataProvider()
org.eclipse.swt.widgets.Control
createExampleControl(org.eclipse.swt.widgets.Composite parent)
String
getDescription()
static void
main(String[] args)
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.examples.AbstractNatExample
getName, getShortDescription, log, onStart, onStop, setupTextArea
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceINatExample
- Overrides:
getDescription
in classAbstractNatExample
-
createExampleControl
public org.eclipse.swt.widgets.Control createExampleControl(org.eclipse.swt.widgets.Composite parent)
-
createColumnHeaderDataProvider
protected IDataProvider createColumnHeaderDataProvider()
- Returns:
- The
IDataProvider
for the column header of thisGridLayer
. Should always return the same column count and values for all columns that are defined within theIDataProvider
of the body layer stack. Uses theDefaultColumnHeaderDataProvider
which simply checks for the property name within the propertyNames array and returns the corresponding value out of the propertyToLabelMap. Another approach is to implement a completely newIDataProvider
.
-
-