|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.swing.AbstractLayoutPersistence
com.jidesoft.docking.DefaultDockingManager
public class DefaultDockingManager
Default implementation of DockingManager. It is also the main interface that user needs to access to get
the features of dockable frames.
DockableFrames and allows user to interactive with them.
| Nested Class Summary | |
|---|---|
protected class |
DefaultDockingManager.DefaultDockingManagerAnimationHandler
|
protected class |
DefaultDockingManager.DockableFrameWorkspaceHandle
|
protected class |
DefaultDockingManager.DockedHiddenSlidingContainer
|
protected class |
DefaultDockingManager.InternalDockableFrameRouter
|
protected class |
DefaultDockingManager.InternalEventManager
|
class |
DefaultDockingManager.MainPanel
|
protected class |
DefaultDockingManager.MenuChangeStateListener
|
| Nested classes/interfaces inherited from interface com.jidesoft.docking.DockingManager |
|---|
DockingManager.FloatingContainerCustomizer, DockingManager.FrameHandle, DockingManager.TabbedPaneCustomizer |
| Field Summary | |
|---|---|
ComponentAdapter |
_componentListener
|
protected PropertyChangeListener |
_focusPropertyChangeListener
|
| Fields inherited from class com.jidesoft.swing.AbstractLayoutPersistence |
|---|
_layoutDirectory, _loadingLayoutData, _profileKey, _useFrameBounds, _useFrameBoundsSet, _useFrameState, _useFrameStateSet, _usePref, _version, DEFAULT_PROFILE_NAME, LAYOUT_COUNT_STRING, LAYOUT_POSTFIX, MAX_PREF_BYTE_ARRAY_LENGTH, PROPERTY_PROFILE_KEY, PROPERTY_USE_PREF, PROPERTY_VERSION, V2004, V2005_09 |
| Fields inherited from interface com.jidesoft.swing.LayoutPersistence |
|---|
ATTRIBUTE_PERSISTENCE_NAME, NODE_LAYOUT_PERSISTENCE |
| Constructor Summary | |
|---|---|
DefaultDockingManager(RootPaneContainer rootPaneContainer,
Container contentContainer)
Creates a DefaultDockingManager. |
|
| Method Summary | |
|---|---|
void |
activateFrame(String key)
Activate the frame with the key. |
void |
activateWorkspace()
|
void |
addDockableFrameDropListener(DockableFrameDropListener l)
Adds the specified listener to receive dockable frame drop events from this dockable frame. |
void |
addDockableFrameListener(DockableFrameListener l)
Allows you to add a single DockableFramelistener to all DockableFrames managed by the docking manager. |
void |
addFrame(DockableFrame frame)
Adds a frame to this DockingManager. |
void |
addUndo(String name)
Adds a new undo edit. |
void |
addUndoableEditListener(UndoableEditListener listener)
Adds an UndoableEditListener. |
protected boolean |
allowActivate(Object source)
Check if the source is allowed to be activated. |
void |
autohideAll()
Auto-hide all frames. |
void |
autohideFrame(DockableFrame f,
int side,
int index)
Deprecated. |
void |
autohideFrame(String frameKey,
int side,
int index)
Autohides a frame at particular side and particular index. |
void |
beginCompoundEdit(boolean isUndoRedo)
Begins the edit of the model. |
void |
beginDraggingFrame(JComponent f,
int mouseX,
int mouseY,
double relativeX,
double relativeY,
boolean single)
This method is normally called when the user has indicated that they will begin dragging a component around. |
void |
beginLoadLayoutData()
Starts a process to add/remove frame without showing on screen immediately. |
void |
beginResizingFrame(JComponent f,
int direction)
This methods is normally called when the user has indicated that they will begin resizing the frame. |
void |
cancelDragging()
Cancel the dragging. |
protected void |
checkFrameKey(String key,
String methodName)
|
AutoHideContainer |
createAutoHideContainer(int side)
Creates the AutoHideContainer which are the four panes on the side which contains the autohidden
dockable frames. |
MouseListener |
createAutoHideMouseListener(DockableFrame frame,
int side)
Deprecated. |
ContainerContainer |
createContainerContainer()
Creates the container for the tabbed panes. |
protected DialogFloatingContainer |
createDialogFloatingContainer(DefaultDockingManager.InternalEventManager eventManager,
Window window)
Create DialogFloatingContainer instance. |
FloatingContainer |
createFloatingContainer(Window owner)
Creates a FloatingContainer. |
FrameContainer |
createFrameContainer()
Subclass can override it to create your own FrameContainer. |
protected FrameFloatingContainer |
createFrameFloatingContainer(DefaultDockingManager.InternalEventManager eventManager)
Create FrameFloatingContainer instance. |
protected SimpleScrollPane |
createScrollPaneForAutoHideContainer(AutoHideContainer autoHideContainer)
|
protected UndoManager |
createUndoManager()
Creates UndoManager. |
protected WindowFloatingContainer |
createWindowFloatingContainer(DefaultDockingManager.InternalEventManager eventManager,
Window window)
Create WindowFloatingContainer instance. |
Workspace |
createWorkspace()
Creates the workspace. |
FrameContainer |
customizeFrameContainer(FrameContainer frameContainer)
Customize the FrameContainer created by DockingManager.createFrameContainer(). |
void |
denotifyFrame(String key)
De-notifies the frame using the key of that frame. |
void |
discardAllUndoEdits()
Discard all undo edits |
void |
dispose()
Removes all used resources. |
protected void |
disposeFloatingContainer(FloatingContainer floatingContainer)
|
void |
dockFrame(DockableFrame f,
int side,
int index)
Deprecated. |
void |
dockFrame(String key,
int side,
int index)
Docks the frame on the side and at the index. |
void |
doLayout()
Deprecated. |
void |
dragFrame(JComponent f,
int newX,
int newY,
int mouseModifiers)
The user has moved the frame. |
void |
endCompoundEdit()
Ends the edit of the model. |
void |
endDraggingFrame(JComponent f)
This method signals the end of the dragging session. |
void |
endResizingFrame(JComponent f)
This method signals the end of the resize session. |
FloatingContainer |
findFloatingComponentAt(int x,
int y)
|
void |
finishShowingAutohideFrame(String frame)
Notifies that the auto hide showing process has been finished. |
void |
floatFrame(DockableFrame f,
Rectangle bounds,
boolean isSingle)
Deprecated. |
void |
floatFrame(String key,
Rectangle bounds,
boolean isSingle)
Float the frame with specified frameName. |
void |
floatingFrameActivated(WindowEvent windowEvent)
Deprecated. |
void |
floatingFrameDeactivated(WindowEvent windowEvent)
Deprecated. |
DockableFrame |
getActiveFrame()
Deprecated. |
String |
getActiveFrameKey()
Gets currently selected frame. |
MouseInputListener |
getActiveMouseInputListener()
This method should only be used by JIDE. |
Map<String,DockContext> |
getAllContexts()
Gets the all DockContexts in cache. |
static List<DockingManager> |
getAllDockingManagers()
Get all docking managers currently. |
List<String> |
getAllFrameNames()
Gets a list of the keys of all frames. |
Collection<String> |
getAllFrames()
Gets a collection of all dockable frames' key. |
int |
getAllowedDockSides()
Gets the allowed dock sides. |
String[] |
getAllVisibleFrameKeys()
Gets an array of the keys of all visible frames. |
AutoHideContainer |
getAutoHideContainer(int side)
Gets the autohide container by side. |
AutoHideContainer |
getAutoHideContaner(int side)
Deprecated. |
String |
getAutohideShowingFrame()
Return they frame key that is autohideshowing. |
Container |
getContentContainer()
Gets the content container. |
DockContext |
getContextOf(String frameKey)
Gets dock context of a frame specified by frameKey. |
int[] |
getCustomInitSplitPriority()
Gets custom init split priority. |
Component |
getDefaultFocusComponent()
Deprecated. |
DockableFrameDropListener[] |
getDockableFrameDropListeners()
Returns an array of all the DockableFrameDropListeners added to this DockableFrame with
addDockableFrameDropListener. |
DockableFrameFactory |
getDockableFrameFactory()
Gets the dockable frame factory. |
DockableFrameListener[] |
getDockableFrameListeners()
Returns an array of all the DockableFrameListeners added to this DockableFrame with
addDockableFrameListener. |
DockedFrameContainer |
getDockedFrameContainer()
Gets the main container. |
int |
getDoubleClickAction()
Gets the action when user double clicks on the title bar of a dockable frame. |
Component |
getEscapeKeyTargetComponent()
Gets the escape key target component. |
protected Component |
getEventSource(AWTEvent event,
boolean includeFrameControls,
boolean first)
Get the source component of the event. |
DockableFrame |
getFirstFrame()
Deprecated. |
String |
getFirstFrameKey()
Gets the first visible dockable frame. |
DockingManager.FloatingContainerCustomizer |
getFloatingContainerCustomizer()
Gets the FloatingContainerCustomizer. |
int |
getFloatingContainerType()
Gets the floating container type. |
List<FloatingContainer> |
getFloatingFrames()
Get all floating frames in current layout. |
DockableFrame |
getFrame(String key)
Gets the frame using key. |
DockingManagerGroup |
getGroup()
Gets the DockingManagerGroup. |
Rectangle |
getInitBounds()
Gets initial bounds of the main frame. |
int |
getInitCenterSplit()
Gets the initial center split. |
int |
getInitDelay()
Gets the initial delay. |
int |
getInitEastSplit()
Gets the initial east split. |
int |
getInitNorthSplit()
Gets the initial north split. |
int |
getInitSouthSplit()
Gets the initial south split. |
int |
getInitSplitPriority()
Gets the initial split priority. |
int |
getInitState()
Gets initial state of the main frame. |
int |
getInitWestSplit()
Gets the initial west split. |
protected DefaultDockingManager.InternalEventManager |
getInternalEventManager()
Get internal event manager. |
DockableFrame |
getLastFrame()
Deprecated. |
String |
getLastFrameKey()
Gets the last visible dockable frame. |
JComponent |
getMainContainer()
Gets the main container. |
JFrame |
getMainFrame()
Deprecated. |
DockableFrame |
getMaximizedFrame()
Deprecated. |
String |
getMaximizedFrameKey()
Gets the maximized frame if any. |
DockableFrame |
getNextFrame(DockableFrame f)
Deprecated. |
String |
getNextFrame(String frame)
Gets the next visible dockable frame. |
Color |
getNotificationBackground()
Gets the notification background. |
int |
getNotificationDelay()
Gets the delay of ms between two flashes when notifyFrame is called. |
Color |
getNotificationForeground()
Gets the notification foreground. |
int |
getNotificationSteps()
Gets the number of flashes when notifyFrame is called. |
List<DockingManager.FrameHandle> |
getOrderedFrames()
|
int |
getOutlineMode()
Gets contour outline mode. |
int |
getOutsideSensitiveAreaSize()
Gets the size of the area outside the DockableHolder where the dock action will happen. |
PopupMenuCustomizer |
getPopupMenuCustomizer()
Gets the popup menu customizer. |
DockableFrame |
getPreviousFrame(DockableFrame f)
Deprecated. |
String |
getPreviousFrame(String frame)
Gets the previous visible dockable frame. |
String |
getResourceString(String key)
Gets the resource string used in DefaultDockingManager. |
RootPaneContainer |
getRootPaneContainer()
Gets root pane container. |
int |
getSensitiveAreaSize()
Gets the size of the area where the dock action will happen. |
int |
getSnapGridSize()
Gets the snap grid size. |
int |
getStepDelay()
Gets the delay in each step during animation. |
int |
getSteps()
Gets how many steps in the animation. |
UndoableEditSupport |
getUndoableEditSupport()
Gets the UndoableEditSupport instance to add UndoableListener. |
int |
getUndoLimit()
Gets the undo limit. |
UndoManager |
getUndoManager()
Gets the underlying UndoManager. |
int |
getUnknownFrameBehaviorOnLoading()
Gets the unknown frame behavior on loading. |
Workspace |
getWorkspace()
Gets workspace. |
void |
handleEscapeKey(AWTEvent event)
Deprecated. |
boolean |
handleEvent(AWTEvent event)
Handles the AWTEvent. |
protected void |
handleNewlyAddedFrames(String[] newlyAddedFrames)
A method for the customer to handle newly added frames while loading layout. |
void |
hideActiveAutohideFrame()
Deprecated. |
void |
hideFrame(String key)
Sets the frame invisible using the key of that frame. |
void |
internalFloatingFrameActivated(WindowEvent windowEvent)
Notification from one of our floatingFrame windows that it has been activated. |
protected void |
internalFloatingFrameDeactivated(WindowEvent event)
Notification from one of our floatingFrame windows that it has been deactivated. |
void |
internalHandleEscapeKey(AWTEvent event)
In response to an escape key event (or CTRL-tab), transfer focus to the registered escape key target. |
protected void |
internalSetShowWorkspace(boolean showWorkspace)
|
boolean |
isActive()
Checks if the DockingManager is considered as active docking manager. |
boolean |
isAllowRequestFocus()
Deprecated. |
boolean |
isAutoActivateFocusOwner()
Deprecated. |
boolean |
isAutoDocking()
Auto docking means when a dockable frame is dragged, it will automatically attempt to dock to other docked frames. |
boolean |
isAutoDockingAsDefault()
Auto docking means when a dockable frame is dragged, it will automatically attempt to dock to other docked frames. |
boolean |
isAutohidable()
Returns true if auto-hide is allowed for dockable frames. |
boolean |
isAutohideAllTabs()
When user presses autohide button, will it affect all tabs or just selected tab. |
boolean |
isAutohideShowingContentHidden()
Checks if the content of dockable frame is hidden during sliding. |
boolean |
isAutohideShowingInProgress()
Checks if autohide showing has started but not finished. |
boolean |
isContinuousLayout()
Determines whether the JSplitPane is set to use a continuous layout. |
boolean |
isCrossDraggingAllowed()
Whether allows a dockable frame in this DockingManager to be dragged into other DockingManagers. |
boolean |
isCrossDroppingAllowed()
Whether allows a dockable frame in other DockingManagers to be dragged into this DockingManager. |
boolean |
isDockedFramesResizable()
If the dockable frame can be resized. |
protected boolean |
isDockingManagerFocused()
Check if the this docking manager is currently focused. |
boolean |
isDragAllTabs()
Checks if dragging the title bar will drag all the dockable frames in that tabbed pane. |
boolean |
isDragging()
Check if there is a dragging going on. |
boolean |
isDragGripperOnly()
When the gripper is visible, if the drag only happens when dragging on the gripper. |
boolean |
isDropAllowed(DockableFrame source,
Component target,
int side)
Fires an dockable frame drop event. |
boolean |
isEasyTabDock()
Usually dragging a dockable frame and pointing to the title bar of another dockable frame will make it tab dock. |
static boolean |
isExclusive()
Exclusive is an attribute that controls the visibility of floating frames among different docking managers. |
boolean |
isFloatable()
Return true if floating is allowed for dockable frames. |
boolean |
isFloatAllTabs()
When user presses toggle floating button, will it affect all tabs or just selected tab. |
boolean |
isFloatingFramesResizable()
If the floating dockable frame can be resized. |
boolean |
isFocusDuringLoadLayout()
Deprecated. |
boolean |
isGroupAllowedOnSidePane()
Returns true if group is allowed in side bar. |
boolean |
isHeavyweightComponentEnabled()
|
boolean |
isHidable()
Return true if hidden is allowed for dockable frames. |
boolean |
isHideAllTabs()
When user presses close button, will it affect all tabs or just selected tab. |
boolean |
isHideFloatingFramesOnSwitchOutOfApplication()
We can hide floating frames when we switch to a different DockingManager. |
boolean |
isHideFloatingFramesWhenDeactivate()
Checks if the floating frames should be hidden automatically when the main frame is deactivated. |
boolean |
isHideNewlyAddedFrames()
Checks if newly added frames should be hidden when the old layout is loaded. |
boolean |
isLoadDataSuccessful()
Did the loadLayoutFrom(InputStream in) method load successfully from the input stream (false indicates that it called resetToDefault to load the layout.) This method can be called immediately after the loadLayoutFrom(InputStream in) call to determine if a specific LayoutPersistence was forced to call resetToDefault. |
boolean |
isMaximizeAllTabs()
When user maximizes a dockable frame, will it maximize all tabs or just selected tab. |
protected boolean |
isModalDialog(Window window)
Is the specified window is a modal dialog. |
boolean |
isNestedFloatingAllowed()
Checks if nest floating frames are allowed. |
protected boolean |
isOwnedFloatingFrame(Window window)
Is the specified window one of our floatingFrames? |
protected boolean |
isOwnedWindow(Window window)
Is the specified window's ancestor is root pane container? |
boolean |
isPreserveAvailableProperty()
Checks if the unavailable dockable frame will remain unavailable after saveLayout method is called. |
boolean |
isPreserveStateOnDragging()
Preserving state on dragging means dragging will not cause the frame's state to change. |
boolean |
isProportionalSplits()
Tells whether this docking manager will create proportional split panes when it creates split panes to hold docked frames. |
boolean |
isRearrangable()
If the dockable frame can be rearranged. |
boolean |
isResizable()
Deprecated. replaced by isFloatingFramesResizable() and isDockedFramesResizable() |
boolean |
isShowContextMenu()
Checks if the context menu should be shown. |
boolean |
isShowDividerGripper()
If the gripper is visible. |
boolean |
isShowGripper()
If the gripper is visible. |
boolean |
isShowInitial()
A client may specify that the docking layout is to be initialized without showing the window. |
boolean |
isShowTitleBar()
If the gripper is visible. |
boolean |
isShowTitleOnOutline()
Checks if the title of the dragging dockable frame is displayed on the outline while dragging. |
boolean |
isShowWorkspace()
Checks if workspace area is visible. |
boolean |
isSidebarRollover()
Checks if the rollover effect is on for tabs on side bar. |
boolean |
isSideDockAllowed()
|
boolean |
isTabDockAllowed()
|
boolean |
isTabReorderAllowed()
|
boolean |
isUseDecoratedFloatingContainer()
Checks if it always use decorated dialog or frame as the floating dockable frames' container. |
boolean |
isUseGlassPaneEnabled()
Checks if we will use glass pane to change cursor. |
boolean |
isWithinFrameBoundsOnDragging()
Checks the flag of withinFrameBoundsOnDragging. |
boolean |
isWithinScreenBoundsOnDragging()
Checks the flag of withinScreenBoundsOnDragging. |
boolean |
isWorkspaceActive()
Returns a flag to indicate if the workspace is active. |
boolean |
isXmlFormat()
Gets the flag indicating if the layout should be saved to XML format by default. |
protected void |
loadDataErrorHandler()
Handle the situation that data is loaded incorrectly, either the parameter is not correct or an exception was caught. |
void |
loadInitialLayout(Document layoutDocument)
Load initial layout from an initial layout file designed by Visual Designer. |
boolean |
loadLayoutFrom(Document document)
Load layout data from an Node that specified as node parameter. |
boolean |
loadLayoutFrom(InputStream in)
Load layout data from an InputStream that specified as in parameter. |
void |
maximizeFrame(String key)
Maximizes the frame. |
void |
moveFrame(String frameKey,
String destFrameKey)
Move the frame to the destFrame and put them into one tabbed pane. |
void |
moveFrame(String frameKey,
String destFrameKey,
int side)
Move the frame to the destFrame's side. |
void |
notifyFrame(String key)
Notifies the frame using the key of that frame. |
void |
pauseDragFrame()
Pause the dragging session of a frame. |
protected void |
preDispatchDockableFrameEvent()
|
void |
redo()
Redo the last undone operation. |
void |
removeAllFrames()
Removes all frames from this DockingManager. |
void |
removeContext(String key)
Removes dock context from the Map. |
void |
removeDockableFrameDropListener(DockableFrameDropListener l)
Removes the specified dockable frame listener so that it no longer receives dockable frame drop events from this dockable frame. |
void |
removeDockableFrameListener(DockableFrameListener l)
Removes the specified dockable frame listener so that it no longer receives dockable frame events from this dockable frame. |
void |
removeExtraContexts()
Removes extra DockContexts that is saved in the cache but the corresponding dockable frames are not in DockingManager anymore. |
void |
removeFrame(String key)
Removes a frame from this DockingManager. |
void |
removeFrame(String key,
boolean keepPreviousState)
Removes a frame from this DockingManager. |
void |
removeFromHiddenFrames(String key)
Remove it from hidden frame list. |
void |
removeUndoableEditListener(UndoableEditListener listener)
Removes UndoableEditListener added before. |
void |
requestFocusInDockingManager()
|
void |
resetLayout()
This method is called for every rearragement of the dockable frames. |
void |
resetToDefault()
Resets layout of frames to initial values. |
void |
resizingFrame(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
The user has resized the component. |
void |
restoreFrame()
Restores the frame from maximized state. |
void |
saveLayoutTo(Document document)
Save layout data to a Document that specified as document parameter. |
void |
saveLayoutTo(OutputStream out)
Save layout data to an OutputStream that specified as out parameter. |
void |
setActive(boolean active)
Makes the docking manager active. |
void |
setActiveMouseInputListener(MouseInputListener listener)
This method should only be used by JIDE. |
void |
setAllowedDockSides(int allowedDockSides)
Sets allowed dock sides. |
void |
setAutoActivateFocusOwner(boolean autoActivateFocusOwner)
Deprecated. |
void |
setAutoDocking(boolean autoDocking)
Auto docking means when a dockable frame is dragged, it will automatically attempt to dock to other docked frames. |
void |
setAutoDockingAsDefault(boolean autoDockingAsDefault)
Auto docking means when a dockable frame is dragged, it will automatically attempt to dock to other docked frames. |
void |
setAutohidable(boolean autohidable)
Enable or disable floating of dockable frames. |
void |
setAutohideAllTabs(boolean autohideAllTabs)
When user presses autohide button, will it affect all tabs or just selected tab. |
void |
setAutohideShowingContentHidden(boolean hide)
Pass in true if you want the content of dockable frame hidden during sliding. |
void |
setAutohideShowingFrame(DockableFrame f)
Deprecated. |
void |
setContinuousLayout(boolean continuousLayout)
Turn continuous layout on/off. |
void |
setCrossDraggingAllowed(boolean crossDraggingAllowed)
|
void |
setCrossDroppingAllowed(boolean crossDroppingAllowed)
|
void |
setCustomInitSplitPriority(int[] customInitSplitPriority)
Sets custom init split priority. |
void |
setDefaultFocusComponent(Component defaultFocusComponent)
Deprecated. |
void |
setDockableFrameFactory(DockableFrameFactory dockableFrameFactory)
Sets the dockable frame factory. |
void |
setDockedFramesResizable(boolean resizable)
Enable or disable the resize of dockable frames. |
void |
setDoubleClickAction(int doubleClickAction)
Sets the action when user double clicks on the title bar of a dockable frame. |
void |
setDragAllTabs(boolean dragAllTabs)
Sets if dragging title bar will drag all dockable frames in the tabbed pane. |
void |
setDragGripperOnly(boolean dragGripperOnly)
Sets the value to allow user to drag on the gripper as well as on the title bar. |
void |
setEasyTabDock(boolean easyTabDock)
Sets the attribute if dragging and pointing to dockable frame will make it tab dock |
void |
setEscapeKeyTargetComponent(Component escapeKeyTargetComponent)
Sets the escape key target component. |
static void |
setExclusive(boolean exclusive)
Sets the exclusive attribute. |
void |
setFloatable(boolean floatable)
Enable or disable floating of dockable frames. |
void |
setFloatAllTabs(boolean floatAllTabs)
Sets the option of floatAllTabs. |
void |
setFloatingContainerCustomizer(DockingManager.FloatingContainerCustomizer customizer)
Sets the FloatingContainerCustomizer. |
void |
setFloatingContainerType(int floatingContainerType)
Sets the floating container type. |
void |
setFloatingFramesResizable(boolean resizable)
Enable or disable the resize of floating dockable frames. |
void |
setFloatingFramesVisible(boolean show)
Sets all floating frame visible or invisible. |
void |
setFocusDuringLayout(boolean doFocus)
Deprecated. |
void |
setFrameAvailable(String key)
Makes the frame available. |
void |
setFrameUnavailable(String key)
Makes the frame unavailable. |
void |
setGroup(DockingManagerGroup group)
Sets the DockingManagerGroup. |
void |
setGroupAllowedOnSidePane(boolean groupAllowedOnSidePane)
If true, group is allowed in side bar. |
void |
setHeavyweightComponentEnabled(boolean heavyweightComponentEnabled)
Enables heavyweight component. |
void |
setHidable(boolean hidable)
Enable or disable dockable frames from being hidden. |
void |
setHideAllTabs(boolean hideAllTabs)
Sets the option of closeAllTabs. |
void |
setHideFloatingFramesOnSwitchOutOfApplication(boolean newValue)
Turn hiding floating frames when we switch to a different application on and off. |
void |
setHideFloatingFramesWhenDeactivate(boolean hideFloatingFramesWhenDeactivate)
Sets if the floating frames should be hidden automatically when the main frame is deactivated. |
void |
setHideNewlyAddedFrames(boolean hideNewlyAddedFrames)
Sets the flag to hide newly added frames when the old layout is loaded. |
void |
setInitBounds(Rectangle initBounds)
Sets the initial bounds of the main frame. |
void |
setInitCenterSplit(int initCenterSplit)
Sets the initial center split. |
void |
setInitDelay(int initDelay)
Sets the initial delay of autohide dockable frame when it displays. |
void |
setInitEastSplit(int initEastSplit)
Sets the initial east split. |
void |
setInitNorthSplit(int initNorthSplit)
Sets the initial north split. |
void |
setInitSouthSplit(int initSouthSplit)
Sets the initial south split. |
void |
setInitSplitPriority(int initSplitPriority)
Sets the initial split priority. |
void |
setInitState(int initState)
Sets the initial state of the main frame. |
void |
setInitWestSplit(int initWestSplit)
Sets the initial west split. |
void |
setMaximizeAllTabs(boolean maximizeAllTabs)
Sets the option of maximizeAllTabs. |
void |
setNestedFloatingAllowed(boolean nestedFloatingAllowed)
Sets if allows nested floating frames. |
void |
setNotificationBackground(Color notificationBackground)
Sets the notification background. |
void |
setNotificationDelay(int notificationDelay)
Sets the delay between two flashes when notifyFrame is called. |
void |
setNotificationForeground(Color notificationForeground)
Sets the notification foreground. |
void |
setNotificationSteps(int notificationSteps)
Sets the number of flashes when notifyFrame is called. |
void |
setOutlineMode(int outlineMode)
Sets contour outline mode PARTIAL_OUTLINE_MODE: Always uses light-weighted outline. |
void |
setOutsideSensitiveAreaSize(int sensitiveAreaSize)
Sets the size of the area outside the DockableHolder where the dock action will happen. |
void |
setPopupMenuCustomizer(PopupMenuCustomizer customizer)
Sets the popup customizer. |
void |
setPreserveAvailableProperty(boolean preserveAvailableProperty)
Sets the flag if the unavailable dockable frame will remain unavailable after saveLayout method is called. |
void |
setPreserveStateOnDragging(boolean preserveStateOnDragging)
Sets preserveStateOnDragging flag. |
void |
setProportionalSplits(boolean b)
Sets whether this docking manager will create proportional split panes when it creates split panes to hold docked frames. |
void |
setRearrangable(boolean rearrangable)
Enable or disable the rearrangement of dockable frames. |
void |
setResizable(boolean resizable)
Deprecated. replaced by setFloatingFramesResizable(boolean) and setDockedFramesResizable(boolean) |
void |
setSensitiveAreaSize(int sensitiveAreaSize)
Sets the size of the area where the dock action will happen. |
void |
setShowContextMenu(boolean showContextMenu)
Sets the flag to show context menu or not. |
void |
setShowDividerGripper(boolean showDividerGripper)
Sets the visibility of gripper. |
void |
setShowGripper(boolean showGripper)
Sets the visibility of the gripper. |
void |
setShowInitial(boolean value)
A client may specify that the docking layout is to be initialized without showing the window. |
void |
setShowTitleBar(boolean showTitleBar)
Sets the visibility of the title bar. |
void |
setShowTitleOnOutline(boolean showTitleOnOutline)
Sets the flag if the title will be displayed on the ontline while dragging. |
void |
setShowWorkspace(boolean showWorkspace)
Shows or hides workspace area. |
void |
setSidebarRollover(boolean sidebarRollover)
Sets to true if you want the tabs on side bar has rollover effect. |
void |
setSideDockAllowed(boolean sideDockAllowed)
Sets the attribute if side docking is allowed. |
void |
setSnapGridSize(int snapGridSize)
Sets the snap grid size. |
void |
setStepDelay(int stepDelay)
Sets the delay in each step during animation, in ms. |
void |
setSteps(int steps)
Sets how many steps in the animation, default is 1 step. |
void |
setTabbedPaneCustomizer(DockingManager.TabbedPaneCustomizer customizer)
Set a customizer to customize the tabbed pane where dockable frames are. |
void |
setTabDockAllowed(boolean tabDockAllowed)
Sets the attribute if tab docking is allowed. |
void |
setTabReorderAllowed(boolean tabReorderAllowed)
Sets the attribute if tab reordering is allowed. |
void |
setUndoLimit(int undoLimit)
Sets the undo limit. |
void |
setUnknownFrameBehaviorOnLoading(int unknownFrameBehaviorOnLoading)
Sets the unknown frame behavior on loading. |
void |
setUseDecoratedFloatingContainer(boolean useDecoratedFloatingContainer)
Sets to true so that it always use decorated dialog as the floating dockable frames' container. |
void |
setUseGlassPaneEnabled(boolean useGlassPaneEnabled)
Enables us to use glass pane to for cursor change purpose. |
void |
setWithinFrameBoundsOnDragging(boolean withinFrameBoundsOnDragging)
Sets the flag if dragging a dockable frame is limited to the main JFrame's bounds. |
void |
setWithinScreenBoundsOnDragging(boolean withinScreenBoundsOnDragging)
Sets the flag if dragging a dockable frame is limited to the screen's bounds. |
void |
setXmlFormat(boolean xmlFormat)
Sets the flag indicating if the layout should be saved to XML format by default. |
protected boolean |
shouldSetFloatingContainerVisible()
Checks if the floating container should be set to visible. |
protected boolean |
shouldSwitchFocus(AWTEvent event)
Check if Docking should switch focus because of the AWTEvent. |
protected boolean |
shouldSwitchFocus(Object component)
Check if Docking should switch focus if mouse clicking on the component. |
boolean |
shouldVetoRemovingAllFrames()
If any of the dockable frame's shouldVetoHiding() return true, this method will return true. |
void |
showContextMenu(Component source,
Point point,
DockableFrame dockableFrame,
boolean onTab)
Show context menu of dockable frames. |
void |
showFrame(String key)
Sets the frame visible using the key of that frame and activate the frame. |
void |
showFrame(String key,
boolean active)
Sets the frame visible using the key of that frame and optionally activate the frame. |
void |
showInitial()
A client may specify that the docking layout is to be initialized without showing the window. |
void |
startShowingAutohideFrame(DockableFrame f,
int side,
int delay)
Deprecated. |
void |
startShowingAutohideFrame(DockableFrame f,
int side,
int delay,
boolean forceFocus)
Deprecated. |
void |
startShowingAutohideFrame(String frameKey,
int side,
int delay)
Make the frame attached to the side bar so that it can be slided. |
void |
startShowingAutohideFrameImmediately(String frame,
int side)
Stops the autohidden frame from show immediately. |
void |
stopShowingAutohideFrame(int initDelay,
boolean forceComplete)
Stops showing the autohide frame. |
void |
stopShowingAutohideFrameImmediately()
Stops the autohidden frame from show immediately. |
void |
switchRootPaneContainer(RootPaneContainer rootContainer)
Change the root pane container. |
void |
toggleAutohideState(DockableFrame frame)
Deprecated. |
void |
toggleAutohideState(String key)
Toggle auto-hide of the frame with the specified key. |
void |
toggleDockable(DockableFrame frame)
Deprecated. |
void |
toggleDockable(String key)
Toggle dockable attribute of the frame with the specified key. |
void |
toggleMaximizeState(DockableFrame f)
Deprecated. |
void |
toggleMaximizeState(String key)
Toggle between maximized and restored state. |
void |
toggleState(DockableFrame frame,
boolean single)
Deprecated. |
void |
toggleState(String key,
boolean single)
Toggle the frame's state. |
void |
undo()
Undo the last operation done to docking framework. |
void |
updateComponentTreeUI()
Since there are several top level container in DockingManager, this method will call updateComponentTreeUI to all of them to make sure everything changes after reset look and feel. |
protected FloatingContainer |
updateUndecorated(FloatingContainer floatingContainer)
Updates the undecorated of the floating container to make sure there is native title bar if there are more than one tabbed panes inside the floating container and no title bar if there is only one tabbed pane. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jidesoft.docking.DockingManager |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
protected PropertyChangeListener _focusPropertyChangeListener
public ComponentAdapter _componentListener
| Constructor Detail |
|---|
public DefaultDockingManager(RootPaneContainer rootPaneContainer,
Container contentContainer)
getWorkspace()
to get the workspace area, then add a JDesktopPane (for MDI) or a DocumentPane (for
TDI, part of JIDE Components) to it.,
rootPaneContainer - the top level container which is usually a JFrame, JWindow, JDialog or JApplet. Please
note, if you don't have a rootPaneContainer when creating the DefaultDockingManager, you
can pass in null. We will find out the rootPaneContainer on fly when the
contentContainer is added to a rootPaneContainer.contentContainer - an area inside the root pane container. It should be an empty container. It should also
be added to the component hierarchy tree when this constructor is called.| Method Detail |
|---|
public void switchRootPaneContainer(RootPaneContainer rootContainer)
DockingManager
switchRootPaneContainer in interface DockingManagerpublic void setFloatingFramesVisible(boolean show)
DockingManager
setFloatingFramesVisible in interface DockingManagershow - the flagprotected boolean isModalDialog(Window window)
window - the window to check
protected boolean isOwnedFloatingFrame(Window window)
window - the specified window to check
protected boolean isOwnedWindow(Window window)
window - the specified window to check
protected void internalFloatingFrameDeactivated(WindowEvent event)
event - the window eventpublic void internalFloatingFrameActivated(WindowEvent windowEvent)
windowEvent - the window event
public FloatingContainer findFloatingComponentAt(int x,
int y)
findFloatingComponentAt in interface DockingManager@Deprecated public boolean isAutoActivateFocusOwner()
DockingManager
isAutoActivateFocusOwner in interface DockingManager@Deprecated public void setAutoActivateFocusOwner(boolean autoActivateFocusOwner)
DockingManager
dockingManager.setAutoActivateFocusOwner(true);
component.addFocusListener(new FocusAdapter() {
public void focusGained(FocusEvent e) {
dockingManager.setAutoActivateFocusOwner(false);
component.removeFocusListener(this);
}
});
component.requestFocus();
Default is true.
setAutoActivateFocusOwner in interface DockingManagerautoActivateFocusOwner - true or false.public boolean handleEvent(AWTEvent event)
DockingManager
handleEvent in interface DockingManagerevent - the event received
protected boolean shouldSwitchFocus(AWTEvent event)
shouldSwitchFocus(Object) returns true.
event - the AWT event
protected boolean shouldSwitchFocus(Object component)
return super.shouldSwitchFocus(component) && (!(component instanceof JComponent) || ((JComponent)
component).isRequestFocusEnabled());
component - the component inside the DockableFrame
protected Component getEventSource(AWTEvent event,
boolean includeFrameControls,
boolean first)
event - the event DockingManager currently getsincludeFrameControls - the flag indicating if frame controls should be consideredfirst - if it's the first event
protected boolean isDockingManagerFocused()
public void internalHandleEscapeKey(AWTEvent event)
event - the eventpublic String getResourceString(String key)
getResourceString in interface DockingManagerkey - the resource key
protected void loadDataErrorHandler()
resetToDefault() to reset the layout to default. You could override this
method to run your own session.
public void resetToDefault()
resetToDefault in interface LayoutPersistenceprotected SimpleScrollPane createScrollPaneForAutoHideContainer(AutoHideContainer autoHideContainer)
public AutoHideContainer createAutoHideContainer(int side)
AutoHideContainer which are the four panes on the side which contains the autohidden
dockable frames.
createAutoHideContainer in interface DockingManagerside - the side
public int getInitSplitPriority()
getInitSplitPriority in interface DockingManagerpublic void setInitSplitPriority(int initSplitPriority)
setInitSplitPriority in interface DockingManagerinitSplitPriority - split priority.public int[] getCustomInitSplitPriority()
getCustomInitSplitPriority in interface DockingManagerpublic void setCustomInitSplitPriority(int[] customInitSplitPriority)
setCustomInitSplitPriority in interface DockingManagercustomInitSplitPriority - new init split prioritypublic int getInitCenterSplit()
getInitCenterSplit in interface DockingManagerpublic void setInitCenterSplit(int initCenterSplit)
setInitCenterSplit in interface DockingManagerinitCenterSplit - the initial center splitgetInitCenterSplit()public int getInitEastSplit()
getInitEastSplit in interface DockingManagerpublic void setInitEastSplit(int initEastSplit)
JideSplitPane.HORIZONTAL_SPLIT and
JideSplitPane.VERTICAL_SPLIT. It is JideSplitPane.VERTICAL_SPLIT
by default.
setInitEastSplit in interface DockingManagerinitEastSplit - the initial east splitgetInitEastSplit()public int getInitWestSplit()
getInitWestSplit in interface DockingManagerpublic void setInitWestSplit(int initWestSplit)
JideSplitPane.HORIZONTAL_SPLIT and
JideSplitPane.VERTICAL_SPLIT. It is JideSplitPane.VERTICAL_SPLIT
by default.
setInitWestSplit in interface DockingManagerinitWestSplit - initial west splitgetInitWestSplit()public int getInitNorthSplit()
getInitNorthSplit in interface DockingManagerpublic void setInitNorthSplit(int initNorthSplit)
JideSplitPane.HORIZONTAL_SPLIT and
JideSplitPane.VERTICAL_SPLIT. It is JideSplitPane.HORIZONTAL_SPLIT
by default.
setInitNorthSplit in interface DockingManagerinitNorthSplit - the initial north splitgetInitNorthSplit()public int getInitSouthSplit()
getInitSouthSplit in interface DockingManagerpublic void setInitSouthSplit(int initSouthSplit)
JideSplitPane.HORIZONTAL_SPLIT and
JideSplitPane.VERTICAL_SPLIT. It is JideSplitPane.HORIZONTAL_SPLIT
by default.
setInitSouthSplit in interface DockingManagerinitSouthSplit - the flaggetInitSouthSplit()public boolean isLoadDataSuccessful()
isLoadDataSuccessful in interface LayoutPersistencepublic DockableFrame getFrame(String key)
getFrame in interface DockingManagerkey - the frame key
public void addFrame(DockableFrame frame)
addFrame in interface DockingManagerframe - frame to be addedpublic void removeAllFrames()
removeAllFrames in interface DockingManagerpublic void removeFrame(String key)
removeFrame in interface DockingManagerkey - key of frame to be removed
public void removeFrame(String key,
boolean keepPreviousState)
removeFrame(String) does.
However if you just remove the frame and will add it back later, you can keep the state so that when the frame is
added back, it has the exact same state as before.
This method is Swing thread-safe.
removeFrame in interface DockingManagerkey - key of frame to be removedkeepPreviousState - the flag indicating if previous state should be keptpublic void showFrame(String key)
showFrame(key, false).
showFrame in interface DockingManagerkey - the key of frame to be shown
public void showFrame(String key,
boolean active)
showFrame in interface DockingManagerkey - the key of frame to be shownactive - true to activate the frame after showing. False will only show the frame.public void notifyFrame(String key)
notifyFrame in interface DockingManagerkey - the key of frame to be notifiedpublic void denotifyFrame(String key)
denotifyFrame in interface DockingManagerkey - the key of frame to be de-notifiedpublic void hideFrame(String key)
hideFrame in interface DockingManagerkey - the frame key
public void dockFrame(String key,
int side,
int index)
dockFrame in interface DockingManagerkey - the frame to be dockedside - four possible sidesindex - 0 or 1
IllegalArgumentException - if side is not a valid value.
public void floatFrame(String key,
Rectangle bounds,
boolean isSingle)
floatFrame in interface DockingManagerkey - frame to be floatedbounds - the bounds of float frameisSingle - true if just make current frame floated, false to make all frames in the same tabbed pane
floatedprotected boolean shouldSetFloatingContainerVisible()
public FloatingContainer createFloatingContainer(Window owner)
FloatingContainer
depends on system property "docking.floatingContainerType" or the value returned from getFloatingContainerType().
createFloatingContainer in interface DockingManagerowner - the owner window
protected FrameFloatingContainer createFrameFloatingContainer(DefaultDockingManager.InternalEventManager eventManager)
eventManager - the internal event manager
protected WindowFloatingContainer createWindowFloatingContainer(DefaultDockingManager.InternalEventManager eventManager,
Window window)
eventManager - the internal event managerwindow - the owner window
protected DialogFloatingContainer createDialogFloatingContainer(DefaultDockingManager.InternalEventManager eventManager,
Window window)
eventManager - the internal event managerwindow - the owner window
public void startShowingAutohideFrameImmediately(String frame,
int side)
startShowingAutohideFrameImmediately in interface DockingManagerframe - the frame that is showingside - the side
public void startShowingAutohideFrame(String frameKey,
int side,
int delay)
startShowingAutohideFrame in interface DockingManagerframeKey - the key of the frameside - the side of the frame to showdelay - the delay in milliseconds
public void stopShowingAutohideFrame(int initDelay,
boolean forceComplete)
DockingManager
stopShowingAutohideFrame in interface DockingManagerinitDelay - initial delay timeforceComplete - the flag indicating if a mouse over can interrupt and cause the frame to stay openpublic void finishShowingAutohideFrame(String frame)
DockingManager
finishShowingAutohideFrame in interface DockingManagerframe - the frame that is showingpublic void stopShowingAutohideFrameImmediately()
stopShowingAutohideFrameImmediately in interface DockingManagerprotected DefaultDockingManager.InternalEventManager getInternalEventManager()
createAutoHideContainer(int),
createDialogFloatingContainer(com.jidesoft.docking.DefaultDockingManager.InternalEventManager,
java.awt.Window), createFrameFloatingContainer(com.jidesoft.docking.DefaultDockingManager.InternalEventManager),
createWindowFloatingContainer(com.jidesoft.docking.DefaultDockingManager.InternalEventManager,
java.awt.Window).
public int getUnknownFrameBehaviorOnLoading()
DockingManager
getUnknownFrameBehaviorOnLoading in interface DockingManagerDockingManager.setUnknownFrameBehaviorOnLoading(int)public void setUnknownFrameBehaviorOnLoading(int unknownFrameBehaviorOnLoading)
DockingManagerDockingManager.UNKNOWN_FRAME_BEHAVIOR_SHOW_INIT or DockingManager.UNKNOWN_FRAME_BEHAVIOR_HIDE. The
first option is the traditional behavior that shows the frame respecting its initial mode, side and index. The
hide option is a new behavior that hides the frame.
setUnknownFrameBehaviorOnLoading in interface DockingManagerunknownFrameBehaviorOnLoading - the unknown frame behaviorpublic boolean isXmlFormat()
AbstractLayoutPersistence
isXmlFormat in interface LayoutPersistenceisXmlFormat in class AbstractLayoutPersistenceAbstractLayoutPersistence.setXmlFormat(boolean)public void setXmlFormat(boolean xmlFormat)
AbstractLayoutPersistence
setXmlFormat in interface LayoutPersistencesetXmlFormat in class AbstractLayoutPersistencexmlFormat - the flagpublic int getSnapGridSize()
DockingManager
getSnapGridSize in interface DockingManagerDockingManager.setSnapGridSize(int)public void setSnapGridSize(int snapGridSize)
DockingManager
setSnapGridSize in interface DockingManagersnapGridSize - the snap grid sizepublic void activateFrame(String key)
activateFrame in interface DockingManagerkey - key of frame to be activated
public void beginDraggingFrame(JComponent f,
int mouseX,
int mouseY,
double relativeX,
double relativeY,
boolean single)
beginDraggingFrame in interface DockingManagerf - the DockableFrame to be draggedmouseX - the mouse X where the frame is dragged tomouseY - the mouse Y where the frame is dragged torelativeX - the relative X where the frame is dragged torelativeY - the relative Y where the frame is dragged tosingle - the flag indicating only the frame itself of the entire FrameContainer will be draggedpublic void pauseDragFrame()
DockingManager
pauseDragFrame in interface DockingManagerpublic boolean isDragging()
isDragging in interface DockingManagerpublic void cancelDragging()
cancelDragging in interface DockingManager
public void dragFrame(JComponent f,
int newX,
int newY,
int mouseModifiers)
dragFrame in interface DockingManagerf - the dockable frame to dragnewX - the new X where the frame is being dragged tonewY - the new Y where the frame is being dragged tomouseModifiers - the mouse modifiers if anypublic void endDraggingFrame(JComponent f)
endDraggingFrame in interface DockingManagerf - the component to be draggedpublic ContainerContainer createContainerContainer()
DockingManager
createContainerContainer in interface DockingManager
public void moveFrame(String frameKey,
String destFrameKey)
moveFrame in interface DockingManagerframeKey - the key of the dockable frame to be moveddestFrameKey - the key of the destination dockable frame
public void moveFrame(String frameKey,
String destFrameKey,
int side)
moveFrame in interface DockingManagerframeKey - the key of the dockable frame to be moveddestFrameKey - the key of the destination dockable frameside - dock side. Valid values are DockContext.DOCK_SIDE_EAST, DockContext.DOCK_SIDE_WEST,DockContext.DOCK_SIDE_NORTH, DockContext.DOCK_SIDE_SOUTH or DockContext.DOCK_SIDE_CENTER. If side is DockContext.DOCK_SIDE_CENTER, it will have the same result as moveFrame(String,
String).
public void beginResizingFrame(JComponent f,
int direction)
beginResizingFrame in interface DockingManagerf - the componentdirection - the direction
public void resizingFrame(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
resizingFrame in interface DockingManagerf - the componentnewX - new XnewY - new YnewWidth - new widthnewHeight - new heightpublic void endResizingFrame(JComponent f)
endResizingFrame in interface DockingManagerf - the componentpublic void toggleDockable(String key)
toggleDockable in interface DockingManagerkey - frame keypublic void toggleAutohideState(String key)
toggleAutohideState in interface DockingManagerkey - frame key
public void autohideFrame(String frameKey,
int side,
int index)
autohideFrame in interface DockingManagerframeKey - the key of the frame to be autohidden.side - which side. It can be one of the four valid sides DockContext.DOCK_SIDE_WEST, DockContext.DOCK_SIDE_WEST,DockContext.DOCK_SIDE_NORTH and DockContext.DOCK_SIDE_SOUTH.index - a positive integer that indicate the position of the frame
IllegalArgumentException - if frameKey doesn't exist or side is not a valid side or index is less than 0.public AutoHideContainer getAutoHideContainer(int side)
getAutoHideContainer in interface DockingManagerside - the dock side of the auto hide container
public List<DockingManager.FrameHandle> getOrderedFrames()
getOrderedFrames in interface DockingManagerprotected boolean allowActivate(Object source)
source - the component to be activated
public RootPaneContainer getRootPaneContainer()
DockingManager
getRootPaneContainer in interface DockingManagergetRootPaneContainer in interface RootPanePersistencepublic DockedFrameContainer getDockedFrameContainer()
getDockedFrameContainer in interface DockingManagerpublic Workspace createWorkspace()
createWorkspace in interface DockingManagerpublic Workspace getWorkspace()
DockingManager
getWorkspace in interface DockingManagerpublic void setShowWorkspace(boolean showWorkspace)
setShowWorkspace in interface DockingManagershowWorkspace - true to show workspace and false to hide.public boolean isShowWorkspace()
isShowWorkspace in interface DockingManagerprotected void internalSetShowWorkspace(boolean showWorkspace)
public void activateWorkspace()
activateWorkspace in interface DockingManagerpublic boolean isWorkspaceActive()
DockingManager
isWorkspaceActive in interface DockingManagerpublic void beginLoadLayoutData()
beginLoadLayoutData in interface LayoutPersistencepublic boolean loadLayoutFrom(Document document)
LayoutPersistenceNode that specified as node parameter. If any exception
happens during the read, it will call resetLayout() to use default layout.
loadLayoutFrom in interface LayoutPersistencedocument - the Document where the layout data will be read from
public boolean loadLayoutFrom(InputStream in)
in parameter. If any exception happens during
the read, it will call resetLayout() to use default layout.
loadLayoutFrom in interface LayoutPersistencein - the InputStream where the layout data will be read from.
protected void handleNewlyAddedFrames(String[] newlyAddedFrames)
newlyAddedFrames - the newly added frame names in array.public void setShowInitial(boolean value)
DockingManager
setShowInitial in interface DockingManagervalue - true or false.public boolean isShowInitial()
DockingManager
isShowInitial in interface DockingManagerpublic void showInitial()
DockingManager
showInitial in interface DockingManagerpublic void requestFocusInDockingManager()
requestFocusInDockingManager in interface DockingManagerpublic void saveLayoutTo(Document document)
LayoutPersistencedocument parameter.
saveLayoutTo in interface LayoutPersistencedocument - the Document where the layout data will be written to
public void saveLayoutTo(OutputStream out)
throws IOException
out parameter.
saveLayoutTo in interface LayoutPersistenceout - the OutputStream where the layout data will be written to.
IOExceptionpublic Container getContentContainer()
DockingManagerDefaultDockingManager(javax.swing.RootPaneContainer,
java.awt.Container).
getContentContainer in interface DockingManagerpublic JComponent getMainContainer()
DockingManager
getMainContainer in interface DockingManagerpublic void resetLayout()
resetLayout in interface DockingManagerpublic String getActiveFrameKey()
DockingManager
getActiveFrameKey in interface DockingManagerprotected void disposeFloatingContainer(FloatingContainer floatingContainer)
protected FloatingContainer updateUndecorated(FloatingContainer floatingContainer)
floatingContainer - the floating container.
public void autohideAll()
autohideAll in interface DockingManagerpublic void toggleMaximizeState(String key)
DockingManager
toggleMaximizeState in interface DockingManagerkey - the key of the DockableFrame
public void toggleState(String key,
boolean single)
DockingManager
toggleState in interface DockingManagerkey - the key of the frame to change modesingle - change mode for all frames in the same tabbed pane or just the frame itself.public void removeFromHiddenFrames(String key)
removeFromHiddenFrames in interface DockingManagerkey - the frame keypublic boolean isAutohideAllTabs()
isAutohideAllTabs in interface DockingManagerpublic void setAutohideAllTabs(boolean autohideAllTabs)
setAutohideAllTabs in interface DockingManagerautohideAllTabs - true or false.public boolean isHideAllTabs()
isHideAllTabs in interface DockingManagerpublic void setHideAllTabs(boolean hideAllTabs)
setHideAllTabs in interface DockingManagerhideAllTabs - true or false.public boolean isFloatAllTabs()
isFloatAllTabs in interface DockingManagerpublic void setFloatAllTabs(boolean floatAllTabs)
setFloatAllTabs in interface DockingManagerfloatAllTabs - true or false.public boolean isMaximizeAllTabs()
isMaximizeAllTabs in interface DockingManagerpublic void setMaximizeAllTabs(boolean maximizeAllTabs)
setMaximizeAllTabs in interface DockingManagermaximizeAllTabs - true or false.public boolean isFloatable()
isFloatable in interface DockingManagerpublic void setFloatable(boolean floatable)
setFloatable in interface DockingManagerfloatable - the flagpublic boolean isAutohidable()
isAutohidable in interface DockingManagerpublic void setAutohidable(boolean autohidable)
setAutohidable in interface DockingManagerautohidable - the flagpublic boolean isHidable()
isHidable in interface DockingManagerpublic void setHidable(boolean hidable)
setHidable in interface DockingManagerhidable - the flagpublic boolean isRearrangable()
isRearrangable in interface DockingManagerpublic void setRearrangable(boolean rearrangable)
setRearrangable in interface DockingManagerrearrangable - true if the dockable frames can be rearranged by user.public boolean isFloatingFramesResizable()
DockingManager
isFloatingFramesResizable in interface DockingManagerpublic void setFloatingFramesResizable(boolean resizable)
DockingManager
setFloatingFramesResizable in interface DockingManagerresizable - true if the floating dockable frames can be resized by user.public boolean isDockedFramesResizable()
DockingManager
isDockedFramesResizable in interface DockingManagerpublic void setDockedFramesResizable(boolean resizable)
DockingManager
setDockedFramesResizable in interface DockingManagerresizable - true if the docked dockable frames can be resized by user.@Deprecated public boolean isResizable()
isFloatingFramesResizable() and isDockedFramesResizable()
isResizable in interface DockingManager@Deprecated public void setResizable(boolean resizable)
setFloatingFramesResizable(boolean) and setDockedFramesResizable(boolean)
setResizable in interface DockingManagerresizable - true if the dockable frames can be resize by user.public boolean isGroupAllowedOnSidePane()
isGroupAllowedOnSidePane in interface DockingManagerpublic void setGroupAllowedOnSidePane(boolean groupAllowedOnSidePane)
setGroupAllowedOnSidePane in interface DockingManagergroupAllowedOnSidePane - the flagpublic void updateComponentTreeUI()
updateComponentTreeUI to all of them to make sure everything changes after reset look and feel.
updateComponentTreeUI in interface DockingManagerpublic Collection<String> getAllFrames()
getAllFrameNames(). However the order of frame keys from this method is random.
getAllFrameNames() returns the list in the order of when frame is added.
getAllFrames in interface DockingManagerpublic List<String> getAllFrameNames()
getAllFrameNames in interface DockingManagerpublic String[] getAllVisibleFrameKeys()
DockingManagerDockingManager.getAllFrameNames(), the
order of keys are according to the layout on the screen. The order are docked frames first, the autohide frames,
then floating frames. Then among frames of the same mode, it's from left to right and from top to bottom.
getAllVisibleFrameKeys in interface DockingManagerpublic String getFirstFrameKey()
getAllVisibleFrameKeys() to figure out which is the first
one. It is the first one in the array that is returned from getAllVisibleFrameKeys method.
getFirstFrameKey in interface DockingManagerpublic String getLastFrameKey()
getAllVisibleFrameKeys() to figure out which is the last
one. It is the last one in the array that is returned from getAllVisibleFrameKeys method.
getLastFrameKey in interface DockingManagerpublic String getNextFrame(String frame)
getAllVisibleFrameKeys() to figure out which is the next
one. It is the next one in the array that is returned from getAllVisibleFrameKeys method. If the frame is the
last one, the first frame will be returned. Or if the frame is hidden, this method will return the first frame
too. So unless you have no dockable frame at all, this method will never return null.
getNextFrame in interface DockingManagerframe - the current frame.
public String getPreviousFrame(String frame)
getAllVisibleFrameKeys() to figure out which is the
previous one. It is the next one in the array that is returned from getAllVisibleFrameKeys method. If the frame
is the first one, the last frame will be returned. Or if the frame is hidden, this method will return the last
frame too. So unless you have no dockable frame at all, this method will never return null.
getPreviousFrame in interface DockingManagerframe - the current frame.
public boolean isContinuousLayout()
isContinuousLayout in interface DockingManagerpublic void setContinuousLayout(boolean continuousLayout)
setContinuousLayout in interface DockingManagercontinuousLayout - true to turn on continuous layout.public FrameContainer createFrameContainer()
customizeFrameContainer(FrameContainer) before you return the FrameContainer you created.
createFrameContainer in interface DockingManagerpublic FrameContainer customizeFrameContainer(FrameContainer frameContainer)
DockingManagerDockingManager.createFrameContainer().
customizeFrameContainer in interface DockingManagerframeContainer - the frame container to be customized
public void setTabbedPaneCustomizer(DockingManager.TabbedPaneCustomizer customizer)
Here is a code example.
dockingManager.setTabbedPaneCustomizer(new DockingManager.TabbedPaneCustomizer() {
public void customize(JideTabbedPane tabbedPane) {
tabbedPane.setTabPlacement(JideTabbedPane.TOP);
tabbedPane.setHideOneTab(false);
}
});
setTabbedPaneCustomizer in interface DockingManagercustomizer - new tabbed pane customizerpublic Rectangle getInitBounds()
getInitBounds in interface DockingManagerpublic void setInitBounds(Rectangle initBounds)
setInitBounds in interface DockingManagerinitBounds - the initial boundspublic void removeContext(String key)
removeContext in interface DockingManagerkey - key of dockable framepublic int getInitState()
Frame.getExtendedState(). If user never sets init state before, it will return Frame.NORMAL if the init bounds is
less than screen size. If init bounds is larger than screen size, it will return Frame.MAXIMIZED_BOTH (under JDK
1.4 and above only) .
getInitState in interface DockingManagerpublic void setInitState(int initState)
Frame.getExtendedState().
setInitState in interface DockingManagerinitState - the initial stateFrame.setExtendedState(int),
Frame.getExtendedState()public int getSensitiveAreaSize()
DockingManager
getSensitiveAreaSize in interface DockingManagerpublic void setSensitiveAreaSize(int sensitiveAreaSize)
DockingManager
setSensitiveAreaSize in interface DockingManagersensitiveAreaSize - the sensitive sizepublic int getOutsideSensitiveAreaSize()
DockingManager
getOutsideSensitiveAreaSize in interface DockingManagerpublic void setOutsideSensitiveAreaSize(int sensitiveAreaSize)
DockingManager
setOutsideSensitiveAreaSize in interface DockingManagersensitiveAreaSize - the sensitive sizepublic int getOutlineMode()
getOutlineMode in interface DockingManagerpublic void setOutlineMode(int outlineMode)
setOutlineMode in interface DockingManageroutlineMode - the new outline modepublic DockContext getContextOf(String frameKey)
getContextOf in interface DockingManagerframeKey - the frame key
public PopupMenuCustomizer getPopupMenuCustomizer()
getPopupMenuCustomizer in interface DockingManagerpublic void setPopupMenuCustomizer(PopupMenuCustomizer customizer)
setPopupMenuCustomizer in interface DockingManagercustomizer - the menu customizer
public void showContextMenu(Component source,
Point point,
DockableFrame dockableFrame,
boolean onTab)
DockingManager
showContextMenu in interface DockingManagersource - source of the eventpoint - mouse point of the eventdockableFrame - dockable frameonTab - true if mouse is clicked on tab; or else false.public Component getEscapeKeyTargetComponent()
getEscapeKeyTargetComponent in interface DockingManagerpublic void setEscapeKeyTargetComponent(Component escapeKeyTargetComponent)
setEscapeKeyTargetComponent in interface DockingManagerescapeKeyTargetComponent - the componentpublic void dispose()
dispose in interface DockingManagerpublic int getInitDelay()
getInitDelay in interface DockingManagerpublic void setInitDelay(int initDelay)
setInitDelay in interface DockingManagerinitDelay - the initial delay, in ms.public int getStepDelay()
getStepDelay in interface DockingManagerpublic void setStepDelay(int stepDelay)
setStepDelay in interface DockingManagerstepDelay - the delay in each steppublic int getSteps()
getSteps in interface DockingManagerpublic void setSteps(int steps)
setSteps in interface DockingManagersteps - number of the stepspublic boolean isEasyTabDock()
isEasyTabDock in interface DockingManagerpublic void setEasyTabDock(boolean easyTabDock)
setEasyTabDock in interface DockingManagereasyTabDock - the attributepublic boolean isTabDockAllowed()
isTabDockAllowed in interface DockingManagerpublic void setTabDockAllowed(boolean tabDockAllowed)
DockingManager
setTabDockAllowed in interface DockingManagertabDockAllowed - the flagpublic boolean isTabReorderAllowed()
isTabReorderAllowed in interface DockingManagerpublic void setTabReorderAllowed(boolean tabReorderAllowed)
DockingManager
setTabReorderAllowed in interface DockingManagertabReorderAllowed - the flagpublic boolean isNestedFloatingAllowed()
DockingManager
isNestedFloatingAllowed in interface DockingManagerpublic void setNestedFloatingAllowed(boolean nestedFloatingAllowed)
DockingManager
setNestedFloatingAllowed in interface DockingManagernestedFloatingAllowed - the flagDockingManager.isNestedFloatingAllowed()public boolean isDragAllTabs()
DockingManager
isDragAllTabs in interface DockingManagerpublic void setDragAllTabs(boolean dragAllTabs)
DockingManager
setDragAllTabs in interface DockingManagerdragAllTabs - the flagDockingManager.isDragAllTabs()public boolean isShowGripper()
isShowGripper in interface DockingManagerpublic void setShowGripper(boolean showGripper)
setShowGripper in interface DockingManagershowGripper - true to show grippublic boolean isShowDividerGripper()
isShowDividerGripper in interface DockingManagerpublic void setShowDividerGripper(boolean showDividerGripper)
setShowDividerGripper in interface DockingManagershowDividerGripper - true to show grippublic boolean isDragGripperOnly()
isDragGripperOnly in interface DockingManagerpublic void setDragGripperOnly(boolean dragGripperOnly)
setDragGripperOnly in interface DockingManagerdragGripperOnly - true to show grippublic boolean isShowTitleBar()
isShowTitleBar in interface DockingManagerpublic void setShowTitleBar(boolean showTitleBar)
setShowTitleBar in interface DockingManagershowTitleBar - true to show grippublic void setAutohideShowingContentHidden(boolean hide)
DockingManager
setAutohideShowingContentHidden in interface DockingManagerpublic boolean isAutohideShowingContentHidden()
DockingManager
isAutohideShowingContentHidden in interface DockingManagerpublic boolean isSidebarRollover()
DockingManager
isSidebarRollover in interface DockingManagerpublic void setSidebarRollover(boolean sidebarRollover)
DockingManager
setSidebarRollover in interface DockingManagersidebarRollover - the flagpublic void setFrameAvailable(String key)
setFrameAvailable in interface DockingManagerkey - the key of frame to be shownpublic void setFrameUnavailable(String key)
setFrameUnavailable in interface DockingManagerkey - key of dockable framepublic void setUndoLimit(int undoLimit)
setUndoLimit in interface DockingManagerundoLimit - the flagpublic int getUndoLimit()
public void discardAllUndoEdits()
DockingManager
discardAllUndoEdits in interface DockingManagerpublic void undo()
DockingManager
undo in interface DockingManagerpublic void redo()
DockingManager
redo in interface DockingManagerpublic UndoManager getUndoManager()
DockingManager
getUndoManager in interface DockingManagergetUndoManager in interface UndoableSupportprotected UndoManager createUndoManager()
public void beginCompoundEdit(boolean isUndoRedo)
UndoableSupport
beginCompoundEdit in interface UndoableSupportisUndoRedo - the flag to indicate if this operation is triggered by undo/redopublic void endCompoundEdit()
UndoableSupport
endCompoundEdit in interface UndoableSupportpublic boolean isPreserveAvailableProperty()
DockingManager
isPreserveAvailableProperty in interface DockingManagerpublic void setPreserveAvailableProperty(boolean preserveAvailableProperty)
DockingManager
setPreserveAvailableProperty in interface DockingManagerpreserveAvailableProperty - true or false. True to preserve the unavailable flag.public void addUndoableEditListener(UndoableEditListener listener)
DockingManager
addUndoableEditListener in interface DockingManagerlistener - the listenerpublic void removeUndoableEditListener(UndoableEditListener listener)
DockingManager
removeUndoableEditListener in interface DockingManagerlistener - the listenerpublic void addUndo(String name)
DockingManager
addUndo in interface DockingManagername - the name of the new undo editpublic UndoableEditSupport getUndoableEditSupport()
UndoableSupport
getUndoableEditSupport in interface UndoableSupportpublic void maximizeFrame(String key)
maximizeFrame in interface DockingManagerkey - the key of frame to be maximizedpublic String getMaximizedFrameKey()
DockingManager
getMaximizedFrameKey in interface DockingManagerpublic void restoreFrame()
restoreFrame in interface DockingManagerpublic int getDoubleClickAction()
getDoubleClickAction in interface DockingManagerpublic void setDoubleClickAction(int doubleClickAction)
setDoubleClickAction in interface DockingManagerdoubleClickAction - Either DOUBLE_CLICK_TO_FLOAT or DOUBLE_CLICK_TO_MAXIMIZE or DOUBLE_CLICK_NONE.public boolean isAutoDocking()
DockingManager
isAutoDocking in interface DockingManagerpublic void setAutoDocking(boolean autoDocking)
DockingManager
setAutoDocking in interface DockingManagerautoDocking - if auto docking is enabled. Default is true.public boolean isAutoDockingAsDefault()
DockingManager
isAutoDockingAsDefault in interface DockingManagerpublic void setAutoDockingAsDefault(boolean autoDockingAsDefault)
DockingManager
setAutoDockingAsDefault in interface DockingManagerautoDockingAsDefault - the flagpublic boolean isPreserveStateOnDragging()
DockingManager
isPreserveStateOnDragging in interface DockingManagerpublic void setPreserveStateOnDragging(boolean preserveStateOnDragging)
DockingManager
setPreserveStateOnDragging in interface DockingManagerpreserveStateOnDragging - the flagDockingManager.isPreserveStateOnDragging()public void removeExtraContexts()
DockingManager
removeExtraContexts in interface DockingManagerpublic Map<String,DockContext> getAllContexts()
DockingManager
getAllContexts in interface DockingManagerpublic boolean isHideFloatingFramesWhenDeactivate()
DockingManager
isHideFloatingFramesWhenDeactivate in interface DockingManagerpublic void setHideFloatingFramesWhenDeactivate(boolean hideFloatingFramesWhenDeactivate)
DockingManager
setHideFloatingFramesWhenDeactivate in interface DockingManagerpublic boolean isHideFloatingFramesOnSwitchOutOfApplication()
isHideFloatingFramesOnSwitchOutOfApplication in interface DockingManagerpublic void setHideFloatingFramesOnSwitchOutOfApplication(boolean newValue)
setHideFloatingFramesOnSwitchOutOfApplication in interface DockingManagerpublic int getAllowedDockSides()
DockContext.DOCK_SIDE_NORTH, DockContext.DOCK_SIDE_SOUTH, DockContext.DOCK_SIDE_WEST, and DockContext.DOCK_SIDE_EAST. Or you
can use combine values such as DockContext.DOCK_SIDE_HORIZONTAL, DockContext.DOCK_SIDE_VERTICAL
or DockContext.DOCK_SIDE_ALL. Please note, DockContext.DOCK_SIDE_CENTER is not a valid value# By
default, dragging a dockable frame to workspace is not allowed anyway# If you want to control it, you should use
Workspace.setAcceptDockableFrame(boolean).
This setting will only affect user dragging. For example, if you set the allowed dock sides to not allow north
side, user won't be able to drag a dockable frame and put it to the north side of the main window or the north
side of workspace area. However if a dockable frame's initial side is set to north, it will be put to north. So
you as developer need to consciously avoid initial dock sides which you don't allow using this setting.
getAllowedDockSides in interface DockingManagerpublic void setAllowedDockSides(int allowedDockSides)
setAllowedDockSides in interface DockingManagerallowedDockSides - allowed dock sidesgetAllowedDockSides()public boolean shouldVetoRemovingAllFrames()
shouldVetoRemovingAllFrames in interface DockingManagerpublic static boolean isExclusive()
To consider both valid use cases, you can use this attribute to determine the correct behavior depending on your application. The default value is false.
public static void setExclusive(boolean exclusive)
exclusive - the attributeisExclusive()public boolean isShowContextMenu()
isShowContextMenu in interface DockingManagerpublic void setShowContextMenu(boolean showContextMenu)
setShowContextMenu in interface DockingManagershowContextMenu - the flagpublic boolean isAutohideShowingInProgress()
DockingManager
isAutohideShowingInProgress in interface DockingManagerpublic String getAutohideShowingFrame()
DockingManager
getAutohideShowingFrame in interface DockingManagerpublic DockableFrameFactory getDockableFrameFactory()
DockingManager
getDockableFrameFactory in interface DockingManagerpublic void setDockableFrameFactory(DockableFrameFactory dockableFrameFactory)
DockingManager
setDockableFrameFactory in interface DockingManagerdockableFrameFactory - the dockable frame factorypublic void loadInitialLayout(Document layoutDocument)
LayoutPersistence
loadInitialLayout in interface LayoutPersistencelayoutDocument - the Document contains an initial layout.public boolean isUseDecoratedFloatingContainer()
isUseDecoratedFloatingContainer in interface DockingManagerpublic void setUseDecoratedFloatingContainer(boolean useDecoratedFloatingContainer)
setUseDecoratedFloatingContainer in interface DockingManageruseDecoratedFloatingContainer - the flagpublic boolean isProportionalSplits()
DockingManager
isProportionalSplits in interface DockingManagerpublic void setProportionalSplits(boolean b)
DockingManager
setProportionalSplits in interface DockingManagerb - the flagprotected void preDispatchDockableFrameEvent()
public boolean isHeavyweightComponentEnabled()
isHeavyweightComponentEnabled in interface DockingManagerpublic void setHeavyweightComponentEnabled(boolean heavyweightComponentEnabled)
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
setHeavyweightComponentEnabled in interface DockingManagerheavyweightComponentEnabled - the flagpublic boolean isUseGlassPaneEnabled()
isUseGlassPaneEnabled in interface DockingManagerpublic void setUseGlassPaneEnabled(boolean useGlassPaneEnabled)
setUseGlassPaneEnabled in interface DockingManageruseGlassPaneEnabled - the flagpublic boolean isSideDockAllowed()
isSideDockAllowed in interface DockingManagerpublic void setSideDockAllowed(boolean sideDockAllowed)
DockingManager
setSideDockAllowed in interface DockingManagersideDockAllowed - the flagpublic boolean isWithinFrameBoundsOnDragging()
DockingManager
isWithinFrameBoundsOnDragging in interface DockingManagerpublic void setWithinFrameBoundsOnDragging(boolean withinFrameBoundsOnDragging)
DockingManager
setWithinFrameBoundsOnDragging in interface DockingManagerwithinFrameBoundsOnDragging - the flagpublic boolean isWithinScreenBoundsOnDragging()
DockingManager
isWithinScreenBoundsOnDragging in interface DockingManagerpublic void setWithinScreenBoundsOnDragging(boolean withinScreenBoundsOnDragging)
DockingManager
setWithinScreenBoundsOnDragging in interface DockingManagerwithinScreenBoundsOnDragging - the flagpublic boolean isCrossDraggingAllowed()
DockingManager
isCrossDraggingAllowed in interface DockingManagerpublic void setCrossDraggingAllowed(boolean crossDraggingAllowed)
setCrossDraggingAllowed in interface DockingManagerpublic boolean isCrossDroppingAllowed()
DockingManager
isCrossDroppingAllowed in interface DockingManagerpublic void setCrossDroppingAllowed(boolean crossDroppingAllowed)
setCrossDroppingAllowed in interface DockingManagerpublic static List<DockingManager> getAllDockingManagers()
public void addDockableFrameDropListener(DockableFrameDropListener l)
addDockableFrameDropListener in interface DockingManagerl - the dockable frame listenerpublic void removeDockableFrameDropListener(DockableFrameDropListener l)
removeDockableFrameDropListener in interface DockingManagerl - the dockable frame drop listenerpublic DockableFrameDropListener[] getDockableFrameDropListeners()
DockableFrameDropListeners added to this DockableFrame with
addDockableFrameDropListener.
getDockableFrameDropListeners in interface DockingManagerDockableFrameDropListeners added or an empty array if no listeners have been
addedaddDockableFrameDropListener(com.jidesoft.docking.event.DockableFrameDropListener)
public boolean isDropAllowed(DockableFrame source,
Component target,
int side)
isDropAllowed in interface DockingManagersource - the frame to be droppedtarget - the target that the frame to be dropped inside - the side
public void addDockableFrameListener(DockableFrameListener l)
DockingManagerDockableFrame.addDockableFrameListener(com.jidesoft.docking.event.DockableFrameListener) method.
addDockableFrameListener in interface DockingManagerl - the dockable frame listenerpublic void removeDockableFrameListener(DockableFrameListener l)
removeDockableFrameListener in interface DockingManagerl - the dockable frame listenerpublic DockableFrameListener[] getDockableFrameListeners()
DockableFrameListeners added to this DockableFrame with
addDockableFrameListener.
getDockableFrameListeners in interface DockingManagerDockableFrameListeners added or an empty array if no listeners have been addedaddDockableFrameListener(com.jidesoft.docking.event.DockableFrameListener)public boolean isHideNewlyAddedFrames()
isHideNewlyAddedFrames in interface DockingManagerpublic void setHideNewlyAddedFrames(boolean hideNewlyAddedFrames)
setHideNewlyAddedFrames in interface DockingManagerhideNewlyAddedFrames - the flagpublic Color getNotificationBackground()
getNotificationBackground in interface DockingManagerpublic void setNotificationBackground(Color notificationBackground)
setNotificationBackground in interface DockingManagernotificationBackground - the notification background.public Color getNotificationForeground()
getNotificationForeground in interface DockingManagerpublic void setNotificationForeground(Color notificationForeground)
setNotificationForeground in interface DockingManagernotificationForeground - the notification foreground.public int getNotificationDelay()
getNotificationDelay in interface DockingManagerpublic void setNotificationDelay(int notificationDelay)
setNotificationDelay in interface DockingManagernotificationDelay - the delay.public int getNotificationSteps()
getNotificationSteps in interface DockingManagerpublic void setNotificationSteps(int notificationSteps)
setNotificationSteps in interface DockingManagernotificationSteps - the number of flashes when notifyFrame is called. -1 means it will never stop until user
responses to the notification.public boolean isShowTitleOnOutline()
DockingManager
isShowTitleOnOutline in interface DockingManagerpublic void setShowTitleOnOutline(boolean showTitleOnOutline)
DockingManagerDockingManager.PARTIAL_OUTLINE_MODE and DockingManager.TRANSPARENT_OUTLINE_MODE.
setShowTitleOnOutline in interface DockingManager
@Deprecated
public void dockFrame(DockableFrame f,
int side,
int index)
DeprecatedDockingManager
dockFrame in interface DeprecatedDockingManager@Deprecated public DockableFrame getFirstFrame()
DeprecatedDockingManager#getAllVisibleFrameKeys() to figure out which is the first
one. It is the first one in the array that is returned from getAllVisibleFrameKeys method.
getFirstFrame in interface DeprecatedDockingManager@Deprecated public DockableFrame getLastFrame()
DeprecatedDockingManager#getAllVisibleFrameKeys() to figure out which is the last
one. It is the last one in the array that is returned from getAllVisibleFrameKeys method.
getLastFrame in interface DeprecatedDockingManager@Deprecated public DockableFrame getNextFrame(DockableFrame f)
DeprecatedDockingManager#getAllVisibleFrameKeys() to figure out which is the next
one. It is the next one in the array that is returned from getAllVisibleFrameKeys method. If the frame is the
last one, the first frame will be returned. Or if the frame is hidden, this method will return the first frame
too. So unless you have no dockable frame at all, this method will never return null.
getNextFrame in interface DeprecatedDockingManagerf - the current frame.
@Deprecated public DockableFrame getPreviousFrame(DockableFrame f)
DeprecatedDockingManager#getAllVisibleFrameKeys() to figure out which is the
previous one. It is the next one in the array that is returned from getAllVisibleFrameKeys method. If the frame
is the first one, the last frame will be returned. Or if the frame is hidden, this method will return the last
frame too. So unless you have no dockable frame at all, this method will never return null.
getPreviousFrame in interface DeprecatedDockingManagerf - the current frame.
@Deprecated public void toggleMaximizeState(DockableFrame f)
DeprecatedDockingManager
toggleMaximizeState in interface DeprecatedDockingManager@Deprecated public void setAutohideShowingFrame(DockableFrame f)
setAutohideShowingFrame in interface DeprecatedDockingManager@Deprecated public void hideActiveAutohideFrame()
DeprecatedDockingManager
hideActiveAutohideFrame in interface DeprecatedDockingManager
@Deprecated
public void startShowingAutohideFrame(DockableFrame f,
int side,
int delay,
boolean forceFocus)
DeprecatedDockingManager
startShowingAutohideFrame in interface DeprecatedDockingManagerforceFocus - if delay == 0
@Deprecated
public void startShowingAutohideFrame(DockableFrame f,
int side,
int delay)
DeprecatedDockingManager
startShowingAutohideFrame in interface DeprecatedDockingManager@Deprecated public JFrame getMainFrame()
DeprecatedDockingManager
getMainFrame in interface DeprecatedDockingManager@Deprecated public AutoHideContainer getAutoHideContaner(int side)
DeprecatedDockingManager
getAutoHideContaner in interface DeprecatedDockingManager
@Deprecated
public void floatFrame(DockableFrame f,
Rectangle bounds,
boolean isSingle)
DeprecatedDockingManager
floatFrame in interface DeprecatedDockingManager
@Deprecated
public void autohideFrame(DockableFrame f,
int side,
int index)
DeprecatedDockingManager
autohideFrame in interface DeprecatedDockingManager@Deprecated public DockableFrame getActiveFrame()
getActiveFrame in interface DeprecatedDockingManager@Deprecated public DockableFrame getMaximizedFrame()
DeprecatedDockingManager
getMaximizedFrame in interface DeprecatedDockingManager@Deprecated public void toggleAutohideState(DockableFrame frame)
DeprecatedDockingManager
toggleAutohideState in interface DeprecatedDockingManagerframe - the frame to be toggled.@Deprecated public void toggleDockable(DockableFrame frame)
DeprecatedDockingManager
toggleDockable in interface DeprecatedDockingManager
@Deprecated
public void toggleState(DockableFrame frame,
boolean single)
DeprecatedDockingManager
toggleState in interface DeprecatedDockingManagerframe - the frame to change modesingle - change mode for all frames in the same tabbed pane or just the frame itself.@Deprecated public void doLayout()
doLayout in interface DeprecatedDockingManager@Deprecated public void handleEscapeKey(AWTEvent event)
handleEscapeKey in interface DeprecatedDockingManager@Deprecated public void floatingFrameDeactivated(WindowEvent windowEvent)
DeprecatedDockingManager
floatingFrameDeactivated in interface DeprecatedDockingManager@Deprecated public void floatingFrameActivated(WindowEvent windowEvent)
DeprecatedDockingManager
floatingFrameActivated in interface DeprecatedDockingManager
@Deprecated
public MouseListener createAutoHideMouseListener(DockableFrame frame,
int side)
DeprecatedDockingManager
createAutoHideMouseListener in interface DeprecatedDockingManagerframe - the dockable frame.side - the side.
@Deprecated public boolean isFocusDuringLoadLayout()
DeprecatedDockingManager
isFocusDuringLoadLayout in interface DeprecatedDockingManager@Deprecated public void setFocusDuringLayout(boolean doFocus)
DeprecatedDockingManager
setFocusDuringLayout in interface DeprecatedDockingManagerdoFocus - should focus requests be enabled during load layout@Deprecated public boolean isAllowRequestFocus()
DeprecatedDockingManager
isAllowRequestFocus in interface DeprecatedDockingManager@Deprecated public Component getDefaultFocusComponent()
DeprecatedDockingManager
getDefaultFocusComponent in interface DeprecatedDockingManager@Deprecated public void setDefaultFocusComponent(Component defaultFocusComponent)
DeprecatedDockingManager
setDefaultFocusComponent in interface DeprecatedDockingManager
protected void checkFrameKey(String key,
String methodName)
public boolean isActive()
DockingManager
DockingManagerGroup group = new DockingManagerGroup();
group.add(dockingManager1);
group.add(dockingManager2);
... // you can add more docking managers if you want
isActive in interface DockingManagerDockingManagerGrouppublic void setActive(boolean active)
DockingManager
setActive in interface DockingManageractive - true or false.public DockingManagerGroup getGroup()
DockingManager
getGroup in interface DockingManagerpublic void setGroup(DockingManagerGroup group)
DockingManager
setGroup in interface DockingManagergroup - the new DockingManagerGroup.public int getFloatingContainerType()
DockingManagerDockingManager.FLOATING_CONTAINER_TYPE_DIALOG, DockingManager.FLOATING_CONTAINER_TYPE_FRAME or DockingManager.FLOATING_CONTAINER_TYPE_WINDOW.
getFloatingContainerType in interface DockingManagerpublic void setFloatingContainerType(int floatingContainerType)
DockingManagerDockingManager.FLOATING_CONTAINER_TYPE_DIALOG, DockingManager.FLOATING_CONTAINER_TYPE_FRAME or DockingManager.FLOATING_CONTAINER_TYPE_WINDOW.
setFloatingContainerType in interface DockingManagerfloatingContainerType - the floating container type.public DockingManager.FloatingContainerCustomizer getFloatingContainerCustomizer()
DockingManager
getFloatingContainerCustomizer in interface DockingManagerpublic void setFloatingContainerCustomizer(DockingManager.FloatingContainerCustomizer customizer)
DockingManager
setFloatingContainerCustomizer in interface DockingManagercustomizer - the FloatingContainerCustomizer.public List<FloatingContainer> getFloatingFrames()
getFloatingFrames in interface DockingManagerpublic void setActiveMouseInputListener(MouseInputListener listener)
DockingManager
setActiveMouseInputListener in interface DockingManagerpublic MouseInputListener getActiveMouseInputListener()
DockingManager
getActiveMouseInputListener in interface DockingManager
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||