com.vlsolutions.swing.docking
Class DockTabbedPane
JTabbedPane
com.vlsolutions.swing.docking.DockTabbedPane
- DockableContainer, DockableDragSource, DockDropReceiver, TabbedDockableContainer
public class DockTabbedPane
extends JTabbedPane
A JTabbedPane customized for integration with the docking framework.
Defaults :
- tab position is TOP (look at DockingUISettings to change that),
- layout policy is WRAP_TAB_LAYOUT
(due to a java bug which limits usage of MouseMotionListeners in JTabbedPanes,
it is not possible to use SCROLL_LAYOUT_POLICY)
This tabbed pane is not meant to be used outside of DockingDesktop because of
their connected behaviour (drag/drop support, docking constraints, etc).
As of version 2.0 of the framework, the tabbed pane displays a close icon (other functions
are available with a right click menu).
popup
protected JPopupMenu popup
The pop-up menu used to provide fast "close" shortcuts (close all, close others)
popupTab
protected int popupTab
the tab currently associated with the pop-up
previousSelectedDockable
protected int previousSelectedDockable
The tab that was selected before the current one
DockTabbedPane
public DockTabbedPane()
buildPathAfterLastTab
protected GeneralPath buildPathAfterLastTab(Rectangle vbounds,
Rectangle afterlast)
Creates a general path suitable for showing tab insertion after the last tab
buildPathForCurrentTab
protected GeneralPath buildPathForCurrentTab(Rectangle vbounds,
Rectangle tabbounds)
Creates a general path suitable for showing tab insertion before the currentTab
endDragComponent
public void endDragComponent(boolean dropped)
notifies the source when the drag operation has ended (by a drop or cancelled)
- endDragComponent in interface DockableDragSource
getDockableContainer
public Container getDockableContainer()
returns the DockableContainer responsible for displaying the associated dockable
- getDockableContainer in interface DockableDragSource
getDockableIndex
public int getDockableIndex(DockKey key)
Returns the tab index of the dockable corresponding to the given key, or null if the dockable
doesn't belong to this tab.
toString
public String toString()
© Copyright 2004-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications