Package org.noos.xing.mydoggy

Examples of org.noos.xing.mydoggy.ToolWindowAnchor


    protected class AnchorPropertyChangeListener implements PropertyChangeListener {

        public void propertyChange(PropertyChangeEvent evt) {
            ToolWindowDescriptor descriptor = (ToolWindowDescriptor) evt.getSource();

            ToolWindowAnchor oldAnchor = (ToolWindowAnchor) evt.getOldValue();
            ToolWindowAnchor newAnchor = (ToolWindowAnchor) evt.getNewValue();
            boolean force = false;
            if (oldAnchor == null) {
                oldAnchor = newAnchor;
                force = true;
            }
View Full Code Here


    protected class AnchorPropertyChangeListener implements PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent evt) {
            ToolWindowDescriptor descriptor = (ToolWindowDescriptor) evt.getSource();

            ToolWindowAnchor oldAnchor = (ToolWindowAnchor) evt.getOldValue();
            ToolWindowAnchor newAnchor = (ToolWindowAnchor) evt.getNewValue();
            if (oldAnchor == null)
                oldAnchor = newAnchor;

            ToolWindowType toolType = descriptor.getToolWindow().getType();
            if (toolType == ToolWindowType.FLOATING || toolType == ToolWindowType.FLOATING_FREE) {
View Full Code Here


    protected class AvailablePropertyChangeListener implements PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent evt) {
            DockableDescriptor descriptor = (DockableDescriptor) evt.getSource();
            ToolWindowAnchor target = descriptor.getAnchor();

            // Notify specific bar
            getBar(target).propertyChange(evt);

            // Syncronize bars panel
View Full Code Here

    protected class AnchorPropertyChangeListener implements PropertyChangeListener {

        public void propertyChange(PropertyChangeEvent evt) {
            ToolWindowDescriptor descriptor = (ToolWindowDescriptor) evt.getSource();

            ToolWindowAnchor oldAnchor = (ToolWindowAnchor) evt.getOldValue();
            ToolWindowAnchor newAnchor = (ToolWindowAnchor) evt.getNewValue();
            boolean force = false;
            if (oldAnchor == null) {
                oldAnchor = newAnchor;
                force = true;
            }
View Full Code Here

        public void dragMouseMoved(DragSourceDragEvent dsde) {
            if (!checkStatus())
                return;

            // Obtain anchor for location
            ToolWindowAnchor newAnchor = manager.getToolWindowAnchor(
                    SwingUtil.convertPointFromScreen(dsde.getLocation(), manager)
            );

            if (newAnchor != lastAnchor) {
                if (newAnchor == null) {
View Full Code Here

        public void dragMouseMoved(DragSourceDragEvent dsde) {
            if (!checkStatus())
                return;

            // Obtain anchor for location
            ToolWindowAnchor newAnchor = manager.getToolWindowAnchor(
                    SwingUtil.convertPointFromScreen(dsde.getLocation(), manager)
            );

            // Produce updatedGhostImage
            if (newAnchor != lastAnchor) {
View Full Code Here

        public void dragMouseMoved(DragSourceDragEvent dsde) {
            if (!checkStatus())
                return;

            // Obtain anchor for location
            ToolWindowAnchor newAnchor = manager.getToolWindowAnchor(
                    SwingUtil.convertPointFromScreen(dsde.getLocation(), manager)
            );

            // Produce updatedGhostImage
            if (newAnchor != lastAnchor) {
View Full Code Here

                boolean tempVisible = isVisible();
                boolean tempActive = isActive();

                publicEvent = false;

                ToolWindowAnchor oldAnchor;
                try {
                    setAvailable(false);

                    oldAnchor = this.anchor;
                    this.anchor = anchor;
                    this.lastAnchorIndex = anchor.getIndex();

                    setAvailable(true);
                    if (tempActive)
                        setActive(true);
                    else if (tempVisible)
                        setVisible(true);
                } finally {
                    publicEvent = true;
                }

                fireAnchorEvent(oldAnchor, anchor);
            } else {
                ToolWindowAnchor oldAnchor = this.anchor;
                this.anchor = anchor;
                this.lastAnchorIndex = anchor.getIndex();

                fireAnchorEvent(oldAnchor, anchor);
            }
View Full Code Here

        public void propertyChange(PropertyChangeEvent evt) {
            ToolWindowDescriptor window = (ToolWindowDescriptor) evt.getSource();

            ToolWindowType windowType = window.getToolWindow().getType();
            if (windowType == ToolWindowType.FLOATING || windowType == ToolWindowType.FLOATING_FREE) {
                ToolWindowAnchor oldAnchor = (ToolWindowAnchor) evt.getOldValue();
                ToolWindowAnchor newAnchor = (ToolWindowAnchor) evt.getNewValue();

                PropertyChangeEvent avEvent = new PropertyChangeEvent(evt.getSource(), "available", true, false);
                getBar(oldAnchor).propertyChange(avEvent);
                syncPanel(oldAnchor);
View Full Code Here

    protected class AvailablePropertyChangeListener implements PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent evt) {
            ToolWindowDescriptor descriptor = (ToolWindowDescriptor) evt.getSource();

            ToolWindowAnchor target = descriptor.getToolWindow().getAnchor();
            // Notify specific bar
            getBar(target).propertyChange(evt);

            // Syncronize bars panel
            syncPanel(target);
View Full Code Here

TOP

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

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.