Package at.reppeitsolutions.formbuilder.components.html

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


       
        holder.getChildren().add(formActionString);
        holder.getChildren().add(formContentString);
        holder.getChildren().add(propDialogHeader);
       
        formContent = new HtmlUnorderedList();
        formContent.setClassString("sortable2");
       
        HtmlDiv contentHolder = new HtmlDiv();
        contentHolder.setId("contentHolder");
        contentHolder.getChildren().add(formContent);
View Full Code Here


    public FormBuilderInternal() {
        setRendererType(FormBuilderInternalRenderer.RENDERTYPE);
    }

    public void initFormBuilder() {
        formContent = new HtmlUnorderedList();
        formContent.setClassString("connectedSortable sortable2 box-runde-ecken");

        HtmlInputHidden formActionString = new HtmlInputHidden();
        formActionString.setValue("update");
        formActionString.setId(FORMACTIONSTRING);

        HtmlInputHidden formContentString = new HtmlInputHidden();
        formContentString.setValue("");
        formContentString.setId(FORMCONTENTSTRING);

        HtmlInputHidden formActiveTabString = new HtmlInputHidden();
        if(getActiveTab() != null) {
            formActiveTabString.setValue(getActiveTab());
        } else {
            formActiveTabString.setValue("0");
        }
        formActiveTabString.setId(FORMACTIVETABSTRING);

        HtmlInputHidden propDialogHeader = new HtmlInputHidden();
        propDialogHeader.setValue(Messages.getStringJSF("dialog.header"));
        propDialogHeader.setId("prop-dialog-header");

        HtmlDiv holder = new HtmlDiv();
        holder.setId("holder");

        holder.getChildren().add(formActionString);
        holder.getChildren().add(formContentString);
        holder.getChildren().add(formActiveTabString);
        holder.getChildren().add(propDialogHeader);

        HtmlDiv accordion = new HtmlDiv();
        accordion.setId("accordion");

        for (COMPONENT_CATEGORY category : COMPONENT_CATEGORY.values()) {
            if(category != COMPONENT_CATEGORY.METADATA ||
               (category == COMPONENT_CATEGORY.METADATA && getMetaDataDescriptions() != null && getMetaDataObject() != null)) {
                HtmlHeading heading = new HtmlHeading();
                heading.setSize(3);
                heading.setValue(Messages.getStringJSF("menu.palette." + category.name()));
                HtmlDiv paletteDiv = new HtmlDiv();
                HtmlUnorderedList palette = getPalette(category);
                palettes.add(palette);
                paletteDiv.getChildren().add(palette);
                accordion.getChildren().add(heading);
                accordion.getChildren().add(paletteDiv);
            }
View Full Code Here

            for(MetaDataDescription description : getMetaDataDescriptions()) {
                components.add(FormBuilderItemFactory.getUIComponent(new FormBuilderItemMetaData(true, description)));
            }
        }

        HtmlUnorderedList palette = new HtmlUnorderedList();
        palette.setClassString("connectedSortable sortable1");

        JQueryHelper.encasulateForJQuery(palette, components);

        return palette;
    }
View Full Code Here

TOP

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

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.