com.vlsolutions.swing.docking

Class DefaultDockableContainerFactory

Known Direct Subclasses:
TabFactory

public class DefaultDockableContainerFactory
extends DockableContainerFactory

Default implementation of the DockableContainerFactory.

Uses DockView as a SingleDockableContainer, and DockTabbedPane as a TabbedDockableContainer

Note : the API has changed between VLDocking 1.1 and 2.0 : the createDockableContainer now uses a second parameter to specify the context of the container creation.

Field Summary

Fields inherited from class com.vlsolutions.swing.docking.DockableContainerFactory

PARENT_DESKTOP, PARENT_DETACHED_WINDOW, PARENT_SPLIT_CONTAINER, PARENT_TABBED_CONTAINER

Constructor Summary

DefaultDockableContainerFactory()

Method Summary

SingleDockableContainer
createDockableContainer(Dockable dockable, int parentType)
Returns the component used to modify the expand panel size when expanded from the top.
FloatingDockableContainer
createFloatingDockableContainer(Window owner)
This method is called when a dockable is detached from the DockingDesktop and put in the FLOATING state.
TabbedDockableContainer
createTabbedDockableContainer()
Returns the container used for tabbed docking.
DockViewTitleBar
createTitleBar()
This implementation of the factory method return a default DockViewTitleBar object.

Methods inherited from class com.vlsolutions.swing.docking.DockableContainerFactory

createDockableContainer, createDockableContainer, createFloatingDockableContainer, createTabbedDockableContainer, createTitleBar, getFactory, setFactory

Constructor Details

DefaultDockableContainerFactory

public DefaultDockableContainerFactory()

Method Details

createDockableContainer

public SingleDockableContainer createDockableContainer(Dockable dockable,
                                                       int parentType)
Returns the component used to modify the expand panel size when expanded from the top. This implementation uses the following components :
  • DockView for standard dockables
  • TabbedDockView for dockable contained in a tabContainer
  • MaximizedDockView for maximized dockables
  • DetachedDockView for floating dockables.
Overrides:
createDockableContainer in interface DockableContainerFactory

createFloatingDockableContainer

public FloatingDockableContainer createFloatingDockableContainer(Window owner)
This method is called when a dockable is detached from the DockingDesktop and put in the FLOATING state.

The floating container must be an instanceof Dialog or Window.

Overrides:
createFloatingDockableContainer in interface DockableContainerFactory

createTabbedDockableContainer

public TabbedDockableContainer createTabbedDockableContainer()
Returns the container used for tabbed docking.

Current implementation uses the DockTabbedPane class.

Overrides:
createTabbedDockableContainer in interface DockableContainerFactory

createTitleBar

public DockViewTitleBar createTitleBar()
This implementation of the factory method return a default DockViewTitleBar object.
Overrides:
createTitleBar in interface DockableContainerFactory
Since:
2.1.3

© Copyright 2004-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications