Package org.noos.xing.mydoggy

Examples of org.noos.xing.mydoggy.Content


            tw.setActive(toolPageComponent.isActive());
            dockable = tw;
        }
        else {
            // Create and register a new content to the mydoggy layout manager
            Content c = contentManager.addContent(pageComponent.getId(), pageComponent.getDisplayName(), // tabName
                    pageComponent.getIcon(), pageComponent.getControl(), pageComponent.getDisplayName(), // toolTip
                    constraint);
            dockable = c;
        }
        Assert.notNull(dockable);
View Full Code Here


    @Override
    public void setActiveComponent(PageComponent pageComponent) {
        if (pageComponent != null) {
            // really necessary?
            Content c = getContent(pageComponent.getId());
            if (c != null) {
                // c.ensureVisible();
            }
            setActive(pageComponent.getId());
        }
View Full Code Here

     * @return true if it was successful.
     */
    private boolean setActive(final String id) {
        Assert.isTrue(SwingUtilities.isEventDispatchThread());

        Content c = getContent(id);
        if (c != null) {
            c.setSelected(true);
            return true;
        }
        return false;
    }
View Full Code Here

     * SpringRC should be informed of a MyDoggy closing event.
     */
    private class MyDoggyContentListener implements ContentManagerUIListener {

        public boolean contentUIRemoving(ContentManagerUIEvent cmEvent) {
            Content content = cmEvent.getContentUI().getContent();
            Assert.notNull(content);
            PageComponent pc = getPageComponent(content.getId());
            Assert.notNull(pc);
            close(pc);

            // let mydoggy remove the page ! (don't no for sure if this is the
            // reason of the NPE in mydoggy if we return close(pc))
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.Content

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.