Package org.noos.xing.mydoggy

Examples of org.noos.xing.mydoggy.ToolWindowType


            setActive(false);
            setVisible(false);

            publicEvent = true;

            ToolWindowType oldType = this.type;
            this.type = type;


            fireTypeEvent(oldType, type);
View Full Code Here


        public void propertyChange(PropertyChangeEvent evt) {
            if ("autoHide".equals(evt.getPropertyName())) {
                pinnedMode.setState(!(Boolean) evt.getNewValue());
            } else if ("type".equals(evt.getPropertyName())) {
                ToolWindowType type = (ToolWindowType) evt.getNewValue();
                dockedMode.setState(type == ToolWindowType.DOCKED);
                dockedMode.setVisible(type != ToolWindowType.FLOATING);
                pinnedMode.setVisible(type != ToolWindowType.SLIDING);

                floatingMode.setState(type == ToolWindowType.FLOATING);
View Full Code Here

        public void onEnabled(PropertyChangeEvent evt) {
            setVisibleOnMenuBar((Boolean) evt.getNewValue());
        }

        public void onType(PropertyChangeEvent evt) {
            ToolWindowType type = (ToolWindowType) evt.getNewValue();

            if (menuItem != null)
                menuItem.setState(type == ToolWindowType.FLOATING_LIVE);
        }
View Full Code Here

                    setIcon(UIManager.getIcon(MyDoggyKeySpace.AUTO_HIDE_OFF_INACTIVE));
            }
        }

        public void onType(PropertyChangeEvent evt) {
            ToolWindowType type = (ToolWindowType) evt.getNewValue();
            switch (type) {
                case DOCKED:
                case FLOATING_LIVE:
                    setVisible(true);
                    break;
View Full Code Here

            toolWindow.addPropertyChangeListener("type", propertyChangeListener);
        }
    }

    public void actionPerformed(ActionEvent e) {
        ToolWindowType type = toolWindow.getType();
        if (type == ToolWindowType.DOCKED) {
            toolWindow.setType(ToolWindowType.SLIDING);
        } else if (type == ToolWindowType.SLIDING || type == ToolWindowType.FLOATING_LIVE) {
            toolWindow.setType(ToolWindowType.DOCKED);
        }
View Full Code Here

                    setIcon(UIManager.getIcon(MyDoggyKeySpace.SLIDING_INACTIVE));
            }
        }

        public void onType(PropertyChangeEvent evt) {
            ToolWindowType type = (ToolWindowType) evt.getNewValue();

            if (menuItem != null) {
                menuItem.setState(type == ToolWindowType.DOCKED);
                menuItem.setVisible(type != ToolWindowType.FLOATING);
            }
View Full Code Here

        }

    }

    public void actionPerformed(ActionEvent e) {
        ToolWindowType type = toolWindow.getType();
        switch (type) {
            case FLOATING:
            case FLOATING_FREE:
                toolWindow.setType(oldType != null ? oldType : ToolWindowType.DOCKED);
                break;
View Full Code Here

        public void onEnabled(PropertyChangeEvent evt) {
            setVisible((Boolean) evt.getNewValue());
        }

        public void onType(PropertyChangeEvent evt) {
            ToolWindowType type = (ToolWindowType) evt.getNewValue();

            if (menuItem != null)
                menuItem.setState(type == ToolWindowType.FLOATING);

            switch (type) {
View Full Code Here

            if ("visible".equals(actionCommnad)) {
                toolWindow.setVisible(false);
            } else if ("pin".equals(actionCommnad)) {
                toolWindow.setAutoHide(!toolWindow.isAutoHide());
            } else if ("floating".equals(actionCommnad)) {
                ToolWindowType type = toolWindow.getType();
                if (type == ToolWindowType.FLOATING || type == ToolWindowType.FLOATING_FREE) {
                    toolWindow.setType(ToolWindowType.DOCKED);
                } else if (type == ToolWindowType.DOCKED || type == ToolWindowType.SLIDING) {
                    toolWindow.setType(descriptor.isFloatingWindow() ? ToolWindowType.FLOATING_FREE : ToolWindowType.FLOATING);
                }
            } else if ("undock".equals(actionCommnad)) {
                ToolWindowType type = toolWindow.getType();
                if (type == ToolWindowType.DOCKED) {
                    toolWindow.setType(ToolWindowType.SLIDING);
                } else if (type == ToolWindowType.SLIDING) {
                    toolWindow.setType(ToolWindowType.DOCKED);
                }
View Full Code Here

        }

        public void actionPerformed(ActionEvent e) {
            toolWindow.setActive(true);

            ToolWindowType type = toolWindow.getType();
            if (type == ToolWindowType.DOCKED) {
                toolWindow.setType(ToolWindowType.SLIDING);
            } else if (type == ToolWindowType.SLIDING || type == ToolWindowType.FLOATING_LIVE) {
                toolWindow.setType(ToolWindowType.DOCKED);
            }
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.ToolWindowType

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.