Examples of HtmlPanelGroup


Examples of javax.faces.component.html.HtmlPanelGroup

    protected UIComponent createUnitLabel(String tagStyle, InputInfo ii, String value)
    {
        HtmlOutputText text = new HtmlOutputText();
        text.setValue(value);
        // wrap
        HtmlPanelGroup span = new HtmlPanelGroup();
        String styleClass = TagEncodingHelper.getTagStyleClass(tagStyle, TagEncodingHelper.getDataTypeClass(ii.getColumn().getDataType()), null, null);
        span.getAttributes().put("styleClass", styleClass);
        span.getChildren().add(text);
        return span;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

            label.getChildren().clear();
    }
   
    protected void addRequiredMark(HtmlOutputLabel label)
    {
        HtmlPanelGroup span = new HtmlPanelGroup();
        span.setStyleClass("required");
        HtmlOutputText text = new HtmlOutputText();
        text.setValue("*");
        span.getChildren().add(text);
        label.getChildren().add(span);
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

        Collection<String> value = new ArrayList<String>();
        value.add("value#1");
        value.add("value#2");
        uidata.setValue(value);
        // header facet
        UIComponent headerFacet = new HtmlPanelGroup();
        uidata.setHeader(headerFacet);
        // footer facet
        UIComponent footerFacet = new HtmlPanelGroup();
        uidata.setFooter(footerFacet);
        // first child
        UIComponent child1 = new UIColumn();
        // facet of first child
        UIComponent facetOfChild1 = new HtmlPanelGroup();
        child1.getFacets().put("someFacet", facetOfChild1);
        // child of first child
        UIOutput childOfChild1 = new UIOutput();
        child1.getChildren().add(childOfChild1);
        uidata.getChildren().add(child1);
        // second child (should not be processed --> != UIColumn)
        UIComponent child2 = new HtmlPanelGroup();
        uidata.getChildren().add(child2);
        VisitCallback callback = null;
       
        IMocksControl control = EasyMock.createControl();
        VisitContext visitContextMock = control.createMock(VisitContext.class);
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

    public void setUp() throws Exception
    {
        super.setUp();

        panelGroup = new HtmlPanelGroup();

        HtmlOutputText panelChildOutputText = new HtmlOutputText();
        panelChildOutputText.setValue(PANEL_CHILD_TEXT);
        panelGroup.getChildren().add(panelChildOutputText);
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

    private static final String UNSET_ATTRIBUTE = "unset";
    private static final String OVERRIDE_ATTRIBUTE = "override";

    @NotNull
    public static HtmlPanelGroup createBlockPanel(FacesComponentIdFactory idFactory, String styleClass) {
        HtmlPanelGroup panel = createComponent(HtmlPanelGroup.class, idFactory);
        panel.setLayout("block");
        panel.setStyleClass(styleClass);
        return panel;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

    }

    @NotNull
    public static HtmlPanelGroup addBlockPanel(@NotNull
    UIComponent parent, FacesComponentIdFactory idFactory, String styleClass) {
        HtmlPanelGroup panel = createBlockPanel(idFactory, styleClass);
        parent.getChildren().add(panel);
        return panel;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

    }

    @NotNull
    public static HtmlPanelGroup addInlinePanel(@NotNull
    UIComponent parent, FacesComponentIdFactory idFactory, String styleClass) {
        HtmlPanelGroup panel = createComponent(HtmlPanelGroup.class, idFactory);
        panel.setStyleClass(styleClass);
        parent.getChildren().add(panel);
        return panel;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

            || ((configurationComponent.getConfiguration() != null) && configurationComponent.getConfiguration()
                .getMap().isEmpty())) {
            if (configurationComponent.getNullConfigurationDefinitionMessage() != null) {
                String styleClass = (configurationComponent.getNullConfigurationStyle() == null) ? "ErrorBlock"
                    : configurationComponent.getNullConfigurationStyle();
                HtmlPanelGroup messagePanel = FacesComponentUtility.addBlockPanel(configurationComponent,
                    configurationComponent, styleClass);
                FacesComponentUtility.addVerbatimText(messagePanel,
                    configurationComponent.getNullConfigurationDefinitionMessage());
            }
            return;
        }

        if (configurationComponent.getConfiguration() == null) {
            if (configurationComponent.getNullConfigurationMessage() != null) {
                HtmlPanelGroup messagePanel = FacesComponentUtility.addBlockPanel(configurationComponent,
                    configurationComponent, "WarnBlock");
                FacesComponentUtility.addVerbatimText(messagePanel,
                    configurationComponent.getNullConfigurationMessage());
            }
            return;
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

        }

        // Now add a new component to the JSF component tree.
        AbstractPropertyBagUIComponentTreeFactory propertyListUIComponentTreeFactory = new MapInListUIComponentTreeFactory(
            configurationComponent, configurationComponent.getListName(), configurationComponent.getListIndex());
        HtmlPanelGroup propertiesPanel = FacesComponentUtility.addBlockPanel(configurationComponent,
            configurationComponent, UNGROUPED_PROPERTIES_STYLE_CLASS);
        propertiesPanel.getChildren().add(propertyListUIComponentTreeFactory.createUIComponentTree(null));
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

            + mapName + "'.");
    }

    private void addRequiredNotationsKey(AbstractConfigurationComponent config) {
        addDebug(config, true, ".addNotePanel()");
        HtmlPanelGroup footnotesPanel = FacesComponentUtility.addBlockPanel(config, config, NOTE_PANEL_STYLE_CLASS);
        FacesComponentUtility.addOutputText(footnotesPanel, config, "*", REQUIRED_MARKER_TEXT_STYLE_CLASS);
        FacesComponentUtility.addOutputText(footnotesPanel, config, " denotes a required field.",
            FacesComponentUtility.NO_STYLE_CLASS);
        if (config.isGroup()) {
            HtmlPanelGroup overridePanel = FacesComponentUtility.addBlockPanel(config, config, NOTE_PANEL_STYLE_CLASS);
            FacesComponentUtility.addOutputText(overridePanel, config,
                "note: if override is not checked, that property will not be altered on any group members",
                FacesComponentUtility.NO_STYLE_CLASS);
        }

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.