Package at.reppeitsolutions.formbuilder.components.html

Examples of at.reppeitsolutions.formbuilder.components.html.HtmlPanelGrid


    public HtmlDialog(FormBuilderItemBase item) {
        setRendererType(HtmlBaseComponentRenderer.RENDERTYPE);
        this.uuid = "diag:" + item.getId();
        this.item = item;

        HtmlPanelGrid grid = new HtmlPanelGrid();
        grid.setColumns(2);
        grid.setColumnClasses("evenColumn, oddColumn");
        getChildren().add(grid);

        try {
            for (PropertyDescriptor pd : Introspector.getBeanInfo(item.getClass()).getPropertyDescriptors()) {
                if (pd.getReadMethod() != null && !"class".equals(pd.getName())) {
                    setProperty(pd, grid, item.getId(), item);
                }
            }
            for (PropertyDescriptor pd : Introspector.getBeanInfo(FormBuilderItemProperties.class).getPropertyDescriptors()) {
                if (pd.getReadMethod() != null && !"class".equals(pd.getName())) {
                    setProperty(pd, grid, item.getId(), item.getProperties());
                }
            }
        } catch (IntrospectionException ex) {
            Logger.getLogger(HtmlDialog.class.getName()).log(Level.SEVERE, null, ex);
        }

        if (item.getSpecialProperties() != null && !item.getSpecialProperties().isEmpty()) {
            style = "width: 200px;";
        }

        HtmlCommandButton save = new HtmlCommandButton();
        save.setStyleClass("commandButton");
        save.setValue(Messages.getStringJSF("dialog.save"));
        save.setOnclick("saveProperties('" + item.getId() + "');");

        grid.getChildren().add(save);
    }
View Full Code Here

TOP

Related Classes of at.reppeitsolutions.formbuilder.components.html.HtmlPanelGrid

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.