Package javax.faces.component.html

Examples of javax.faces.component.html.HtmlPanelGrid



    @Override
    protected UIComponent createComponentToTest()
    {
        return new HtmlPanelGrid();
    }
View Full Code Here


        }
        String captionClass;
        String captionStyle;
        if (component instanceof HtmlPanelGrid)
        {
            HtmlPanelGrid panelGrid = (HtmlPanelGrid) component;
            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        }
        else if (component instanceof HtmlDataTable)
        {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
View Full Code Here


    @Override
    protected UIComponent createComponentToTest()
    {
        return new HtmlPanelGrid();
    }
View Full Code Here

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

        panelGrid = new HtmlPanelGrid();
        colText = new HtmlOutputText();

        writer = new MockResponseWriter(new StringWriter(), null, null);
        facesContext.setResponseWriter(writer);
View Full Code Here

        String captionClass;
        String captionStyle;

        if (component instanceof HtmlPanelGrid)
        {
            HtmlPanelGrid panelGrid = (HtmlPanelGrid) component;
            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        }
        else if (component instanceof HtmlDataTable)
        {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
View Full Code Here

        String labelVar = BUNDLE_VALUE;
        String var = "#{" + varName + "." + NamingConstants.ATTRIBUTES + "['%s'].%s}";

        columns  = columns == 0 ? 2 : columns * 2;
       
        HtmlPanelGrid panel = (HtmlPanelGrid) app.createComponent(HtmlPanelGrid.COMPONENT_TYPE);
        panel.setColumns(columns);

        /*
         * First find bar code attribute it should be added before
         */
        for (AbstractAttribute attr : attributes) {
            String valExp = null;
            UIComponent cmp = null;
            switch (attr.getDataType()) {
                case STRING:
                    valExp = String.format(var,
                                            attr.getName(),
                                            NamingConstants.STRING_VALUE);

                    cmp = app.createComponent(InputText.COMPONENT_TYPE);
                    ((InputText)cmp).setValueExpression(VALUE_NAME, getExpression(valExp));
                    break;

                case NUMBER:
                    valExp = String.format(var, attr.getName(),
                                            NamingConstants.NUMBER_VALUE);

                    cmp = app.createComponent(InputText.COMPONENT_TYPE);
                    ((InputText)cmp).setValueExpression(VALUE_NAME, getExpression(valExp));
                    ((InputText)cmp).setConverter(new NumberConverter());
                    break;

                case DATE:
                    valExp = String.format(var, attr.getName(),
                                            NamingConstants.DATE_VALUE);

                    cmp = app.createComponent(Calendar.COMPONENT_TYPE);
                    ((Calendar)cmp).setValueExpression(VALUE_NAME, getExpression(valExp));
                    break;
            }

            HtmlOutputLabel label = (HtmlOutputLabel) app.createComponent(HtmlOutputLabel.COMPONENT_TYPE);
            label.setValueExpression(VALUE_NAME, getExpression(String.format(labelVar, attr.getName())));

            panel.getChildren().add(label);
            panel.getChildren().add(cmp);
        }

        return panel;
    }
View Full Code Here

        }
        String captionClass;
        String captionStyle;
        if (component instanceof HtmlPanelGrid)
        {
            HtmlPanelGrid panelGrid = (HtmlPanelGrid) component;
            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        }
        else if (component instanceof HtmlDataTable)
        {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
View Full Code Here

        String captionClass;
        String captionStyle;

        if (component instanceof HtmlPanelGrid) {
            HtmlPanelGrid panelGrid = (HtmlPanelGrid) component;
            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        } else if (component instanceof HtmlDataTable) {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
            captionStyle = dataTable.getCaptionStyle();
        } else {
View Full Code Here

        String captionClass;
        String captionStyle;

        if (component instanceof HtmlPanelGrid) {
            HtmlPanelGrid panelGrid = (HtmlPanelGrid) component;
            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        } else if (component instanceof HtmlDataTable) {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
            captionStyle = dataTable.getCaptionStyle();
        } else {
View Full Code Here

        String captionClass;
        String captionStyle;

        if (component instanceof HtmlPanelGrid) {
            HtmlPanelGrid panelGrid = (HtmlPanelGrid) component;
            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        } else if (component instanceof HtmlDataTable) {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
            captionStyle = dataTable.getCaptionStyle();
        } else {
View Full Code Here

TOP

Related Classes of javax.faces.component.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.