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

Examples of org.noos.xing.mydoggy.plaf.ui.content.MyDoggyMultiSplitContentManagerUI


        // Setup contents

        ContentManager subContentManager = nestedToolManager.getContentManager();

        subContentManager.setContentManagerUI(new MyDoggyMultiSplitContentManagerUI());

        Content browseContent = subContentManager.addContent("Browse", "Browse", null, new JButton("BrowseButton"), null,
                                                             new MultiSplitConstraint(AggregationPosition.BOTTOM));
        TabbedContentUI contentBrowse = (TabbedContentUI) browseContent.getContentUI();
        contentBrowse.setCloseable(false);
View Full Code Here


        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        MyDoggyToolWindowManager myDoggyToolWindowManager = new MyDoggyToolWindowManager();
        toolWindowManager = myDoggyToolWindowManager;
        ContentManager contentManager = toolWindowManager.getContentManager();
        MultiSplitContentManagerUI contentManagerUI = new MyDoggyMultiSplitContentManagerUI();
        contentManager.setContentManagerUI(contentManagerUI);

        contentManagerUI.setShowAlwaysTab(true);
        contentManagerUI.setTabPlacement(TabPlacement.TOP);

        getContentPane().add(myDoggyToolWindowManager, BorderLayout.CENTER);

        JPopupMenu popupMenu = new JPopupMenu("CPM");
        popupMenu.add("1");
View Full Code Here

        //
        MyDoggyToolWindowManager myDoggyToolWindowManager = new
                MyDoggyToolWindowManager();
        toolWindowManager = myDoggyToolWindowManager;
        ContentManager contentManager = toolWindowManager.getContentManager();
        MultiSplitContentManagerUI contentManagerUI = new
                MyDoggyMultiSplitContentManagerUI();
        contentManager.setContentManagerUI(contentManagerUI);

        contentManagerUI.setShowAlwaysTab(true);
        contentManagerUI.setTabPlacement(TabPlacement.TOP);

        getContentPane().add(myDoggyToolWindowManager, BorderLayout.CENTER);

        doTheTest();
    }
View Full Code Here

    public MyDoggyToolWindowManager buildToolWindow() {
        this.toolW = new MyDoggyToolWindowManager();
        ContentManager contentManager = toolW.getContentManager();

        MyDoggyMultiSplitContentManagerUI contentUI = new MyDoggyMultiSplitContentManagerUI();
        this.toolW.getContentManager().setContentManagerUI(contentUI);


        for (int i = 0; i < 18; i++) {
            JPanel pane = new JPanel();
View Full Code Here

            //  pane.setPreferredSize(new Dimension(400,400));
            Content cont = contentManager.addContent("content" + i, "content" + i, null, pane);
        }


        MyDoggyMultiSplitContentManagerUI contentUI = new MyDoggyMultiSplitContentManagerUI();
        this.toolWindowManager.getContentManager().setContentManagerUI(contentUI);

        return this.toolWindowManager;
    }
View Full Code Here

    }

    public MyDoggyToolWindowManager buildToolWindow() {
        this.toolW = new MyDoggyToolWindowManager();

        toolW.getContentManager().setContentManagerUI(new MyDoggyMultiSplitContentManagerUI());

        ContentManager contentManager = toolW.getContentManager();

        ((TabbedContentManagerUI) contentManager.getContentManagerUI()).setShowAlwaysTab(true);
View Full Code Here

        frame.setVisible(true);
    }

    private static void initContentManager(MyDoggyToolWindowManager myDoggyToolWindowManager) {
        ContentManager contentManager = myDoggyToolWindowManager.getContentManager();
        TabbedContentManagerUI contentManagerUI = new MyDoggyMultiSplitContentManagerUI();
        contentManager.setContentManagerUI(contentManagerUI);
        contentManagerUI.setPopupMenuEnabled(false);
        contentManagerUI.setMinimizable(false);
        contentManagerUI.setMaximizable(false);
        contentManagerUI.setDetachable(true);
        contentManagerUI.setCloseable(true);
        contentManagerUI.setTabPlacement(TabbedContentManagerUI.TabPlacement.TOP);
        contentManagerUI.setShowAlwaysTab(true);
        contentManagerUI.setTabLayout(TabLayout.WRAP);

        for (int index = 0; index < 3; index++) {
            String contentId = "Content_" + index;
            Content content = contentManager.addContent(contentId, contentId, null, new JPanel());
            content.getContentUI().setDetachable(true);
View Full Code Here

        ContentManager contentManager = toolWindowManager.getContentManager();

//        TabbedContentManagerUI managerUI = (TabbedContentManagerUI) contentManager.getContentManagerUI();
//        managerUI.setShowAlwaysTab(true);

        contentManager.setContentManagerUI(new MyDoggyMultiSplitContentManagerUI());
        MultiSplitContentManagerUI managerUI = (MultiSplitContentManagerUI) contentManager.getContentManagerUI();
        managerUI.setShowAlwaysTab(true);
    }
View Full Code Here

            }
        });


        // Setup ContentManagerUI
        toolWindowManager.getContentManager().setContentManagerUI(new MyDoggyMultiSplitContentManagerUI());

        MultiSplitContentManagerUI contentManagerUI = (MultiSplitContentManagerUI) toolWindowManager.getContentManager().getContentManagerUI();
        contentManagerUI.setShowAlwaysTab(false);
        contentManagerUI.setTabPlacement(TabbedContentManagerUI.TabPlacement.BOTTOM);
        contentManagerUI.setTabLayout(TabbedContentManagerUI.TabLayout.WRAP);
View Full Code Here

        setupContentManagerUI();
    }

    protected void setupContentManagerUI() {
        ContentManager contentManager = toolWindowManager.getContentManager();
        MultiSplitContentManagerUI contentManagerUI = new MyDoggyMultiSplitContentManagerUI();
        contentManager.setContentManagerUI(contentManagerUI);

        contentManagerUI.setShowAlwaysTab(true);
        contentManagerUI.setTabPlacement(TabbedContentManagerUI.TabPlacement.BOTTOM);
        contentManagerUI.addContentManagerUIListener(new ContentManagerUIListener() {
            public boolean contentUIRemoving(ContentManagerUIEvent event) {
                return JOptionPane.showConfirmDialog(frame, "Are you sure?") == JOptionPane.OK_OPTION;
            }

            public void contentUIDetached(ContentManagerUIEvent event) {
                JOptionPane.showMessageDialog(frame, "Hello World!!!");
            }
        });

        TabbedContentUI contentUI = contentManagerUI.getContentUI(toolWindowManager.getContentManager().getContent(0));

        contentUI.setCloseable(true);
        contentUI.setDetachable(true);
        contentUI.setTransparentMode(true);
        contentUI.setTransparentRatio(0.7f);
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.ui.content.MyDoggyMultiSplitContentManagerUI

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.