org.flexdock.docking.event.hierarchy
Class DockingPortTracker
java.lang.Object
org.flexdock.docking.event.hierarchy.DockingPortTracker
- All Implemented Interfaces:
- HierarchyListener, EventListener
public class DockingPortTracker
- extends Object
- implements HierarchyListener
- Author:
- Christopher Butler, Karl Schaefer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DockingPortTracker
public DockingPortTracker()
getInstance
public static HierarchyListener getInstance()
getRootDockingPortInfo
public static RootDockingPortInfo getRootDockingPortInfo(Component c)
getRootDockingPortInfo
public static RootDockingPortInfo getRootDockingPortInfo(RootWindow window)
findById
public static DockingPort findById(String portId)
findByWindow
public static DockingPort findByWindow(Component comp)
- Returns the
DockingPort
for comp
. If comp
is
null
, then this method returns null
.
- Parameters:
comp
- the component for which to find the root docking port.
- Returns:
- the eldest docking port for
comp
, or null
if
comp
is null
or has no DockingPort
ancestor.
findByWindow
public static DockingPort findByWindow(RootWindow window)
updateIndex
public static void updateIndex(DockingPort port)
hierarchyChanged
public void hierarchyChanged(HierarchyEvent evt)
- Specified by:
hierarchyChanged
in interface HierarchyListener
dockingPortAdded
public void dockingPortAdded(RootWindow window,
DockingPort port)
dockingPortRemoved
public void dockingPortRemoved(RootWindow window,
DockingPort port)
getDockingWindows
public static Set getDockingWindows()
getDockingPorts
public static Set getDockingPorts()
getRootDockingPorts
public static Set getRootDockingPorts()
getRootDockingPort
public static DockingPort getRootDockingPort(Dockable dockable)