Package org.eclipse.nebula.widgets.nattable.painter.cell

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.CheckBoxPainter


        // if you want to use the CheckBoxCellEditor, you should also consider
        // using the corresponding CheckBoxPainter to show the content like a
        // checkbox in your NatTable
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CheckBoxPainter(),
                DisplayMode.NORMAL, EditorExample.COLUMN_SEVEN_LABEL);

        // using a CheckBoxCellEditor also needs a Boolean conversion to work
        // correctly
        configRegistry.registerConfigAttribute(
View Full Code Here


        // using the corresponding CheckBoxPainter to show the content like a
        // checkbox in your NatTable
        // in this case we use different icons to show how this works
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER,
                new CheckBoxPainter(GUIHelper.getImage("arrow_up"), GUIHelper
                        .getImage("arrow_down")), DisplayMode.NORMAL,
                EditorExample.COLUMN_EIGHT_LABEL);

        // using a CheckBoxCellEditor also needs a Boolean conversion to work
        // correctly
View Full Code Here

                registerPriceFormatter(configRegistry);
                registerDateFormatter(configRegistry);
                registerLotSizeFormatter(configRegistry);

                registerCheckBoxEditor(configRegistry, new CheckBoxPainter(),
                        new CheckBoxCellEditor());
                registerComboBox(
                        configRegistry,
                        new ComboBoxPainter(),
                        new ComboBoxCellEditor(Arrays.asList(
View Full Code Here

        }

        private void registerColumnSevenCheckboxPainter(
                IConfigRegistry configRegistry) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, new CheckBoxPainter(),
                    DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_SEVEN_LABEL);

            // using a CheckBoxCellEditor also needs a Boolean conversion to
            // work correctly
View Full Code Here

        private void registerColumnEightCheckboxPainter(
                IConfigRegistry configRegistry) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER,
                    new CheckBoxPainter(GUIHelper.getImage("arrow_up"),
                            GUIHelper.getImage("arrow_down")),
                    DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_EIGHT_LABEL);

            // using a CheckBoxCellEditor also needs a Boolean conversion to
View Full Code Here

            @Override
            public void configureRegistry(IConfigRegistry configRegistry) {
                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.CELL_PAINTER,
                        new CheckBoxPainter(), DisplayMode.NORMAL,
                        ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 4);

                IStyle style = new Style();
                style.setAttributeValue(
                        CellStyleAttributes.HORIZONTAL_ALIGNMENT,
View Full Code Here

                switch (editor.getType()) {
                    case CHECKBOX:
                        configRegistry.registerConfigAttribute(
                                CellConfigAttributes.CELL_PAINTER,
                                new CheckBoxPainter(), DisplayMode.NORMAL,
                                columnLabel);
                        configRegistry.registerConfigAttribute(
                                CellConfigAttributes.DISPLAY_CONVERTER,
                                new DefaultBooleanDisplayConverter(),
                                DisplayMode.NORMAL, columnLabel);
View Full Code Here

            // consider
            // using the corresponding CheckBoxPainter to show the content like
            // a
            // checkbox in your NatTable
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, new CheckBoxPainter(),
                    DisplayMode.NORMAL,
                    _804_GlazedListsEditorExample.COLUMN_SEVEN_LABEL);

            // using a CheckBoxCellEditor also needs a Boolean conversion to
            // work correctly
View Full Code Here

            // a
            // checkbox in your NatTable
            // in this case we use different icons to show how this works
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER,
                    new CheckBoxPainter(GUIHelper.getImage("arrow_up"),
                            GUIHelper.getImage("arrow_down")),
                    DisplayMode.NORMAL,
                    _804_GlazedListsEditorExample.COLUMN_EIGHT_LABEL);

            // using a CheckBoxCellEditor also needs a Boolean conversion to
View Full Code Here

            @Override
            public void configureRegistry(IConfigRegistry configRegistry) {
                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.CELL_PAINTER,
                        new CheckBoxPainter(), DisplayMode.NORMAL,
                        ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 4);
            }
        });

        // add sorting configuration
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.painter.cell.CheckBoxPainter

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.