Package org.eclipse.nebula.widgets.nattable.style.editor.command

Examples of org.eclipse.nebula.widgets.nattable.style.editor.command.DisplayColumnStyleEditorCommandHandler


        // We will add a style for this label to the config registry in a bit
        bodyLabelAccumulator.registerColumnOverrides(2, BODY_LABEL_1);
        columnLabelAccumulator.registerColumnOverrides(2, COLUMN_LABEL_1);

        // Register a command handler for the StyleEditorDialog
        DisplayColumnStyleEditorCommandHandler styleChooserCommandHandler = new DisplayColumnStyleEditorCommandHandler(
                gridLayer.getBodyLayer().getSelectionLayer(),
                columnLabelAccumulator, natTable.getConfigRegistry());

        DefaultBodyLayerStack bodyLayer = gridLayer.getBodyLayer();
        bodyLayer.registerCommandHandler(styleChooserCommandHandler);
View Full Code Here


    protected void configureColumnStyleCustomization() {
        if (!tableModel.enableColumnStyleCustomization) {
            return;
        }
        // Register a command handler for the StyleEditorDialog
        DisplayColumnStyleEditorCommandHandler styleChooserCommandHandler = new DisplayColumnStyleEditorCommandHandler(
                bodyLayer.getSelectionLayer(), columnLabelAccumulator,
                configRegistry);
        bodyLayer.registerCommandHandler(styleChooserCommandHandler);

        // Register the style editor as persistable
View Full Code Here

        labelAccumulator = new ColumnOverrideLabelAccumulator(bodyLayer);
        bodyLayer.setConfigLabelAccumulator(labelAccumulator);
    }

    public void configureRegistry(IConfigRegistry configRegistry) {
        DisplayColumnStyleEditorCommandHandler columnChooserCommandHandler = new DisplayColumnStyleEditorCommandHandler(
                selectionLayer, labelAccumulator, configRegistry);

        bodyLayer.registerCommandHandler(columnChooserCommandHandler);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.style.editor.command.DisplayColumnStyleEditorCommandHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.