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
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected IDataProviderorg.eclipse.swt.widgets.ControlcreateExampleControl(org.eclipse.swt.widgets.Composite parent) static voidMethods inherited from class org.eclipse.nebula.widgets.nattable.examples.AbstractNatExample
getName, getShortDescription, log, onStart, onStop, setupTextArea
-
Constructor Details
-
_302_CustomColumnPropertyAccessorExample
public _302_CustomColumnPropertyAccessorExample()
-
-
Method Details
-
main
- Throws:
Exception
-
getDescription
- Specified by:
getDescriptionin interfaceINatExample- Overrides:
getDescriptionin classAbstractNatExample
-
createExampleControl
public org.eclipse.swt.widgets.Control createExampleControl(org.eclipse.swt.widgets.Composite parent) -
createColumnHeaderDataProvider
- Returns:
- The
IDataProviderfor the column header of thisGridLayer. Should always return the same column count and values for all columns that are defined within theIDataProviderof the body layer stack. Uses theDefaultColumnHeaderDataProviderwhich 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.
-