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

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


    MyDoggyApplicationPage(ApplicationWindow window, PageDescriptor pageDescriptor) {
        super(window, pageDescriptor);
        contentAndPageComponentById = new FastMap<String, Entry<Content, PageComponent>>();
        toolWindowManager = new MyDoggyToolWindowManager();
        contentManager = toolWindowManager.getContentManager();
        contentManagerUI = new MyDoggyMultiSplitContentManagerUI();
        contentManager.setContentManagerUI(contentManagerUI);

        assert SwingUtilities.isEventDispatchThread();

        contentManagerUI.setTabPlacement(TabbedContentManagerUI.TabPlacement.TOP);
View Full Code Here


        this.frame.setJMenuBar(menuBar);
    }

    protected void initContentManager() {
        ContentManager contentManager = toolWindowManager.getContentManager();
        contentManager.setContentManagerUI(new MyDoggyMultiSplitContentManagerUI());
    }
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

    }


    protected void initContentManager() {
        final ContentManager contentManager = toolWindowManager.getContentManager();
        TabbedContentManagerUI contentManagerUI = new MyDoggyMultiSplitContentManagerUI();
        contentManager.setContentManagerUI(contentManagerUI);
        contentManagerUI.setPopupMenuEnabled(false);
        contentManagerUI.setMinimizable(false);
        contentManagerUI.setMaximizable(false);
        contentManagerUI.setTabPlacement(TabbedContentManagerUI.TabPlacement.TOP);
        contentManagerUI.setShowAlwaysTab(true);
        contentManagerUI.setTabLayout(TabbedContentManagerUI.TabLayout.WRAP);

        for (int index = 0; index < 4; index++) {
            String contentId = "Content_" + index;
            JPanel panel = new JPanel();
            panel.setPreferredSize(new Dimension(100, 100));
View Full Code Here

            public void contentSelected(ContentManagerEvent event) {
            }
        });

        // 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

        FloatingTypeDescriptor floatingTypeDescriptor = toolWindow.getTypeDescriptor(FloatingTypeDescriptor.class);
        floatingTypeDescriptor.setModal(true);
        floatingTypeDescriptor.setAnimating(false);

        // 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

        contentManager.setEnabled(false);
    }

    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

                    writer.dataElement("content", contentUIAttributes);
                }
                writer.endElement("contents");

                writer.startElement("layout");
                MyDoggyMultiSplitContentManagerUI splitContentManagerUI = (MyDoggyMultiSplitContentManagerUI) multiSplitContentManagerUI;

                ByteArrayOutputStream os = new ByteArrayOutputStream();
                XMLEncoder encoder = new XMLEncoder(os);
                encoder.writeObject(splitContentManagerUI.getLayout());
                encoder.flush();
                encoder.close();

                String model = os.toString();
                writer.cdata(model.substring(model.indexOf('\n')));
View Full Code Here

                    }
                }

                // Load layout
                Element layout = getElement(element, "layout");
                MyDoggyMultiSplitContentManagerUI myDoggyMultiSplitContentManagerUI = (MyDoggyMultiSplitContentManagerUI) managerUI;

                String text = layout.getTextContent();
                XMLDecoder decoder = new XMLDecoder(new ByteArrayInputStream(text.getBytes()));
                myDoggyMultiSplitContentManagerUI.setLayout(decoder.readObject());
            }

            return false;
        }
View Full Code Here

        ContentManagerUI contentManagerUI = toolWindowManager.getContentManager().getContentManagerUI();
        if (contentManagerUI instanceof MultiSplitContentManagerUI)
            this.multiSplitContentManagerUI = (MultiSplitContentManagerUI) contentManagerUI;
        else
            this.multiSplitContentManagerUI = new MyDoggyMultiSplitContentManagerUI();

        multiSplitContentManagerUI.addPropertyChangeListener(new PropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent evt) {
                if (valueChanging)
                    return;
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.