Package org.eclipse.nebula.widgets.nattable.widget

Examples of org.eclipse.nebula.widgets.nattable.widget.NatCombo


            style |= SWT.MULTI;
        }
        if (this.useCheckbox) {
            style |= SWT.CHECK;
        }
        final NatCombo combo = this.iconImage == null ? new NatCombo(parent,
                this.cellStyle, this.maxVisibleItems, style) : new NatCombo(
                parent, this.cellStyle, this.maxVisibleItems, style,
                this.iconImage);

        combo.setCursor(new Cursor(Display.getDefault(), SWT.CURSOR_IBEAM));

        if (multiselect) {
            combo.setMultiselectValueSeparator(this.multiselectValueSeparator);
            combo.setMultiselectTextBracket(this.multiselectTextPrefix,
                    this.multiselectTextSuffix);
        }

        addNatComboListener(combo);
        return combo;
View Full Code Here


                        .toString());

        // Click - expand combo
        SWTUtils.leftClick(startX + 10, startY + 10, SWT.NONE, natTable);

        NatCombo combo = (NatCombo) natTable.getActiveCellEditor()
                .getEditorControl();
        assertNotNull(combo);
        assertTrue(natTable.getActiveCellEditor().getCanonicalValue() instanceof PricingTypeBean);
        assertEquals("MN", natTable.getActiveCellEditor().getCanonicalValue()
                .toString());
        assertTrue(ActiveCellEditorRegistry.getActiveCellEditor()
                .getCanonicalValue() instanceof PricingTypeBean);
        assertEquals("MN", ActiveCellEditorRegistry.getActiveCellEditor()
                .getCanonicalValue().toString());

        // Click - expand select value 'Automatic'
        combo.select(1);
        SWTUtils.leftClickOnCombo(startX + 10, startY + 35, SWT.NONE, combo);

        assertTrue(natTable.getDataValueByPosition(columnPosition, rowPosition) instanceof PricingTypeBean);
        assertEquals("AT",
                natTable.getDataValueByPosition(columnPosition, rowPosition)
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.widget.NatCombo

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.