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

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.JModalFrame


                    oldWindow.getWindow().removeMouseListener(resizeMouseInputHandler);
                    oldWindow.getWindow().removeComponentListener(windowComponentAdapter);

                    // Init new window
                    if ((Boolean) evt.getNewValue()) {
                        window = new JModalFrame(toolWindow,
                                                 resourceManager,
                                                 resourceManager.getBoolean("dialog.owner.enabled", true) ? descriptor.getWindowAnchestor() : null,
                                                 null,
                                                 false);
                    } else {
                        window = new JModalWindow(resourceManager,
                                                  resourceManager.getBoolean("dialog.owner.enabled", true) ? descriptor.getWindowAnchestor() : null,
                                                  null,
                                                  false);
                    }
                    window.setBounds(oldWindow.getBounds());
                    window.setName("toolWindow.floating.window." + toolWindow.getId());
                    window.setContentPane(oldWindow.getContentPane());
                    resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window.getWindow());
                    moveMouseInputHandler = new FloatingMoveMouseInputHandler(window.getWindow());
                    window.getWindow().addMouseMotionListener(resizeMouseInputHandler);
                    window.getWindow().addMouseListener(resizeMouseInputHandler);
                    window.getWindow().addComponentListener(windowComponentAdapter);

                    // Dispose old
                    oldWindow.getWindow().dispose();

                    // Show new
                    window.setVisible(true);

                    if (focusOwner != null)
                        SwingUtil.requestFocus(focusOwner);
                } else {
                    ModalWindow oldWindow = window;

                    // Clean old window
                    oldWindow.getWindow().removeComponentListener(windowComponentAdapter);
                    oldWindow.getWindow().removeMouseMotionListener(resizeMouseInputHandler);
                    oldWindow.getWindow().removeMouseListener(resizeMouseInputHandler);

                    // Prepare for new
                    if ((Boolean) evt.getNewValue()) {
                        window = new JModalFrame(toolWindow,
                                                 resourceManager,
                                                 resourceManager.getBoolean("dialog.owner.enabled", true) ? descriptor.getWindowAnchestor() : null,
                                                 null,
                                                 false);
                    } else {
View Full Code Here


    protected void initWindow() {
        if (window != null)
            return;

        if (toolWindow.getTypeDescriptor(FloatingTypeDescriptor.class).isAddToTaskBar()) {
            window = new JModalFrame(toolWindow,
                                     resourceManager,
                                     resourceManager.getBoolean("dialog.owner.enabled", true) ? descriptor.getWindowAnchestor() : null,
                                     null,
                                     false);
        } else {
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.ui.cmp.JModalFrame

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.