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

Examples of org.eclipse.nebula.widgets.nattable.style.BorderStyle


        assertEquals("1|0,0,0|SOLID", borderStyle.toString());
    }

    @Test
    public void canRecreateInstanceFromAPersistedString() throws Exception {
        BorderStyle borderStyle = new BorderStyle("2|100,110,120|DOTTED");

        assertEquals(2, borderStyle.getThickness());
        assertEquals(100, borderStyle.getColor().getRed());
        assertEquals(110, borderStyle.getColor().getGreen());
        assertEquals(120, borderStyle.getColor().getBlue());
        assertEquals(LineStyleEnum.DOTTED, borderStyle.getLineStyle());
    }
View Full Code Here


    }

    @Test
    public void shouldReturnASelectedCellWithDottedLineStyling() {
        Style cellStyle = new Style();
        final BorderStyle defaultBorderStyle = new BorderStyle(13,
                GUIHelper.COLOR_YELLOW, LineStyleEnum.DOTTED);
        cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                defaultBorderStyle);

        // Register line styling for body cells in selection mode
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.style.BorderStyle

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.