|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.javadocking.DockingManager
public class DockingManager
The docking manager contains only static methods that provide general objects that can be used by multiple docking classes, e.g. the cursors for dragging a dockable, the component factory, dragger factories, etc.
It has a DockModel
that contains all the docks of the application.
By default there is no dock model. The dock model should be set by setDockModel(DockModel)
.
This manager also provides the DraggerFactory
. The default that will be used is
StaticDraggerFactory
. If you want to use another factory, e.g.
DynamicDraggerFactory
, you should set this factory
before creating any Dock
s.
Constructor Summary | |
---|---|
DockingManager()
|
Method Summary | |
---|---|
static java.awt.Cursor |
getCanDockCursor()
Gets the cursor that is used for dragging a dockable, when the dockable can be docked in an underlying dock. |
static java.awt.Cursor |
getCanNotDockCursor()
Gets the cursor that is used for dragging a dockable, when the dockable cannot be docked in an underlying dock. |
static SwComponentFactory |
getComponentFactory()
Gets the Swing component factory. |
static DragListenerFactory |
getDockableDragListenerFactory()
Gets the drag listener factory that creates the drag listeners for individual dockables. |
static DragListenerFactory |
getDockDragListenerFactory()
Gets the drag listener factory. |
static DockingExecutor |
getDockingExecutor()
Gets the executor of docking actions like: adding dockables to docks. |
static DockingPathModel |
getDockingPathModel()
Gets the docking path model of the application. |
static DockModel |
getDockModel()
Gets the dock model that contains all the docks of the application. |
static DraggerFactory |
getDraggerFactory()
Gets the dockable dragger factory. |
static void |
setCanDockCursor(java.awt.Cursor newCanDockCursor)
Sets the cursor that is used for dragging a dockable, when the dockable can be docked in an underlying dock. |
static void |
setCanNotDockCursor(java.awt.Cursor newCanNotDockCursor)
Sets the cursor that is used for dragging a dockable, when the dockable cannnot be docked in an underlying dock. |
static void |
setComponentFactory(SwComponentFactory newComponentFactory)
Sets a new Swing component factory. |
static void |
setDockableDragListenerFactory(DragListenerFactory newDragListenerFactory)
Sets the drag listener factory that creates the drag listeners for individual dockables. |
static void |
setDockDragListenerFactory(DragListenerFactory newDragListenerFactory)
Sets the drag listener factory. |
static void |
setDockingExecutor(DockingExecutor newDockingExecutor)
Sets the executor of docking actions like: adding dockables to docks. |
static void |
setDockingPathModel(DockingPathModel newDockingPathModel)
Sets the docking path model of the application. |
static void |
setDockModel(DockModel newDockModel)
Sets the dock model that contains all the docks of the application. |
static void |
setDraggerFactory(DraggerFactory newDraggerFactory)
Sets the dockable dragger factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockingManager()
Method Detail |
---|
public static SwComponentFactory getComponentFactory()
DefaultSwComponentFactory
.
This factory will be used to create the Swing components in the docking library.
public static void setComponentFactory(SwComponentFactory newComponentFactory)
newComponentFactory
- The Swing component factory.public static DockingExecutor getDockingExecutor()
public static void setDockingExecutor(DockingExecutor newDockingExecutor)
newDockingExecutor
- The executor of docking actions, like adding, moving and removing dockables.public static DraggerFactory getDraggerFactory()
Dragger
for every dock in the application. The default is a StaticDraggerFactory
.
public static void setDraggerFactory(DraggerFactory newDraggerFactory)
Dragger
for every dock in the application.
newDraggerFactory
- The dockable dragger factory.public static DragListenerFactory getDockDragListenerFactory()
DragListener
for every dock in the application.
The default is a DefaultDragListenerFactory
.
public static void setDockDragListenerFactory(DragListenerFactory newDragListenerFactory)
DragListener
for every dock in the application.
Dock
objects!
newDragListenerFactory
- The drag listener factory.public static DragListenerFactory getDockableDragListenerFactory()
DragListener
for every dock in the application.
The default is a DefaultDragListenerFactory
.
public static void setDockableDragListenerFactory(DragListenerFactory newDragListenerFactory)
DragListener
for every dock in the application.
Dock
objects!
newDragListenerFactory
- The drag listener factory.public static DockModel getDockModel()
public static void setDockModel(DockModel newDockModel)
newDockModel
- The dock model that contains all the docks of the application.
java.lang.NullPointerException
- If the dock model is null.public static DockingPathModel getDockingPathModel()
DefaultDockingPathModel
.
public static void setDockingPathModel(DockingPathModel newDockingPathModel)
newDockingPathModel
- The docking path model of the application.
java.lang.NullPointerException
- If the docking path model is null.public static java.awt.Cursor getCanDockCursor()
public static void setCanDockCursor(java.awt.Cursor newCanDockCursor)
newCanDockCursor
- The cursor that is used for dragging a dockable,
when the dockable can be docked in an underlying dock.public static java.awt.Cursor getCanNotDockCursor()
public static void setCanNotDockCursor(java.awt.Cursor newCanNotDockCursor)
newCanNotDockCursor
- The cursor that is used for dragging a dockable,
when the dockable cannot be docked in an underlying dock.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |