Examples of TabbedContentManagerUI


Examples of org.noos.xing.mydoggy.TabbedContentManagerUI

        setupContentManagerUI();
    }

    protected void setupContentManagerUI() {
        TabbedContentManagerUI contentManagerUI = (TabbedContentManagerUI) toolWindowManager.getContentManager().getContentManagerUI();
        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

Examples of org.noos.xing.mydoggy.TabbedContentManagerUI

        if (ContentManagerUI.class.equals(evt.getProperty())) {
            if (evt.getNewValue().equals(TabbedContentManagerUI.class)) {
                toolWindowManager.getContentManager().setContentManagerUI(tabbedContentManagerUI);
                viewContext.put(ContentManagerUI.class, this);

                TabbedContentManagerUI tabbedContentManagerUI = ((TabbedContentManagerUI) toolWindowManager.getContentManager().getContentManagerUI());
                tabPlaces.setSelectedIndex(tabbedContentManagerUI.getTabPlacement().ordinal());
                tabLayouts.setSelectedIndex(tabbedContentManagerUI.getTabLayout().ordinal());
                isShowAlwaysTab.setSelected(tabbedContentManagerUI.isShowAlwaysTab());
            }
        }
    }
View Full Code Here

Examples of org.noos.xing.mydoggy.TabbedContentManagerUI

        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

Examples of org.noos.xing.mydoggy.plaf.ui.content.tabbed.TabbedContentManagerUI

    MyDoggyContentManager(MyDoggyToolWindowManager windowManager) {
        this.toolWindowManager = windowManager;
        this.contents = new ArrayList<Content>();
        this.contentMap = new Hashtable<Object, Content>();
        this.listeners = new EventListenerList();
        this.contentManagerUI = new TabbedContentManagerUI(this);
    }
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.