Class _302_CustomColumnPropertyAccessorExample

  • All Implemented Interfaces:
    INatExample

    public class _302_CustomColumnPropertyAccessorExample
    extends AbstractNatExample
    Example showing how to implement and use a custom IColumnPropertyAccessor.
    • Constructor Detail

      • _302_CustomColumnPropertyAccessorExample

        public _302_CustomColumnPropertyAccessorExample()
    • Method Detail

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