Package org.noos.xing.mydoggy.plaf.ui.content

Examples of org.noos.xing.mydoggy.plaf.ui.content.ContentDescriptor$RepresentativeAnchorLabel


                    content.setFlashing(getBoolean(context, contentElement, "flashing", false));

                    // Load "minimizedState" sub element if any
                    Element minimizedStateElem = getElement(contentElement, "minimizedState");
                    if (minimizedStateElem != null && content.isMinimized()) {
                        ContentDescriptor contentDescriptor = (ContentDescriptor) toolWindowManager.getDockableDescriptor(content.getId());
                        contentDescriptor.setAnchor(getToolWindowAnchor(context, minimizedStateElem, "anchor", ToolWindowAnchor.LEFT),
                                getInteger(context, minimizedStateElem, "anchorIndex", -1)
                        );
                    }

View Full Code Here


            ToolWindowDescriptor descriptor = new ToolWindowDescriptor(this, (MyDoggyToolWindow) dockable);
            tools.put(dockable.getId(), descriptor);
            dockableDescriptorMap.put(dockable.getId(), descriptor);
            return descriptor;
        } else if (dockable instanceof Content) {
            return new ContentDescriptor(this, (Content) dockable);
        }
        throw new IllegalArgumentException("Invalid dockable. [dockable : " + dockable + "]");
    }
View Full Code Here

                        writer.dataElement("detachedBounds", attributes);
                    }

                    // Prepare "minimizedState" sub element if necessary
                    if (content.isMinimized()) {
                        ContentDescriptor contentDescriptor = (ContentDescriptor) toolWindowManager.getDockableDescriptor(content.getId());

                        AttributesImpl attributes = new AttributesImpl();
                        attributes.addAttribute(null, "anchor", null, null, contentDescriptor.getAnchor().toString());
                        attributes.addAttribute(null, "anchorIndex", null, null, String.valueOf(contentDescriptor.getAnchorIndex()));

                        writer.dataElement("minimizedState", attributes);
                    }

                    writer.endElement("content");
View Full Code Here

    public DockableDescriptor createDescriptor(Dockable dockable) {
        if (dockable instanceof ToolWindow)
            return new ToolWindowDescriptor(this, (MyDoggyToolWindow) dockable);
        else if (dockable instanceof Content)
            return new ContentDescriptor(this, (Content) dockable);
        throw new IllegalArgumentException("Invalid dockable. [dockable : " + dockable + "]");
    }
View Full Code Here

    public DockableDescriptor createDescriptor(Dockable dockable) {
        if (dockable instanceof ToolWindow)
            return new ToolWindowDescriptor(this, (MyDoggyToolWindow) dockable);
        else if (dockable instanceof Content)
            return new ContentDescriptor(this, (Content) dockable);
        throw new IllegalArgumentException("Invalid dockable. [dockable : " + dockable + "]");
    }
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.ui.content.ContentDescriptor$RepresentativeAnchorLabel

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.