Package org.eclipse.nebula.widgets.nattable.edit.editor

Examples of org.eclipse.nebula.widgets.nattable.edit.editor.CheckBoxCellEditor


         */
        private void registerColumnFiveCheckbox(IConfigRegistry configRegistry) {
            // register a CheckBoxCellEditor for column four
            configRegistry.registerConfigAttribute(
                    EditConfigAttributes.CELL_EDITOR,
                    new CheckBoxCellEditor(),
                    DisplayMode.EDIT,
                    _4471_EditorTraversalExample.COLUMN_FIVE_LABEL);

            // if you want to use the CheckBoxCellEditor, you should also
            // consider
View Full Code Here


        // Register check box for the publish flag column
        DataLayer bodyDataLayer = (DataLayer) layerStack.getBodyDataLayer();
        natTable.registerLabelOnColumn(bodyDataLayer, columnIndex, TEST_LABEL);
        registerCheckBoxEditor(natTable.getConfigRegistry(),
                new CheckBoxPainter(), new CheckBoxCellEditor());

        natTable.configure();

        // Value before click
        assertEquals(true, natTable.getDataValueByPosition(columnPosition, 1));
View Full Code Here

    @Test
    public void testIsEditorSameWithSingleSelectionOneChangedEditor() {
        DataLayer bodyDataLayer = (DataLayer) this.gridLayerStack.getBodyDataLayer();
        this.natTable.registerLabelOnColumn(bodyDataLayer, 1, TEST_LABEL);
        this.natTable.getConfigRegistry().registerConfigAttribute(
                EditConfigAttributes.CELL_EDITOR, new CheckBoxCellEditor(),
                DisplayMode.EDIT, TEST_LABEL);

        this.selectionLayer.selectCell(1, 1, false, false);
        assertTrue(EditUtils.isEditorSame(this.selectionLayer,
                this.natTable.getConfigRegistry()));
View Full Code Here

    @Test
    public void testIsEditorSameWithMultiSelectionOneColumnEditorMultiSelection() {
        DataLayer bodyDataLayer = (DataLayer) this.gridLayerStack.getBodyDataLayer();
        this.natTable.registerLabelOnColumn(bodyDataLayer, 1, TEST_LABEL);
        this.natTable.getConfigRegistry().registerConfigAttribute(
                EditConfigAttributes.CELL_EDITOR, new CheckBoxCellEditor(),
                DisplayMode.EDIT, TEST_LABEL);

        this.selectionLayer.selectCell(1, 1, false, true);
        this.selectionLayer.selectCell(1, 2, false, true);
        this.selectionLayer.selectCell(1, 3, false, true);
View Full Code Here

        this.selectionLayer.selectCell(3, 3, false, true);

        DataLayer bodyDataLayer = (DataLayer) this.gridLayerStack.getBodyDataLayer();
        this.natTable.registerLabelOnColumn(bodyDataLayer, 1, TEST_LABEL);
        this.natTable.getConfigRegistry().registerConfigAttribute(
                EditConfigAttributes.CELL_EDITOR, new CheckBoxCellEditor(),
                DisplayMode.EDIT, TEST_LABEL);

        // the result is true here because using the IRowSelectionModel the
        // anchor is used to determine the cells to edit
        assertTrue(EditUtils.isEditorSame(this.selectionLayer,
View Full Code Here

        this.selectionLayer.selectCell(3, 3, false, true);

        DataLayer bodyDataLayer = (DataLayer) this.gridLayerStack.getBodyDataLayer();
        this.natTable.registerLabelOnColumn(bodyDataLayer, 1, TEST_LABEL);
        this.natTable.getConfigRegistry().registerConfigAttribute(
                EditConfigAttributes.CELL_EDITOR, new CheckBoxCellEditor(),
                DisplayMode.EDIT, TEST_LABEL);

        assertFalse(EditUtils.isEditorSame(this.selectionLayer,
                this.natTable.getConfigRegistry()));
    }
View Full Code Here

         */
        private void registerColumnFourCheckbox(IConfigRegistry configRegistry) {
            // register a CheckBoxCellEditor for column four
            configRegistry.registerConfigAttribute(
                    EditConfigAttributes.CELL_EDITOR,
                    new CheckBoxCellEditor(),
                    DisplayMode.EDIT,
                    COLUMN_FOUR_LABEL);

            // if you want to use the CheckBoxCellEditor, you should also
            // consider using the corresponding CheckBoxPainter to show
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.edit.editor.CheckBoxCellEditor

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.