com.vlsolutions.swing.docking
public class DockTabbedPane extends JTabbedPane implements DockDropReceiver, DockableDragSource, TabbedDockableContainer
Defaults :
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).
UNKNOWN: 2005/11/01 Lilian Chamontin : enhanced shape painting (tries to avoid going outside the tab bounds) 2005/11/10 Lilian Chamontin : added support for DnD multiple tabs at once. 2005/12/08 Lilian Chamontin : removed a portion of code as its been refactored in BorderSplitter
Field Summary | |
---|---|
protected DockingDesktop | desktop |
protected JPopupMenu | popup The pop-up menu used to provide fast "close" shortcuts (close all, close others) |
protected int | popupTab the tab currently associated with the pop-up |
protected int | previousSelectedDockable The tab that was selected before the current one |
Constructor Summary | |
---|---|
DockTabbedPane() |
Method Summary | |
---|---|
void | addDockable(Dockable dockable, int tab) Adds a new tab respecting the presentation and constraints of the component.
{@inheritDoc }
|
protected GeneralPath | buildPathAfterLastTab(Rectangle vbounds, Rectangle afterlast) Creates a general path suitable for showing tab insertion after the last tab |
protected GeneralPath | buildPathForCurrentTab(Rectangle vbounds, Rectangle tabbounds) Creates a general path suitable for showing tab insertion before the currentTab |
Dockable | getDockable() |
Dockable | getDockableAt(int index) |
Container | getDockableContainer() |
int | getDockableIndex(DockKey key) Returns the tab index of the dockable corresponding to the given key |
Dockable | getSelectedDockable() |
int | indexOfDockable(Dockable dockable) |
void | installDocking(DockingDesktop desktop) |
void | processDockableDrag(DockDragEvent e) |
void | processDockableDrop(DockDropEvent event) |
void | removeDockable(Dockable dockable) |
void | removeDockable(int index) |
void | setSelectedDockable(Dockable dockable) |
boolean | startDragComponent(Point p) |
String | toString() |
void | uninstallDocking(DockingDesktop desktop) |