Package org.onemind.swingweb.client.gwt.widget

Examples of org.onemind.swingweb.client.gwt.widget.SplitPane$Divider


        super(client);
    }

    protected Object createComponentInstance(Object parent, DomNode element)
    {
        SplitPane sp = new SplitPane();
        return sp;
    }
View Full Code Here


        return sp;
    }

    protected void handleChildren(AbstractClient rootHandler, IContainer c, DomNode element)
    {
        SplitPane sp = (SplitPane) c;
        List firstChild = getChildrenByTag(element, "firstComponent");
        if (firstChild.size() > 0)
        {
            DomNode childNode = (DomNode) firstChild.get(0);
            Widget w = (Widget) rootHandler.handle(c, getFirstChildElement(childNode));
            sp.setFirstComponent(w);
        }
        List secondChild = getChildrenByTag(element, "secondComponent");
        if (secondChild.size() > 0)
        {
            DomNode childNode = (DomNode) secondChild.get(0);
            Widget w = (Widget) rootHandler.handle(c, getFirstChildElement(childNode));
            sp.setSecondComponent(w);
        }
    }
View Full Code Here

    protected Object updateUI(Object com, DomNode element)
    {
        int dividerSize = getInt(element, "dividerSize");
        int dividerLoc = getInt(element, "dividerLocation");
        String orientation = element.getAttribute("orientation");
        SplitPane sp = (SplitPane) com;
        sp.setDividerSize(dividerSize);
        sp.setDividerLoc(dividerLoc);
        if ("horizontal".equals(orientation))
        {
            sp.setOrientation(SplitPane.HORIZONTAL);
        } else
        {
            sp.setOrientation(SplitPane.VERTICAL);
        }
        return super.updateUI(com, element);
    }
View Full Code Here

TOP

Related Classes of org.onemind.swingweb.client.gwt.widget.SplitPane$Divider

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.