Package org.noos.xing.mydoggy

Examples of org.noos.xing.mydoggy.ContentManager.addContent()


        JMenuItem toolsContentItem = new JMenuItem("Tools");
        toolsContentItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                ContentManager contentManager = toolWindowManager.getContentManager();
                if (contentManager.getContent("Tools") == null)
                    contentManager.addContent("Tools", "Tools", null, toolsContent, "ToolWindows").setPopupMenu(toolsPopupMenu);
            }
        });

        JMenuItem groupEditorContentItem = new JMenuItem("Groups");
        groupEditorContentItem.addActionListener(new ActionListener() {
View Full Code Here


        groupEditorContentItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                ContentManager contentManager = toolWindowManager.getContentManager();

                if (contentManager.getContent("Group Editor") == null)
                    contentManager.addContent("Group Editor", "Group Editor", null, groupEditorContent, "ToolWindowGroup").setPopupMenu(groupsPopupMenu);
            }
        });

        JMenuItem contentsContentItem = new JMenuItem("Contents");
        contentsContentItem.addActionListener(new ActionListener() {
View Full Code Here

        contentsContentItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                ContentManager contentManager = toolWindowManager.getContentManager();

                if (contentManager.getContent("Contents") == null)
                    contentManager.addContent("Contents", "Contents", null, contentsContent, "Contents Editor");
            }
        });

        contentMenu.add(toolsContentItem);
        contentMenu.add(groupEditorContentItem);
View Full Code Here

    protected void initContentManager() {
         JTree treeContent = new JTree();

        ContentManager contentManager = toolWindowManager.getContentManager();
        Content content = contentManager.addContent("Tree Key",
                                                    "Tree Title",
                                                    null,      // An icon
                                                    treeContent);
        content.setToolTipText("Tree tip");
View Full Code Here

    public void actionPerformed(ActionEvent e) {
        ContentManager contentManager = toolWindowManager.getContentManager();
        Content content = contentManager.getContent(contentId);
        if (content == null) {
            content = contentManager.addContent(contentId,
                                                        title,
                                                        icon,
                                                        component,
                                                        tooltip);
            content.getContentUI().setAlwaysOnTop(false);
View Full Code Here

        JPopupMenu popupMenu = new JPopupMenu("CPM");
        popupMenu.add("1");
        popupMenu.add("2");
        popupMenu.add("3");

        Content content = contentManager.addContent("Hello", "Hello", null, new JButton("Hello"));
//        content.setPopupMenu(popupMenu);

        contentManager.setPopupMenu(popupMenu);
    }
View Full Code Here

        assertNotNull(toolWindowManager.getContentManager());
    }

    public void testAddContentOne() {
        ContentManager contentManager = toolWindowManager.getContentManager();
        Content content = contentManager.addContent("key", "title", null, new JButton("Hello World!!!"));

        assertNotNull(content);
        assertEquals(contentManager.getContentCount(), 1);

        content = contentManager.getContent(0);
View Full Code Here

        assertTrue(content.getComponent() instanceof JButton);
    }

    public void testAddContentTwo() {
        ContentManager contentManager = toolWindowManager.getContentManager();
        Content content = contentManager.addContent("key", "title", null, new JButton("Hello World!!!"), "tip");

        assertNotNull(content);
        assertEquals(contentManager.getContentCount(), 1);

        content = contentManager.getContent(0);
View Full Code Here

        assertTrue(content.getComponent() instanceof JButton);
    }

    public void testAlias() {
        ContentManager contentManager = toolWindowManager.getContentManager();
        Content content = contentManager.addContent("key", "title", null, new JButton("Hello World!!!"), "tip");

        assertNotNull(contentManager.getAliases(content));
        assertEquals(0, contentManager.getAliases(content).length);

        contentManager.addAlias(content, ContentManager.class);
View Full Code Here

    }

    public void actionPerformed(ActionEvent e) {
        ContentManager contentManager = toolWindowManager.getContentManager();
        if (contentManager.getContent(contentId) == null) {
            Content content = contentManager.addContent(contentId,
                                      title,
                                      icon,
                                      component,
                                      tooltip);
            if (mnemonic != -1)
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.