Package org.openfaces.component.panel

Examples of org.openfaces.component.panel.MultiPageContainer


    public JSONObject encodeAjaxPortion(FacesContext context, UIComponent component, String portionName, JSONObject jsonParam) throws IOException {
        if (!portionName.startsWith(PAGE_PORTION_NAME_PREFIX))
            throw new IllegalArgumentException("Unknown portionName: " + portionName);
        String pageIndexStr = portionName.substring(PAGE_PORTION_NAME_PREFIX.length());
        int absolutePageIndex = Integer.parseInt(pageIndexStr);
        MultiPageContainer container = (MultiPageContainer) component;
        List subPanels = container.getSubPanels(true);
        encodePageContent(context, container, subPanels, absolutePageIndex, false, null);
        container.setItemRendered(absolutePageIndex, true);
        return null;
    }
View Full Code Here


            component.encodeAll(context);
        }
    }

    protected void changeTabIndex(UIComponent component, int selectedIndex) {
        MultiPageContainer container = (MultiPageContainer) component;
        int oldSelectedIndex = container.getSelectedIndex();
        container.setSelectedIndex(selectedIndex);
        if (oldSelectedIndex != selectedIndex) {
            container.queueEvent(new SelectionChangeEvent(container, oldSelectedIndex, selectedIndex));
        }
    }
View Full Code Here

TOP

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

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.