Package simplesheet.style

Examples of simplesheet.style.CellEdge


    private void updateBorder() {
        try {
            CellBorder border = null;
            if(allInOneBtn.isSelected()) {
                CellEdge edge = getEdge(topBorderCombo, topWidthField);
                border = new CellBorder(edge, edge, edge, edge);
            } else if(topBottomBtn.isSelected()) {
                CellEdge top = getEdge(topBorderCombo, topWidthField);
                CellEdge bottom = getEdge(bottomBorderCombo, bottomWidthField);
                border = new CellBorder(top, null, null, bottom);
            } else if(leftRightBtn.isSelected()) {
                CellEdge left = getEdge(leftBorderCombo, leftWidthField);
                CellEdge right = getEdge(rightBorderCombo, rightWidthField);
                border = new CellBorder(null, left, right, null);
            } else {
                CellEdge top = getEdge(topBorderCombo, topWidthField);
                CellEdge bottom = getEdge(bottomBorderCombo, bottomWidthField);
                CellEdge left = getEdge(leftBorderCombo, leftWidthField);
                CellEdge right = getEdge(rightBorderCombo, rightWidthField);
                border = new CellBorder(top, left, right, bottom);
            }
            if (border.isEmpty()) {
                style.setBorder(null);
            } else {
View Full Code Here


        if(width == 0
                || type == null
                || type == EdgeType.invisible) {
            return null;
        }
        return new CellEdge(type, width);
    }
View Full Code Here

        }
        String typeTxt = XML.getStringAttribute(borderRoot, ATTR_BORDERTYPE, null, false);
        if(typeTxt != null) {
            int width = XML.getIntAttribute(borderRoot, ATTR_BORDERWIDTH, 0, false);
            if(width != 0) {
                return new CellEdge(EdgeType.valueOf(typeTxt), width);
            }
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of simplesheet.style.CellEdge

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.