Examples of TabContainer


Examples of org.onemind.swingweb.client.gwt.widget.TabContainer

    /**
     * {@inheritDoc}
     */
    protected Object createComponentInstance(Object parent, DomNode element)
    {
        TabContainer t = new TabContainer();
        return t;
    }
View Full Code Here

Examples of org.onemind.swingweb.client.gwt.widget.TabContainer

    /**
     * {@inheritDoc}
     */
    protected void handleChildren(AbstractClient rootHandler, IContainer c, DomNode element)
    {
        TabContainer tabCon = (TabContainer) c;
        tabCon.clearTabs();
        List tabsList = getChildrenByTag(element, "tabs");
        if (tabsList.size() > 0)
        {
            DomNode tabsNode = (DomNode) tabsList.get(0);
            List tabs = getChildrenByTag(tabsNode, "tab");
            for (int i = 0; i < tabs.size(); i++)
            {
                DomNode tabNode = (DomNode) tabs.get(i);
                String label = tabNode.getAttribute("label");
                String selected = tabNode.getAttribute("selected");
                tabCon.addTab(label);
                if ("true".equalsIgnoreCase(selected))
                {
                    tabCon.setActiveTab(i);
                }
            }
        }
        List tabContent = getChildrenByTag(element, "tabContent");
        for (int i = 0; i < tabContent.size(); i++)
        {
            DomNode contentNode = (DomNode) tabContent.get(i);
            List colList = getChildrenByTag(contentNode, "element");
            if (colList.size() > 0)
            {
                DomNode elementNode = (DomNode) colList.get(0);
                Widget content = (Widget) getClient().handle(this, elementNode);
                tabCon.setContent(content);
            }
        }
    }
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.