Package org.openfaces.component.panel

Examples of org.openfaces.component.panel.FoldingDirection


            for (ExpansionToggleButton expansionToggleButton : expansionToggleButtons) {
                prepareToggleButton(foldingPanel, expansionToggleButton);
            }
        }

        FoldingDirection foldingDirection = foldingPanel.getFoldingDirection();
        if (!FoldingDirection.UP.equals(foldingDirection)) {
            renderCaption(context, foldingPanel);

            writer.endElement("td");
            writer.endElement("tr");
View Full Code Here


        if (AjaxUtil.getSkipExtraRenderingOnPortletsAjax(context))
            return;

        ResponseWriter writer = context.getResponseWriter();
        FoldingPanel panel = (FoldingPanel) component;
        FoldingDirection foldingDirection = panel.getFoldingDirection();
        if (FoldingDirection.UP.equals(foldingDirection)) {
            writer.endElement("td");
            writer.endElement("tr");

            writer.startElement("tr", panel);
View Full Code Here

    }

    @Override
    protected void writeAdditionalCaptionCellContent(ResponseWriter writer, ComponentWithCaption component) throws IOException {
        FoldingPanel panel = (FoldingPanel) component;
        FoldingDirection foldingDirection = panel.getFoldingDirection();
        if (!panel.isExpanded() &&
                (FoldingDirection.LEFT.equals(panel.getFoldingDirection()) || FoldingDirection.RIGHT.equals(foldingDirection))) {
            writer.writeAttribute("style", "display: none;", null);
        }
    }
View Full Code Here

    @Override
    protected CaptionArea getDefaultButtonsArea(ComponentWithCaption component) {
        CaptionArea area = super.getDefaultButtonsArea(component);

        FoldingPanel foldingPanel = (FoldingPanel) component;
        FoldingDirection foldingDirection = foldingPanel.getFoldingDirection();
        boolean horizontalFoldingDirection =
                FoldingDirection.LEFT.equals(foldingDirection) || FoldingDirection.RIGHT.equals(foldingDirection);
        boolean buttonsOnTheLeft = horizontalFoldingDirection && FoldingDirection.RIGHT.equals(foldingDirection);
        area.setAlignment(buttonsOnTheLeft ? Side.LEFT : Side.RIGHT);
        return area;
View Full Code Here

TOP

Related Classes of org.openfaces.component.panel.FoldingDirection

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.