Package org.noos.xing.mydoggy.plaf.support

Examples of org.noos.xing.mydoggy.plaf.support.UserPropertyChangeEvent


        if (isDetached())
            return;

        this.detached = true;

        firePropertyChangeEvent(new UserPropertyChangeEvent(this, "detached", false, true,
                                                            new MultiSplitConstraint(refContent, -2, onPosition)));
    }
View Full Code Here


        if (!isDetached())
            return;

        this.detached = false;

        firePropertyChangeEvent(new UserPropertyChangeEvent(this, "detached", true, false, constraints));
    }
View Full Code Here

            ToolWindow sourceTool = (ToolWindow) evt.getSource();
            boolean oldValue = (Boolean) evt.getOldValue();
            boolean newValue = (Boolean) evt.getNewValue();

            if (evt instanceof UserPropertyChangeEvent) {
                MyDoggyToolWindowBar.this.propertyChange(new UserPropertyChangeEvent(evt.getSource(), "visible." + sourceTool.getType().toString(),
                                                                                     null, !oldValue && newValue,
                                                                                     ((UserPropertyChangeEvent) evt).getUserObject()
                ));
            } else
                MyDoggyToolWindowBar.this.propertyChange(new PropertyChangeEvent(evt.getSource(), "visible." + sourceTool.getType().toString(),
View Full Code Here

            AggregationPosition aggregationPosition = AggregationPosition.DEFAULT;
            ToolWindow aggregationOnTool = null;

            if (evt instanceof UserPropertyChangeEvent) {
                // This is an aggregation
                UserPropertyChangeEvent upce = (UserPropertyChangeEvent) evt;
                Object[] args = ((Object[]) upce.getUserObject());

                shiftShow = (Boolean) args[0];
                aggregationPosition = (AggregationPosition) args[1];
                aggregationOnTool = (ToolWindow) args[2];
            }
View Full Code Here

                    AggregationPosition aggregationPosition;
                    ToolWindow aggregationOnTool = null;

                    if (evt instanceof UserPropertyChangeEvent) {
                        // Load parameter
                        UserPropertyChangeEvent upce = (UserPropertyChangeEvent) evt;
                        Object[] args = ((Object[]) upce.getUserObject());

                        aggregationPosition = (AggregationPosition) args[1];
                        aggregationOnTool = (ToolWindow) args[2];
                    } else
                        aggregationPosition = AggregationPosition.valueOf(anchor.toString());
View Full Code Here

        PropertyChangeEvent event = new PropertyChangeEvent(descriptor, property, oldValue, newValue);
        fireEvent(event);
    }

    protected void firePropertyChangeEvent(String property, Object oldValue, Object newValue, Object userObject) {
        PropertyChangeEvent event = new UserPropertyChangeEvent(descriptor, property, oldValue, newValue, userObject);
        fireEvent(event);
    }
View Full Code Here

        PropertyChangeEvent event = new UserPropertyChangeEvent(descriptor, property, oldValue, newValue, userObject);
        fireEvent(event);
    }

    protected void fireAnchorEvent(ToolWindowAnchor oldValue, ToolWindowAnchor newValue, Object userObject) {
        PropertyChangeEvent event = new UserPropertyChangeEvent(descriptor, "anchor", oldValue, newValue, userObject);
        fireEvent(event);
    }
View Full Code Here

        firePropertyChangeEvent(publicEvent, publicEvent);
    }

    protected void firePropertyChangeEvent(String property, Object oldValue, Object newValue, Object userObject) {
//        PropertyChangeEvent event = new UserPropertyChangeEvent(descriptor, property, oldValue, newValue, userObject);
        PropertyChangeEvent publicEvent = new UserPropertyChangeEvent(this, property, oldValue, newValue, userObject);

        firePropertyChangeEvent(publicEvent, publicEvent);
    }
View Full Code Here

                toolType == ToolWindowType.FLOATING_FREE ||
                toolType == ToolWindowType.FLOATING_LIVE ||
                force ||
                !descriptor.getToolWindow().isAvailable()) {

                PropertyChangeEvent avEvent = new UserPropertyChangeEvent(evt.getSource(), "available", true, false, new Object[]{-1, true});
                getBar(oldAnchor).propertyChange(avEvent);
                syncPanel(oldAnchor);

                assert evt instanceof UserPropertyChangeEvent;
                avEvent = new UserPropertyChangeEvent(evt.getSource(), "available", false, true,
                                                      new Object[]{((UserPropertyChangeEvent) evt).getUserObject(), true});
                getBar(newAnchor).propertyChange(avEvent);
                syncPanel(newAnchor);
            }
View Full Code Here

            if (oldAnchor == null)
                oldAnchor = newAnchor;

            ToolWindowType toolType = descriptor.getToolWindow().getType();
            if (toolType == ToolWindowType.FLOATING || toolType == ToolWindowType.FLOATING_FREE) {
                PropertyChangeEvent avEvent = new UserPropertyChangeEvent(evt.getSource(), "available", true, false, -1);
                getBar(oldAnchor).propertyChange(avEvent);
                syncPanel(oldAnchor);

                assert evt instanceof UserPropertyChangeEvent;
                avEvent = new UserPropertyChangeEvent(evt.getSource(), "available", false, true,
                                                      ((UserPropertyChangeEvent) evt).getUserObject());
                getBar(newAnchor).propertyChange(avEvent);
                syncPanel(newAnchor);
            }
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.support.UserPropertyChangeEvent

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.