Examples of HtmlDiv


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

            } else {
                writer.write("<script type=\"text/javascript\">$(function(){$(\"#mandatoryError\").hide();});</script>");
            }

            for (FormBuilderContainer comp : components) {
                HtmlDiv icons = new HtmlDiv();
                icons.setClassString("icons");

                addInfoIcon(comp, icons, writer);

                HtmlListItem li = new HtmlListItem();
                li.getChildren().add(icons);
View Full Code Here

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

        if (properties == null
                || properties.getLabelLength() == -1) {
            getChildren().add(label);
            getChildren().add(output);
        } else {
            HtmlDiv div = new HtmlDiv();
            if (properties.getOnelinedescription() != null
                    && properties.getOnelinedescription()) {
                div.setStyle("width: 100%;");
            } else {
                div.setStyle("width: " + properties.getLabelLength() + "ex; float: left;");
            }

            String labelString = (String) label.getValue();
            if (labelString != null && labelString.trim().isEmpty()) {
                HtmlOutputText span = new HtmlOutputText();
                span.setValue("&nbsp");
                span.setEscape(false);
                div.getChildren().add(span);
            } else {
                div.getChildren().add(label);
            }

            getChildren().add(div);

            div = new HtmlDiv();
            div.setStyle("overflow: hidden;padding-right:6px;");
            div.getChildren().add(output);
            if (style != null) {
                output.getPassThroughAttributes().put("style", style);
            }
            getChildren().add(div);
        }
View Full Code Here

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

    }

    public static void addInfoIcon(FormBuilderContainer comp, HtmlDiv icons, ResponseWriter writer) throws IOException {
        if (comp.getFbitem().getProperties().getDescription() != null
                && !"".equals(comp.getFbitem().getProperties().getDescription())) {
            HtmlDiv info = new HtmlDiv();
            String infoUuid = "info" + UUID.randomUUID().toString();
            info.setClassString("info");
            info.setId(infoUuid);
            icons.getChildren().add(info);

            writer.write("<script type=\"text/javascript\">"
                    + "$(function(){"
                    + "$(\"#" + infoUuid + "\").tooltip({"
View Full Code Here

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

    /*
     * @param width: width in pixel
     */
    protected void addIFrame(int width) {
        HtmlDiv div = new HtmlDiv();
        div.setStyle("margin:0;padding:0;position:relative;width:" + width + "px;");

        HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
        HtmlOutputText loadImage = new HtmlOutputText();
        loadImage.setEscape(false);
        loadImage.setValue("<div id=\"loadImg\" style=\"position:absolute; left: " + (width / 2 - 25) + "px; top: 200px;\">"
                + "<img width=\"50px\" height=\"50px\" src=\"" + request.getContextPath() + "/javax.faces.resource/formbuilder/images/ajaxReload.gif.xhtml\" />"
                + "</div>");
        div.getChildren().add(loadImage);

        iframe = new HtmlIFrame();
        iframe.setStyle("width: " + width + "px;");
        iframe.setBorder(0);
        iframe.setScrolling(false);
        iframe.setId("iframe" + UUID.randomUUID().toString());
        iframe.setOnload("document.getElementById('loadImg').style.display='none';");
        div.getChildren().add(iframe);
        getChildren().add(div);
    }
View Full Code Here

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

       
        HtmlInputHidden propDialogHeader = new HtmlInputHidden();
        propDialogHeader.setValue(Messages.getStringJSF("dialog.header"));
        propDialogHeader.setId("prop-dialog-header");
       
        HtmlDiv holder = new HtmlDiv();
        holder.setId("holderfiller");
       
        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);
       
        HtmlDiv mandatoryError = new HtmlDiv();
        mandatoryError.setId("mandatoryError");
        mandatoryError.setStyle("color: red;");
        HtmlOutputText mandatoryErrorText = new HtmlOutputText();
        mandatoryErrorText.setValue(Messages.getStringJSF("error.mandatory"));
        mandatoryError.getChildren().add(mandatoryErrorText);
       
        holder.getChildren().add(mandatoryError);
        holder.getChildren().add(contentHolder);
       
        getChildren().add(holder);
       
        HtmlDiv div = new HtmlDiv();
        div.setStyle("clear:left;");       
        getChildren().add(div);
    }
View Full Code Here

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

        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);
            }
        }

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

        HtmlDiv ajaxReload = new HtmlDiv();
        ajaxReload.setId("ajaxReload");
        accordionHolder.getChildren().add(ajaxReload);
        accordionHolder.getChildren().add(accordion);

        holder.getChildren().add(accordionHolder);

        HtmlDiv contentHolder = new HtmlDiv();
        contentHolder.setId("contentHolder");
        contentHolder.getChildren().add(formContent);

        holder.getChildren().add(contentHolder);

        getChildren().add(holder);

        HtmlDiv div = new HtmlDiv();
        div.setStyle("clear:both;");
        getChildren().add(div);
    }
View Full Code Here

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

        this.fetcher = fetcher;
    }

    @Override
    public void renderView() {
        HtmlDiv outputValue = new HtmlDiv();

        if (metaDataObject != null) {
            try {
                MetaDataDescription description =
                        new MetaDataDescription(properties.getMetadataid(), properties.getMetadatadescription());
               
                for (String signature : fetcher.provideMetaData(metaDataObject, description)) {
                    outputValue.getChildren().add(createLine(signature));
                        }
            } catch (MetaDataFetchException ex) {
                outputValue.getChildren().add(createLine("METADATA NOT FOUND!"));
                    }
                }

        properties.setLabel(properties.getMetadatadescription());
        HtmlCustomOutputLabel output = new HtmlCustomOutputLabel(properties);
View Full Code Here

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

        addLabeledComponent(output, outputValue, null);
    }
   
    private UIComponent createLine(String text) {
        HtmlDiv div = new HtmlDiv();
        HtmlOutputText output = new HtmlOutputText();
        output.setEscape(false);
        output.setValue(text);
        div.getChildren().add(output);
        return div;
}
View Full Code Here

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

*/
public class HtmlFormBuilderSpace extends HtmlFormBuilderItem {

    @Override
    public void renderView() {
        HtmlDiv div = new HtmlDiv();
        div.setStyle("height:" + properties.getSize() + "px;");
        getChildren().add(div);
    }
View Full Code Here

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

                }
            }

            for (FormBuilderContainer comp : components) {
                HtmlListItem li = new HtmlListItem();
                HtmlDiv icons = new HtmlDiv();
                icons.setClassString("icons");

                addSettingsIcon(comp, icons);
                addDeleteIcon(comp, icons);
                FormFillerInternalRenderer.addInfoIcon(comp, icons, writer);
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.