Docking Programmatically
dock
The dock
methods of the Docking
class are used to dock dockables. There are several variations of this method that allow docking directly to a window or to specific regions of other dockables. There are variations that allow specifying the divider proportions to use for JSplitPane
s and each form of dock
allows using the persistentID
directly or an instance of Dockable
| Allows docking the dockable with |
---|---|
| Allows docking the |
| Docks the dockable with |
| Docks the dockable with |
| |
| |
| |
| |
| |
| |
| |
|
undock
| Undocks the dockable with the |
---|---|
| Undocks |
newWindow
| Opens the |
---|---|
| Opens the dockable with |
| Opens the |
bringToFront
Brings the dockable to the front if it is not showing. If the dockable is in a tab group it will be made the active tab. If the dockable is hidden due to the Auto Hide feature, then it will be shown. Finally, the frame containing the dockable will be brought to the front with the JFrame::toFront
function.
A NotDockedException
exception is thrown if the dockable is not docked.
bringToFront(Dockable dockable)
| Call with an existing |
---|---|
bringToFront(String persistentID)
| Call with the persistent ID of the dockable. Modern Docking will lookup the dockable. If not found, a |
display
This method is a combination of dock
and bringToFront
. If the dockable is not docked it will be docked and then brought to the front
| |
---|---|
|
isDocked
Checks if a dockable is already docked
isMaximized
Checks if a dockable is currently maximized