public abstract class DockableContainerFactory
extends java.lang.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.
DockableContainer
,
: the default implementation
Modifier and Type | Class and Description |
---|---|
static class |
DockableContainerFactory.ParentType |
Constructor and Description |
---|
DockableContainerFactory() |
Modifier and Type | Method and Description |
---|---|
SingleDockableContainer |
createDockableContainer(Dockable dockable,
boolean c)
Deprecated.
use the other createDockableContainer method (
#createDockableContainer(Dockable, int) |
abstract SingleDockableContainer |
createDockableContainer(Dockable dockable,
DockableContainerFactory.ParentType parentType)
This method is called by the DockingDesktop whenever a dockable is inserted
in its containment hierachy.
|
abstract FloatingDockableContainer |
createFloatingDockableContainer(java.awt.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.
|
abstract DockViewTitleBar |
createTitleBar()
This method is invoked when a dockable container needs to install a title bar.
|
static DockableContainerFactory |
getFactory()
Returns the current factory.
|
static void |
setFactory(DockableContainerFactory f)
Changes the factory to be used by DockingDesktop.
|
public abstract SingleDockableContainer createDockableContainer(Dockable dockable, DockableContainerFactory.ParentType parentType)
public SingleDockableContainer createDockableContainer(Dockable dockable, boolean c)
#createDockableContainer(Dockable, int)
public abstract TabbedDockableContainer createTabbedDockableContainer()
public abstract FloatingDockableContainer createFloatingDockableContainer(java.awt.Window owner)
The floating container must be an instanceof Dialog or Window.
public abstract DockViewTitleBar createTitleBar()
This method is used by the standard implementation of Docking (DockView, etc) but is optional for other implementations, as currently the titlebar isn't specified as a core component of the docking framework (i.e. it is not an interface).
public static DockableContainerFactory getFactory()
it no factory has been provided, it will fall back on DefaultDockableContainerFactory
public static void setFactory(DockableContainerFactory f)
Note that this change is not propagated to already docked components.
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.