com.vlsolutions.swing.docking
Class DockView
JPanel
com.vlsolutions.swing.docking.DockView
- DockableContainer, DockDropReceiver, SingleDockableContainer
public class DockView
extends JPanel
DefaultImplementation of the SingleDockableContainer.
A Dockview is the component responsible for displaying a single user
component inside a DockingPanel.
The DockView contains a DockViewTitleBar, used as a header to display useful information
and optional controls (close/maximize/hide/float)
UI : The user component is displayed with decorations provided by a
DockViewUI
delegate.
Here is an example (VLDocking 1.1 "shadow" style) :
- A gadient for the title bar and a set of icons for the buttons.
- A shadowed border for enhanced visibility.

DockTabbedPane
DockView() - Constructs an empty DockView.
|
DockView(Dockable dockable) - Constructs a new DockView for the given dockable.
|
DockView(Dockable dockable, boolean showTitle) - Constructs a new DockView for the given dockable.
|
dockable
protected Dockable dockable
the dockable managed by this view
lastDropGeneralPath
protected Shape lastDropGeneralPath
remember the last drop position to cache the shape used for showing the drop position
lastDropShape
protected Shape lastDropShape
remember the last drop position to cache the shape used for showing the drop position
DockView
public DockView()
Constructs an empty DockView.
A
setDockable(Dockable)
call is requiered for this constructor to be usefull.
DockView
public DockView(Dockable dockable)
Constructs a new DockView for the given dockable.
dockable
- the dockable to show
DockView
public DockView(Dockable dockable,
boolean showTitle)
Constructs a new DockView for the given dockable.
dockable
- the dockable to show
buildPathForTab
protected GeneralPath buildPathForTab(Rectangle bounds)
Create a path used to display the drag shape of a tab container
getTitleBar
public DockViewTitleBar getTitleBar()
Returns (or creates) the title bar of this dockview
getUIClassID
public String getUIClassID()
scanDrop
protected void scanDrop(DockEvent event,
boolean drop)
setDockable
public void setDockable(Dockable dockable)
Adds the dockable's component to this DockView.
dockable
- the user dockable
toString
public String toString()
© Copyright 2004-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications