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.
  • Constructor Details

    • _302_CustomColumnPropertyAccessorExample

      public _302_CustomColumnPropertyAccessorExample()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface INatExample
      Overrides:
      getDescription in class AbstractNatExample
    • 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 this GridLayer. Should always return the same column count and values for all columns that are defined within the IDataProvider of the body layer stack. Uses the DefaultColumnHeaderDataProvider 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 new IDataProvider.