Examples of XNumericField


Examples of com.sun.star.awt.XNumericField

    public void executeStarMakerDialog(){
        short ok = m_xStarMakerDialog.execute();
        if(ok == 1){
            XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xStarMakerDialog);
            XNumericField pointsField = (XNumericField) UnoRuntime.queryInterface(XNumericField.class, xControlContainer.getControl("PointsField"));
            int numOfPoints = (int)pointsField.getValue();
            XNumericField ratioField = (XNumericField) UnoRuntime.queryInterface(XNumericField.class, xControlContainer.getControl("RatioField"));
            double ratio = ratioField.getValue() / 100;
            XNumericField sizeField = (XNumericField) UnoRuntime.queryInterface(XNumericField.class, xControlContainer.getControl("SizeField"));
            int size = (int)sizeField.getValue();
            drawStar(numOfPoints, ratio, size);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.