Package javax.faces.component.html

Examples of javax.faces.component.html.HtmlPanelGroup


        toolTip.getFacets().put("defaultContent", defContent);
        HtmlOutputText toolTipContent = (HtmlOutputText) application.createComponent("javax.faces.HtmlOutputText");
        toolTipContent.setValue("ToolTip Conntent");
        toolTip.getChildren().add(toolTipContent);
       
        HtmlPanelGroup parentComp = (HtmlPanelGroup) application.createComponent("javax.faces.HtmlPanelGroup");
        parentComp.setId("parentID");
        parentComp.getChildren().add(toolTip);
    
        blockToolTip = (UIToolTip)application.createComponent("org.richfaces.component.ToolTip");
        blockToolTip.setId("blocktootipId");
        blockToolTip.setLayout("block");
        blockToolTip.setMode("ajax");
View Full Code Here


    private UIComponent createLogPageContent(FacesContext context, Debug debug) {
        HtmlPanelGrid panelGrid = (HtmlPanelGrid) Components.createChildComponent(context, debug, HtmlPanelGrid.COMPONENT_TYPE, "consoleContainer");
        panelGrid.setStyle("width: 100%; height: 100%;");
        panelGrid.setColumns(1);
        panelGrid.setRowClasses("o_debugRow1, o_debugRow2");
        HtmlPanelGroup toolbar = (HtmlPanelGroup) Components.createChildComponent(context, panelGrid, HtmlPanelGroup.COMPONENT_TYPE, "consoleToolbar");
        addButton(context, toolbar, "clearLog", "Clear");
        addButton(context, toolbar, "pauseLog", "Pause");


        DataTable logTable = (DataTable) Components.createChildComponent(
View Full Code Here

    public void setInverse(boolean inverse) {
        this.inverse = inverse;
    }

    private UIComponent createRowContainer(FacesContext context, CompositeFilter compositeFilter) {
        HtmlPanelGroup rowContainer = (HtmlPanelGroup) Components.createChildComponent(
                context, compositeFilter, HtmlPanelGroup.COMPONENT_TYPE, rowIdSuffix);
        rowContainer.setLayout("block");
        rowContainer.setStyleClass(DEFAULT_ROW_CLASS);

        createDeleteButton(context, rowContainer, compositeFilter);
        createAddButton(context, rowContainer, compositeFilter);
        return rowContainer;
    }
View Full Code Here

        return Components.getChildBySuffix(compositeFilter, rowIdSuffix);
    }


    private HtmlSelectBooleanCheckbox createInverseCheckBox(FacesContext context, UIComponent rowContainer) {
        HtmlPanelGroup inverseCheckBoxContainer = (HtmlPanelGroup) Components.createChildComponent(context, rowContainer, HtmlPanelGroup.COMPONENT_TYPE, INVERSE_CHECKBOX_CONTAINER_SUFFIX, 1);

        inverseCheckBoxContainer.setStyleClass(DEFAULT_ROW_ITEM_CHECKBOX_CLASS);
        HtmlSelectBooleanCheckbox inverseCheckBox = (HtmlSelectBooleanCheckbox) Components.createChildComponent(context, inverseCheckBoxContainer, HtmlSelectBooleanCheckbox.COMPONENT_TYPE, CHECKBOX_SUFFIX);
        //TODO: add onclick that will send ajax request to update component state       
        inverseCheckBox.setStyleClass(DEFAULT_INVERSE_CHECKBOX_CLASS);
        inverseCheckBox.setTitle(INVERSE_LABEL);
View Full Code Here

    private HtmlSelectBooleanCheckbox findInverseCheckBox(FacesContext context, CompositeFilter compositeFilter) {
        UIComponent rowContainer = getRowContainer(compositeFilter);
        if (rowContainer == null) {
            return null;
        }
        HtmlPanelGroup inverseContainer = getInverseCheckBoxContainer(rowContainer);
        if (inverseContainer == null) {
            return null;
        }
        HtmlSelectBooleanCheckbox inverseCheckBox = getInverseCheckBox(inverseContainer);
        return inverseCheckBox;
View Full Code Here

        return inverseCheckBox;
    }


    private CommandButton createAddButton(FacesContext context, UIComponent rowContainer, CompositeFilter compositeFilter) {
        HtmlPanelGroup addButtonContainer = (HtmlPanelGroup) Components.createChildComponent(context, rowContainer, HtmlPanelGroup.COMPONENT_TYPE, ADD_BUTTON_CONTAINER_SUFFIX);
        addButtonContainer.setStyleClass(DEFAULT_ROW_ITEM_CLASS);
        CommandButton addButton = (CommandButton) Components.createChildComponent(context, addButtonContainer, CommandButton.COMPONENT_TYPE, BUTTON_SUFFIX);
        addButton.setType("button");
        addButton.setValue("+");
        addButton.setOnclick("O$('" + compositeFilter.getClientId(context) + "').add(); return false;");
        addButtonContainer.setValueExpression("rendered", new ValueExpressionImpl() {
            public Object getValue(ELContext elContext) {
                return lastRow;
            }
        });
        addButton.setStyleClass(DEFAULT_ADD_BUTTON_CLASS);
View Full Code Here

        addButton.setStyleClass(DEFAULT_ADD_BUTTON_CLASS);
        return addButton;
    }

    private CommandButton createDeleteButton(FacesContext context, UIComponent rowContainer, CompositeFilter compositeFilter) {
        HtmlPanelGroup deleteButtonContainer = (HtmlPanelGroup) Components.createChildComponent(context, rowContainer, HtmlPanelGroup.COMPONENT_TYPE, DELETE_BUTTON_CONTAINER_SUFFIX);
        deleteButtonContainer.setStyleClass(DEFAULT_ROW_ITEM_CLASS);
        CommandButton deleteButton = (CommandButton) Components.createChildComponent(context, deleteButtonContainer, CommandButton.COMPONENT_TYPE, BUTTON_SUFFIX);
        deleteButton.setType("button");
        deleteButton.setValue("-");
        deleteButton.setOnclick("O$('" + compositeFilter.getClientId(context) + "').remove(" + index + "); return false;");
        deleteButton.setStyleClass(DEFAULT_DELETE_BUTTON_CLASS);
View Full Code Here

        return deleteButton;
    }


    private HtmlPanelGroup createPropertySelectorContainer(FacesContext context, UIComponent rowContainer) {
        HtmlPanelGroup propertySelectorContainer = (HtmlPanelGroup) Components.createChildComponent(context, rowContainer, HtmlPanelGroup.COMPONENT_TYPE, PROPERTY_SELECTOR_ID_SUFFIX, 0);
        propertySelectorContainer.setStyleClass(DEFAULT_ROW_ITEM_INPUT_CLASS);
        return propertySelectorContainer;
    }
View Full Code Here

    }

    private DropDownField findPropertySelector(CompositeFilter compositeFilter) {
        UIComponent rowContainer = getRowContainer(compositeFilter);
        if (rowContainer == null) return null;
        HtmlPanelGroup propertySelectorContainer = getPropertySelectorContainer(rowContainer);
        if (propertySelectorContainer == null) return null;
        DropDownField propertySelector = getPropertySelector(propertySelectorContainer);
        return propertySelector;
    }
View Full Code Here

        return propertySelector;
    }


    private HtmlPanelGroup createOperationSelectorContainer(FacesContext context, UIComponent rowContainer) {
        HtmlPanelGroup operationSelectorContainer = (HtmlPanelGroup) Components.createChildComponent(context, rowContainer, HtmlPanelGroup.COMPONENT_TYPE, OPERATION_SELECTOR_ID_SUFFIX, 2);
        operationSelectorContainer.setStyleClass(DEFAULT_ROW_ITEM_INPUT_CLASS);
        operationSelectorContainer.setValueExpression("rendered", new ValueExpressionImpl() {
            public Object getValue(ELContext elContext) {
                return property != null;
            }
        });
        return operationSelectorContainer;
View Full Code Here

TOP

Related Classes of javax.faces.component.html.HtmlPanelGroup

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.