Class DefaultHierarchicalTreeLayerConfiguration
java.lang.Object
org.eclipse.nebula.widgets.nattable.hierarchical.config.DefaultHierarchicalTreeLayerConfiguration
- All Implemented Interfaces:
IConfiguration
The default configuration for the
HierarchicalTreeLayer
. Adds default
styling and default bindings.- Since:
- 1.6
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.eclipse.swt.graphics.Color
org.eclipse.swt.graphics.Color
org.eclipse.swt.graphics.Color
org.eclipse.swt.graphics.Color
protected HierarchicalTreeLayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureEditableRules
(IConfigRegistry configRegistry) Configures the editable rules for the level header column cells and the collapsed childs.void
configureLayer
(ILayer layer) Perform configurations on the provided layer.void
configureRegistry
(IConfigRegistry configRegistry) Configure NatTable'sIConfigRegistry
upon receiving this callback.void
configureUiBindings
(UiBindingRegistry uiBindingRegistry) Configure NatTable'sUiBindingRegistry
upon receiving this callback.
-
Field Details
-
treeLayer
-
evenRowBgColor
public org.eclipse.swt.graphics.Color evenRowBgColor -
oddRowBgColor
public org.eclipse.swt.graphics.Color oddRowBgColor -
levelHeaderColor
public org.eclipse.swt.graphics.Color levelHeaderColor -
levelHeaderSelectedColor
public org.eclipse.swt.graphics.Color levelHeaderSelectedColor
-
-
Constructor Details
-
DefaultHierarchicalTreeLayerConfiguration
TheHierarchicalTreeLayer
which should be configured by this configuration.
-
-
Method Details
-
configureLayer
Description copied from interface:IConfiguration
Perform configurations on the provided layer.- Specified by:
configureLayer
in interfaceIConfiguration
- Parameters:
layer
- TheILayer
to configure.
-
configureRegistry
Description copied from interface:IConfiguration
Configure NatTable'sIConfigRegistry
upon receiving this callback. A mechanism to plug-in customICellPainter
,IDataValidator
etc.- Specified by:
configureRegistry
in interfaceIConfiguration
- Parameters:
configRegistry
- TheIConfigRegistry
instance to register configuration values to.
-
configureEditableRules
Configures the editable rules for the level header column cells and the collapsed childs.- Parameters:
configRegistry
- TheIConfigRegistry
to which the configurations should be applied.
-
configureUiBindings
Description copied from interface:IConfiguration
Configure NatTable'sUiBindingRegistry
upon receiving this callback. A mechanism to customize key/mouse bindings.- Specified by:
configureUiBindings
in interfaceIConfiguration
- Parameters:
uiBindingRegistry
- TheUiBindingRegistry
instance to register ui bindings to.
-