com.vlsolutions.swing.docking
public abstract class DockableContainerFactory extends Object
DockingDesktop
to create instance
of Dockable containers.
This factory enables API Extenders to change part of the behaviour on the DockingDesktop (mostly about look and feel issues) without modifying the code of that central class.
Field Summary | |
---|---|
static int | PARENT_DESKTOP Constant used to describe the type of usage a SingleDockableContainer is for |
static int | PARENT_DETACHED_WINDOW Constant used to describe the type of usage a SingleDockableContainer is for |
static int | PARENT_SPLIT_CONTAINER Constant used to describe the type of usage a SingleDockableContainer is for |
static int | PARENT_TABBED_CONTAINER Constant used to describe the type of usage a SingleDockableContainer is for |
Method Summary | |
---|---|
abstract SingleDockableContainer | createDockableContainer(Dockable dockable, int parentType) This method is called by the DockingDesktop whenever a dockable is inserted
in its containment hierachy.
|
SingleDockableContainer | createDockableContainer(Dockable dockable, boolean c) |
abstract FloatingDockableContainer | createFloatingDockableContainer(Window owner) This method is called when a dockable is detached from the DockingDesktop and put
in the FLOATING state.
|
abstract TabbedDockableContainer | createTabbedDockableContainer() This method is called when a tab insertion is requested by the DockingDesktop. |
static DockableContainerFactory | getFactory() Returns the current factory.
|
static void | setFactory(DockableContainerFactory f) Changes the factory to be used by DockingDesktop.
|
Deprecated: use the other createDockableContainer method ({@link #createDockableContainer(Dockable, int)}
The floating container must be an instanceof Dialog or Window.
it no factory has been provided, it will fall back on DefaultDockableContainerFactory
Note that this change is not propagated to already docked components.