Package net.charabia.jsmoothgen.skeleton

Examples of net.charabia.jsmoothgen.skeleton.SkeletonProperty


        Iterator it = controls.iterator();
       
        JSmoothApplication app = page.getApplication();
        Control ctrl = null;
        String value = null;
        SkeletonProperty prop = null;
        while (it.hasNext()) {
            ctrl = (Control) it.next();
            prop = (SkeletonProperty) ctrl.getData();
            if (prop.getType().equals(SkeletonProperty.TYPE_STRING)) {
                value = ((Text) ctrl).getText();
                prop.setValue(value);
            }
            else if (prop.getType().equals(SkeletonProperty.TYPE_TEXTAREA)) {
                value = ((Text) ctrl).getText();
                prop.setValue(value);
            }
            else if (prop.getType().equals(SkeletonProperty.TYPE_BOOLEAN)) {
                boolean b = ((Button) ctrl).getSelection();
                value = (b == true) ? "1" : "0";
                prop.setValue(value);
            }
            app.setSkeletonProperty(prop);
        }

        super.okPressed();
View Full Code Here

TOP

Related Classes of net.charabia.jsmoothgen.skeleton.SkeletonProperty

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.