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

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


        if (this.available == available)
            return;

        if (available) {
            manager.propertyChange(
                    new UserPropertyChangeEvent(this, "available", false, true,
                                                new Object[]{anchorIndex, false}
                    )
            );
        } else {
            manager.propertyChange(
                    new UserPropertyChangeEvent(this, "available", true, false,
                                                new Object[]{-1, false}
                    )
            );
        }
        this.available = available;
View Full Code Here


        if (this.available == available)
            return;

        if (available) {
            manager.propertyChange(
                    new UserPropertyChangeEvent(this, "available", false, true,
                                                new Object[]{anchorIndex, true}
                    )
            );
        } else {
            manager.propertyChange(
                    new UserPropertyChangeEvent(this, "available", true, false,
                                                new Object[]{-1, true}
                    )
            );
        }
        this.available = available;
View Full Code Here

                    try {
                        if (evt instanceof UserPropertyChangeEvent) {
                            // We are here because a call ot the detach methods was made.

                            UserPropertyChangeEvent userEvent = (UserPropertyChangeEvent) evt;
                            MultiSplitConstraint constraint = (MultiSplitConstraint) userEvent.getUserObject();

                            switch (constraint.getOnIndex()) {
                                case -2:
                                    for (Window window : SwingUtil.getTopContainers()) {
                                        if (window instanceof ContentWindow) {
View Full Code Here

    // UserPropertyChangeEvent

    public static int getInt(PropertyChangeEvent e, int defaultValue) {
        if (e instanceof UserPropertyChangeEvent) {
            UserPropertyChangeEvent event = (UserPropertyChangeEvent) e;
            if (event.getUserObject() instanceof Integer)
                return (Integer) event.getUserObject();
        }

        return defaultValue;
    }
View Full Code Here

        return defaultValue;
    }

    public static <T> T getAt(PropertyChangeEvent e, int index, T defaultValue) {
        if (e instanceof UserPropertyChangeEvent) {
            UserPropertyChangeEvent event = (UserPropertyChangeEvent) e;

            if (event.getUserObject() instanceof Object[]) {
                Object[] objects = (Object[]) event.getUserObject();

                return (T) objects[index];
            }
        }
View Full Code Here

                    valueAdjusting = true;
                    try {
                        if (evt instanceof UserPropertyChangeEvent) {
                            // We are here because a call ot the detach methods was made.

                            UserPropertyChangeEvent userEvent = (UserPropertyChangeEvent) evt;
                            MultiSplitConstraint constraint = (MultiSplitConstraint) userEvent.getUserObject();

                            switch (constraint.getOnIndex()) {
                                case -2:
                                    for (Window window : SwingUtil.getTopContainers()) {
                                        if (window instanceof ContentWindow) {
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);

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

                    toolType == ToolWindowType.FLOATING_FREE ||
                    toolType == ToolWindowType.FLOATING_LIVE ||
                    force ||
                    !sourceTool.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

        this.detached = true;

        if (onIndex < -1)
            onIndex = -1;

        firePropertyChangeEvent(new UserPropertyChangeEvent(this, "detached", false, true,
                                                            new MultiSplitConstraint(onContent, onIndex, onPosition)));
    }
View Full Code Here

        if (isDetached())
            return;

        this.detached = true;

        firePropertyChangeEvent(new UserPropertyChangeEvent(this, "detached", false, true,
                                                            new MultiSplitConstraint(onContent, -1, onPosition)));
    }
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.