Package com.vlsolutions.swing.docking.event

Examples of com.vlsolutions.swing.docking.event.DockingActionDockableEvent


                dockingContext.fireDockableStateChange(new DockableStateChangeEvent(currentState,
                        new DockableState(desktop, dockable, futureLocation)));
            }
            if (dockingActionEvent instanceof DockingActionDockableEvent) {
                DockingActionDockableEvent dde = (DockingActionDockableEvent) dockingActionEvent;
                if (dde.getDockable() == dockable) {
                    dockingContext.fireDockingActionPerformed(dockingActionEvent);
                } else {
                    DockingActionDockableEvent dae = (DockingActionDockableEvent) dde.clone();
                    dae.setDockable(dockable);
                    dockingContext.fireDockingActionPerformed(dae);
                }
            } else if (dockingActionEvent instanceof DockingActionSplitDockableContainerEvent) {
                // we're dropping a whole container (currently it is only possible with
                // a tabbeddockablecontainer
View Full Code Here


                    return false;
                }
            }

            if (dockingActionEvent instanceof DockingActionDockableEvent) {
                DockingActionDockableEvent dde = (DockingActionDockableEvent) dockingActionEvent;
                // also check for DockingActionEvents
                if (dde.getDockable() == dockable) {
                    return desktop.getContext().fireAcceptDockingAction(dockingActionEvent);
                } else {
                    // multiple dockable moved at the same time (tabs) : we create copies
                    // of the original DockingActionEvent
                    // @todo : see if we couldn't create a new type of action instead
                    DockingActionDockableEvent dae = (DockingActionDockableEvent) dde.clone();
                    dae.setDockable(dockable);
                    return desktop.getContext().fireAcceptDockingAction(dae);
                }
            } else if (dockingActionEvent instanceof DockingActionSplitDockableContainerEvent) {
                // we're dragging a full tab dockable around : accept it always @todo check this
                return true;
View Full Code Here

TOP

Related Classes of com.vlsolutions.swing.docking.event.DockingActionDockableEvent

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.