|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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.
DockableFrame
s 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 DockableFrameDropListener s added to this DockableFrame with
addDockableFrameDropListener . |
DockableFrameFactory |
getDockableFrameFactory()
Gets the dockable frame factory. |
DockableFrameListener[] |
getDockableFrameListeners()
Returns an array of all the DockableFrameListener s 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 DockingManager
public void setFloatingFramesVisible(boolean show)
DockingManager
setFloatingFramesVisible
in interface DockingManager
show
- 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 eventpublic 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 DockingManager
autoActivateFocusOwner
- true or false.public boolean handleEvent(AWTEvent event)
DockingManager
handleEvent
in interface DockingManager
event
- 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 DockingManager
key
- 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 LayoutPersistence
protected 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 DockingManager
side
- the side
public int getInitSplitPriority()
getInitSplitPriority
in interface DockingManager
public void setInitSplitPriority(int initSplitPriority)
setInitSplitPriority
in interface DockingManager
initSplitPriority
- split priority.public int[] getCustomInitSplitPriority()
getCustomInitSplitPriority
in interface DockingManager
public void setCustomInitSplitPriority(int[] customInitSplitPriority)
setCustomInitSplitPriority
in interface DockingManager
customInitSplitPriority
- new init split prioritypublic int getInitCenterSplit()
getInitCenterSplit
in interface DockingManager
public void setInitCenterSplit(int initCenterSplit)
setInitCenterSplit
in interface DockingManager
initCenterSplit
- the initial center splitgetInitCenterSplit()
public int getInitEastSplit()
getInitEastSplit
in interface DockingManager
public void setInitEastSplit(int initEastSplit)
JideSplitPane.HORIZONTAL_SPLIT
and
JideSplitPane.VERTICAL_SPLIT
. It is JideSplitPane.VERTICAL_SPLIT
by default.
setInitEastSplit
in interface DockingManager
initEastSplit
- the initial east splitgetInitEastSplit()
public int getInitWestSplit()
getInitWestSplit
in interface DockingManager
public void setInitWestSplit(int initWestSplit)
JideSplitPane.HORIZONTAL_SPLIT
and
JideSplitPane.VERTICAL_SPLIT
. It is JideSplitPane.VERTICAL_SPLIT
by default.
setInitWestSplit
in interface DockingManager
initWestSplit
- initial west splitgetInitWestSplit()
public int getInitNorthSplit()
getInitNorthSplit
in interface DockingManager
public void setInitNorthSplit(int initNorthSplit)
JideSplitPane.HORIZONTAL_SPLIT
and
JideSplitPane.VERTICAL_SPLIT
. It is JideSplitPane.HORIZONTAL_SPLIT
by default.
setInitNorthSplit
in interface DockingManager
initNorthSplit
- the initial north splitgetInitNorthSplit()
public int getInitSouthSplit()
getInitSouthSplit
in interface DockingManager
public void setInitSouthSplit(int initSouthSplit)
JideSplitPane.HORIZONTAL_SPLIT
and
JideSplitPane.VERTICAL_SPLIT
. It is JideSplitPane.HORIZONTAL_SPLIT
by default.
setInitSouthSplit
in interface DockingManager
initSouthSplit
- the flaggetInitSouthSplit()
public boolean isLoadDataSuccessful()
isLoadDataSuccessful
in interface LayoutPersistence
public DockableFrame getFrame(String key)
getFrame
in interface DockingManager
key
- the frame key
public void addFrame(DockableFrame frame)
addFrame
in interface DockingManager
frame
- frame to be addedpublic void removeAllFrames()
removeAllFrames
in interface DockingManager
public void removeFrame(String key)
removeFrame
in interface DockingManager
key
- key of frame to be removedpublic 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 DockingManager
key
- 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 DockingManager
key
- the key of frame to be shownpublic void showFrame(String key, boolean active)
showFrame
in interface DockingManager
key
- 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 DockingManager
key
- the key of frame to be notifiedpublic void denotifyFrame(String key)
denotifyFrame
in interface DockingManager
key
- the key of frame to be de-notifiedpublic void hideFrame(String key)
hideFrame
in interface DockingManager
key
- the frame keypublic void dockFrame(String key, int side, int index)
dockFrame
in interface DockingManager
key
- 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 DockingManager
key
- 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 DockingManager
owner
- 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 DockingManager
frame
- the frame that is showingside
- the sidepublic void startShowingAutohideFrame(String frameKey, int side, int delay)
startShowingAutohideFrame
in interface DockingManager
frameKey
- the key of the frameside
- the side of the frame to showdelay
- the delay in millisecondspublic void stopShowingAutohideFrame(int initDelay, boolean forceComplete)
DockingManager
stopShowingAutohideFrame
in interface DockingManager
initDelay
- 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 DockingManager
frame
- the frame that is showingpublic void stopShowingAutohideFrameImmediately()
stopShowingAutohideFrameImmediately
in interface DockingManager
protected 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 DockingManager
DockingManager.setUnknownFrameBehaviorOnLoading(int)
public void setUnknownFrameBehaviorOnLoading(int unknownFrameBehaviorOnLoading)
DockingManager
DockingManager.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 DockingManager
unknownFrameBehaviorOnLoading
- the unknown frame behaviorpublic boolean isXmlFormat()
AbstractLayoutPersistence
isXmlFormat
in interface LayoutPersistence
isXmlFormat
in class AbstractLayoutPersistence
AbstractLayoutPersistence.setXmlFormat(boolean)
public void setXmlFormat(boolean xmlFormat)
AbstractLayoutPersistence
setXmlFormat
in interface LayoutPersistence
setXmlFormat
in class AbstractLayoutPersistence
xmlFormat
- the flagpublic int getSnapGridSize()
DockingManager
getSnapGridSize
in interface DockingManager
DockingManager.setSnapGridSize(int)
public void setSnapGridSize(int snapGridSize)
DockingManager
setSnapGridSize
in interface DockingManager
snapGridSize
- the snap grid sizepublic void activateFrame(String key)
activateFrame
in interface DockingManager
key
- key of frame to be activatedpublic void beginDraggingFrame(JComponent f, int mouseX, int mouseY, double relativeX, double relativeY, boolean single)
beginDraggingFrame
in interface DockingManager
f
- 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 DockingManager
public boolean isDragging()
isDragging
in interface DockingManager
public void cancelDragging()
cancelDragging
in interface DockingManager
public void dragFrame(JComponent f, int newX, int newY, int mouseModifiers)
dragFrame
in interface DockingManager
f
- 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 DockingManager
f
- the component to be draggedpublic ContainerContainer createContainerContainer()
DockingManager
createContainerContainer
in interface DockingManager
public void moveFrame(String frameKey, String destFrameKey)
moveFrame
in interface DockingManager
frameKey
- the key of the dockable frame to be moveddestFrameKey
- the key of the destination dockable framepublic void moveFrame(String frameKey, String destFrameKey, int side)
moveFrame
in interface DockingManager
frameKey
- 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 DockingManager
f
- the componentdirection
- the directionpublic void resizingFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
resizingFrame
in interface DockingManager
f
- the componentnewX
- new XnewY
- new YnewWidth
- new widthnewHeight
- new heightpublic void endResizingFrame(JComponent f)
endResizingFrame
in interface DockingManager
f
- the componentpublic void toggleDockable(String key)
toggleDockable
in interface DockingManager
key
- frame keypublic void toggleAutohideState(String key)
toggleAutohideState
in interface DockingManager
key
- frame keypublic void autohideFrame(String frameKey, int side, int index)
autohideFrame
in interface DockingManager
frameKey
- 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 DockingManager
side
- the dock side of the auto hide container
public List<DockingManager.FrameHandle> getOrderedFrames()
getOrderedFrames
in interface DockingManager
protected boolean allowActivate(Object source)
source
- the component to be activated
public RootPaneContainer getRootPaneContainer()
DockingManager
getRootPaneContainer
in interface DockingManager
getRootPaneContainer
in interface RootPanePersistence
public DockedFrameContainer getDockedFrameContainer()
getDockedFrameContainer
in interface DockingManager
public Workspace createWorkspace()
createWorkspace
in interface DockingManager
public Workspace getWorkspace()
DockingManager
getWorkspace
in interface DockingManager
public void setShowWorkspace(boolean showWorkspace)
setShowWorkspace
in interface DockingManager
showWorkspace
- true to show workspace and false to hide.public boolean isShowWorkspace()
isShowWorkspace
in interface DockingManager
protected void internalSetShowWorkspace(boolean showWorkspace)
public void activateWorkspace()
activateWorkspace
in interface DockingManager
public boolean isWorkspaceActive()
DockingManager
isWorkspaceActive
in interface DockingManager
public void beginLoadLayoutData()
beginLoadLayoutData
in interface LayoutPersistence
public boolean loadLayoutFrom(Document document)
LayoutPersistence
Node
that specified as node
parameter. If any exception
happens during the read, it will call resetLayout() to use default layout.
loadLayoutFrom
in interface LayoutPersistence
document
- 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 LayoutPersistence
in
- 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 DockingManager
value
- true or false.public boolean isShowInitial()
DockingManager
isShowInitial
in interface DockingManager
public void showInitial()
DockingManager
showInitial
in interface DockingManager
public void requestFocusInDockingManager()
requestFocusInDockingManager
in interface DockingManager
public void saveLayoutTo(Document document)
LayoutPersistence
document
parameter.
saveLayoutTo
in interface LayoutPersistence
document
- the Document where the layout data will be written topublic void saveLayoutTo(OutputStream out) throws IOException
out
parameter.
saveLayoutTo
in interface LayoutPersistence
out
- the OutputStream where the layout data will be written to.
IOException
public Container getContentContainer()
DockingManager
DefaultDockingManager(javax.swing.RootPaneContainer,
java.awt.Container)
.
getContentContainer
in interface DockingManager
public JComponent getMainContainer()
DockingManager
getMainContainer
in interface DockingManager
public void resetLayout()
resetLayout
in interface DockingManager
public String getActiveFrameKey()
DockingManager
getActiveFrameKey
in interface DockingManager
protected void disposeFloatingContainer(FloatingContainer floatingContainer)
protected FloatingContainer updateUndecorated(FloatingContainer floatingContainer)
floatingContainer
- the floating container.
public void autohideAll()
autohideAll
in interface DockingManager
public void toggleMaximizeState(String key)
DockingManager
toggleMaximizeState
in interface DockingManager
key
- the key of the DockableFramepublic void toggleState(String key, boolean single)
DockingManager
toggleState
in interface DockingManager
key
- 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 DockingManager
key
- the frame keypublic boolean isAutohideAllTabs()
isAutohideAllTabs
in interface DockingManager
public void setAutohideAllTabs(boolean autohideAllTabs)
setAutohideAllTabs
in interface DockingManager
autohideAllTabs
- true or false.public boolean isHideAllTabs()
isHideAllTabs
in interface DockingManager
public void setHideAllTabs(boolean hideAllTabs)
setHideAllTabs
in interface DockingManager
hideAllTabs
- true or false.public boolean isFloatAllTabs()
isFloatAllTabs
in interface DockingManager
public void setFloatAllTabs(boolean floatAllTabs)
setFloatAllTabs
in interface DockingManager
floatAllTabs
- true or false.public boolean isMaximizeAllTabs()
isMaximizeAllTabs
in interface DockingManager
public void setMaximizeAllTabs(boolean maximizeAllTabs)
setMaximizeAllTabs
in interface DockingManager
maximizeAllTabs
- true or false.public boolean isFloatable()
isFloatable
in interface DockingManager
public void setFloatable(boolean floatable)
setFloatable
in interface DockingManager
floatable
- the flagpublic boolean isAutohidable()
isAutohidable
in interface DockingManager
public void setAutohidable(boolean autohidable)
setAutohidable
in interface DockingManager
autohidable
- the flagpublic boolean isHidable()
isHidable
in interface DockingManager
public void setHidable(boolean hidable)
setHidable
in interface DockingManager
hidable
- the flagpublic boolean isRearrangable()
isRearrangable
in interface DockingManager
public void setRearrangable(boolean rearrangable)
setRearrangable
in interface DockingManager
rearrangable
- true if the dockable frames can be rearranged by user.public boolean isFloatingFramesResizable()
DockingManager
isFloatingFramesResizable
in interface DockingManager
public void setFloatingFramesResizable(boolean resizable)
DockingManager
setFloatingFramesResizable
in interface DockingManager
resizable
- true if the floating dockable frames can be resized by user.public boolean isDockedFramesResizable()
DockingManager
isDockedFramesResizable
in interface DockingManager
public void setDockedFramesResizable(boolean resizable)
DockingManager
setDockedFramesResizable
in interface DockingManager
resizable
- 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 DockingManager
resizable
- true if the dockable frames can be resize by user.public boolean isGroupAllowedOnSidePane()
isGroupAllowedOnSidePane
in interface DockingManager
public void setGroupAllowedOnSidePane(boolean groupAllowedOnSidePane)
setGroupAllowedOnSidePane
in interface DockingManager
groupAllowedOnSidePane
- the flagpublic void updateComponentTreeUI()
updateComponentTreeUI
to all of them to make sure everything changes after reset look and feel.
updateComponentTreeUI
in interface DockingManager
public 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 DockingManager
public List<String> getAllFrameNames()
getAllFrameNames
in interface DockingManager
public String[] getAllVisibleFrameKeys()
DockingManager
DockingManager.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 DockingManager
public 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 DockingManager
public 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 DockingManager
public 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 DockingManager
frame
- 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 DockingManager
frame
- the current frame.
public boolean isContinuousLayout()
isContinuousLayout
in interface DockingManager
public void setContinuousLayout(boolean continuousLayout)
setContinuousLayout
in interface DockingManager
continuousLayout
- true to turn on continuous layout.public FrameContainer createFrameContainer()
customizeFrameContainer(FrameContainer)
before you return the FrameContainer you created.
createFrameContainer
in interface DockingManager
public FrameContainer customizeFrameContainer(FrameContainer frameContainer)
DockingManager
DockingManager.createFrameContainer()
.
customizeFrameContainer
in interface DockingManager
frameContainer
- 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 DockingManager
customizer
- new tabbed pane customizerpublic Rectangle getInitBounds()
getInitBounds
in interface DockingManager
public void setInitBounds(Rectangle initBounds)
setInitBounds
in interface DockingManager
initBounds
- the initial boundspublic void removeContext(String key)
removeContext
in interface DockingManager
key
- 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 DockingManager
public void setInitState(int initState)
Frame.getExtendedState()
.
setInitState
in interface DockingManager
initState
- the initial stateFrame.setExtendedState(int)
,
Frame.getExtendedState()
public int getSensitiveAreaSize()
DockingManager
getSensitiveAreaSize
in interface DockingManager
public void setSensitiveAreaSize(int sensitiveAreaSize)
DockingManager
setSensitiveAreaSize
in interface DockingManager
sensitiveAreaSize
- the sensitive sizepublic int getOutsideSensitiveAreaSize()
DockingManager
getOutsideSensitiveAreaSize
in interface DockingManager
public void setOutsideSensitiveAreaSize(int sensitiveAreaSize)
DockingManager
setOutsideSensitiveAreaSize
in interface DockingManager
sensitiveAreaSize
- the sensitive sizepublic int getOutlineMode()
getOutlineMode
in interface DockingManager
public void setOutlineMode(int outlineMode)
setOutlineMode
in interface DockingManager
outlineMode
- the new outline modepublic DockContext getContextOf(String frameKey)
getContextOf
in interface DockingManager
frameKey
- the frame key
public PopupMenuCustomizer getPopupMenuCustomizer()
getPopupMenuCustomizer
in interface DockingManager
public void setPopupMenuCustomizer(PopupMenuCustomizer customizer)
setPopupMenuCustomizer
in interface DockingManager
customizer
- the menu customizerpublic void showContextMenu(Component source, Point point, DockableFrame dockableFrame, boolean onTab)
DockingManager
showContextMenu
in interface DockingManager
source
- 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 DockingManager
public void setEscapeKeyTargetComponent(Component escapeKeyTargetComponent)
setEscapeKeyTargetComponent
in interface DockingManager
escapeKeyTargetComponent
- the componentpublic void dispose()
dispose
in interface DockingManager
public int getInitDelay()
getInitDelay
in interface DockingManager
public void setInitDelay(int initDelay)
setInitDelay
in interface DockingManager
initDelay
- the initial delay, in ms.public int getStepDelay()
getStepDelay
in interface DockingManager
public void setStepDelay(int stepDelay)
setStepDelay
in interface DockingManager
stepDelay
- the delay in each steppublic int getSteps()
getSteps
in interface DockingManager
public void setSteps(int steps)
setSteps
in interface DockingManager
steps
- number of the stepspublic boolean isEasyTabDock()
isEasyTabDock
in interface DockingManager
public void setEasyTabDock(boolean easyTabDock)
setEasyTabDock
in interface DockingManager
easyTabDock
- the attributepublic boolean isTabDockAllowed()
isTabDockAllowed
in interface DockingManager
public void setTabDockAllowed(boolean tabDockAllowed)
DockingManager
setTabDockAllowed
in interface DockingManager
tabDockAllowed
- the flagpublic boolean isTabReorderAllowed()
isTabReorderAllowed
in interface DockingManager
public void setTabReorderAllowed(boolean tabReorderAllowed)
DockingManager
setTabReorderAllowed
in interface DockingManager
tabReorderAllowed
- the flagpublic boolean isNestedFloatingAllowed()
DockingManager
isNestedFloatingAllowed
in interface DockingManager
public void setNestedFloatingAllowed(boolean nestedFloatingAllowed)
DockingManager
setNestedFloatingAllowed
in interface DockingManager
nestedFloatingAllowed
- the flagDockingManager.isNestedFloatingAllowed()
public boolean isDragAllTabs()
DockingManager
isDragAllTabs
in interface DockingManager
public void setDragAllTabs(boolean dragAllTabs)
DockingManager
setDragAllTabs
in interface DockingManager
dragAllTabs
- the flagDockingManager.isDragAllTabs()
public boolean isShowGripper()
isShowGripper
in interface DockingManager
public void setShowGripper(boolean showGripper)
setShowGripper
in interface DockingManager
showGripper
- true to show grippublic boolean isShowDividerGripper()
isShowDividerGripper
in interface DockingManager
public void setShowDividerGripper(boolean showDividerGripper)
setShowDividerGripper
in interface DockingManager
showDividerGripper
- true to show grippublic boolean isDragGripperOnly()
isDragGripperOnly
in interface DockingManager
public void setDragGripperOnly(boolean dragGripperOnly)
setDragGripperOnly
in interface DockingManager
dragGripperOnly
- true to show grippublic boolean isShowTitleBar()
isShowTitleBar
in interface DockingManager
public void setShowTitleBar(boolean showTitleBar)
setShowTitleBar
in interface DockingManager
showTitleBar
- true to show grippublic void setAutohideShowingContentHidden(boolean hide)
DockingManager
setAutohideShowingContentHidden
in interface DockingManager
public boolean isAutohideShowingContentHidden()
DockingManager
isAutohideShowingContentHidden
in interface DockingManager
public boolean isSidebarRollover()
DockingManager
isSidebarRollover
in interface DockingManager
public void setSidebarRollover(boolean sidebarRollover)
DockingManager
setSidebarRollover
in interface DockingManager
sidebarRollover
- the flagpublic void setFrameAvailable(String key)
setFrameAvailable
in interface DockingManager
key
- the key of frame to be shownpublic void setFrameUnavailable(String key)
setFrameUnavailable
in interface DockingManager
key
- key of dockable framepublic void setUndoLimit(int undoLimit)
setUndoLimit
in interface DockingManager
undoLimit
- the flagpublic int getUndoLimit()
public void discardAllUndoEdits()
DockingManager
discardAllUndoEdits
in interface DockingManager
public void undo()
DockingManager
undo
in interface DockingManager
public void redo()
DockingManager
redo
in interface DockingManager
public UndoManager getUndoManager()
DockingManager
getUndoManager
in interface DockingManager
getUndoManager
in interface UndoableSupport
protected UndoManager createUndoManager()
public void beginCompoundEdit(boolean isUndoRedo)
UndoableSupport
beginCompoundEdit
in interface UndoableSupport
isUndoRedo
- the flag to indicate if this operation is triggered by undo/redopublic void endCompoundEdit()
UndoableSupport
endCompoundEdit
in interface UndoableSupport
public boolean isPreserveAvailableProperty()
DockingManager
isPreserveAvailableProperty
in interface DockingManager
public void setPreserveAvailableProperty(boolean preserveAvailableProperty)
DockingManager
setPreserveAvailableProperty
in interface DockingManager
preserveAvailableProperty
- true or false. True to preserve the unavailable flag.public void addUndoableEditListener(UndoableEditListener listener)
DockingManager
addUndoableEditListener
in interface DockingManager
listener
- the listenerpublic void removeUndoableEditListener(UndoableEditListener listener)
DockingManager
removeUndoableEditListener
in interface DockingManager
listener
- the listenerpublic void addUndo(String name)
DockingManager
addUndo
in interface DockingManager
name
- the name of the new undo editpublic UndoableEditSupport getUndoableEditSupport()
UndoableSupport
getUndoableEditSupport
in interface UndoableSupport
public void maximizeFrame(String key)
maximizeFrame
in interface DockingManager
key
- the key of frame to be maximizedpublic String getMaximizedFrameKey()
DockingManager
getMaximizedFrameKey
in interface DockingManager
public void restoreFrame()
restoreFrame
in interface DockingManager
public int getDoubleClickAction()
getDoubleClickAction
in interface DockingManager
public void setDoubleClickAction(int doubleClickAction)
setDoubleClickAction
in interface DockingManager
doubleClickAction
- Either DOUBLE_CLICK_TO_FLOAT or DOUBLE_CLICK_TO_MAXIMIZE or DOUBLE_CLICK_NONE.public boolean isAutoDocking()
DockingManager
isAutoDocking
in interface DockingManager
public void setAutoDocking(boolean autoDocking)
DockingManager
setAutoDocking
in interface DockingManager
autoDocking
- if auto docking is enabled. Default is true.public boolean isAutoDockingAsDefault()
DockingManager
isAutoDockingAsDefault
in interface DockingManager
public void setAutoDockingAsDefault(boolean autoDockingAsDefault)
DockingManager
setAutoDockingAsDefault
in interface DockingManager
autoDockingAsDefault
- the flagpublic boolean isPreserveStateOnDragging()
DockingManager
isPreserveStateOnDragging
in interface DockingManager
public void setPreserveStateOnDragging(boolean preserveStateOnDragging)
DockingManager
setPreserveStateOnDragging
in interface DockingManager
preserveStateOnDragging
- the flagDockingManager.isPreserveStateOnDragging()
public void removeExtraContexts()
DockingManager
removeExtraContexts
in interface DockingManager
public Map<String,DockContext> getAllContexts()
DockingManager
getAllContexts
in interface DockingManager
public boolean isHideFloatingFramesWhenDeactivate()
DockingManager
isHideFloatingFramesWhenDeactivate
in interface DockingManager
public void setHideFloatingFramesWhenDeactivate(boolean hideFloatingFramesWhenDeactivate)
DockingManager
setHideFloatingFramesWhenDeactivate
in interface DockingManager
public boolean isHideFloatingFramesOnSwitchOutOfApplication()
isHideFloatingFramesOnSwitchOutOfApplication
in interface DockingManager
public void setHideFloatingFramesOnSwitchOutOfApplication(boolean newValue)
setHideFloatingFramesOnSwitchOutOfApplication
in interface DockingManager
public 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 DockingManager
public void setAllowedDockSides(int allowedDockSides)
setAllowedDockSides
in interface DockingManager
allowedDockSides
- allowed dock sidesgetAllowedDockSides()
public boolean shouldVetoRemovingAllFrames()
shouldVetoRemovingAllFrames
in interface DockingManager
public 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 DockingManager
public void setShowContextMenu(boolean showContextMenu)
setShowContextMenu
in interface DockingManager
showContextMenu
- the flagpublic boolean isAutohideShowingInProgress()
DockingManager
isAutohideShowingInProgress
in interface DockingManager
public String getAutohideShowingFrame()
DockingManager
getAutohideShowingFrame
in interface DockingManager
public DockableFrameFactory getDockableFrameFactory()
DockingManager
getDockableFrameFactory
in interface DockingManager
public void setDockableFrameFactory(DockableFrameFactory dockableFrameFactory)
DockingManager
setDockableFrameFactory
in interface DockingManager
dockableFrameFactory
- the dockable frame factorypublic void loadInitialLayout(Document layoutDocument)
LayoutPersistence
loadInitialLayout
in interface LayoutPersistence
layoutDocument
- the Document contains an initial layout.public boolean isUseDecoratedFloatingContainer()
isUseDecoratedFloatingContainer
in interface DockingManager
public void setUseDecoratedFloatingContainer(boolean useDecoratedFloatingContainer)
setUseDecoratedFloatingContainer
in interface DockingManager
useDecoratedFloatingContainer
- the flagpublic boolean isProportionalSplits()
DockingManager
isProportionalSplits
in interface DockingManager
public void setProportionalSplits(boolean b)
DockingManager
setProportionalSplits
in interface DockingManager
b
- the flagprotected void preDispatchDockableFrameEvent()
public boolean isHeavyweightComponentEnabled()
isHeavyweightComponentEnabled
in interface DockingManager
public void setHeavyweightComponentEnabled(boolean heavyweightComponentEnabled)
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
setHeavyweightComponentEnabled
in interface DockingManager
heavyweightComponentEnabled
- the flagpublic boolean isUseGlassPaneEnabled()
isUseGlassPaneEnabled
in interface DockingManager
public void setUseGlassPaneEnabled(boolean useGlassPaneEnabled)
setUseGlassPaneEnabled
in interface DockingManager
useGlassPaneEnabled
- the flagpublic boolean isSideDockAllowed()
isSideDockAllowed
in interface DockingManager
public void setSideDockAllowed(boolean sideDockAllowed)
DockingManager
setSideDockAllowed
in interface DockingManager
sideDockAllowed
- the flagpublic boolean isWithinFrameBoundsOnDragging()
DockingManager
isWithinFrameBoundsOnDragging
in interface DockingManager
public void setWithinFrameBoundsOnDragging(boolean withinFrameBoundsOnDragging)
DockingManager
setWithinFrameBoundsOnDragging
in interface DockingManager
withinFrameBoundsOnDragging
- the flagpublic boolean isWithinScreenBoundsOnDragging()
DockingManager
isWithinScreenBoundsOnDragging
in interface DockingManager
public void setWithinScreenBoundsOnDragging(boolean withinScreenBoundsOnDragging)
DockingManager
setWithinScreenBoundsOnDragging
in interface DockingManager
withinScreenBoundsOnDragging
- the flagpublic boolean isCrossDraggingAllowed()
DockingManager
isCrossDraggingAllowed
in interface DockingManager
public void setCrossDraggingAllowed(boolean crossDraggingAllowed)
setCrossDraggingAllowed
in interface DockingManager
public boolean isCrossDroppingAllowed()
DockingManager
isCrossDroppingAllowed
in interface DockingManager
public void setCrossDroppingAllowed(boolean crossDroppingAllowed)
setCrossDroppingAllowed
in interface DockingManager
public static List<DockingManager> getAllDockingManagers()
public void addDockableFrameDropListener(DockableFrameDropListener l)
addDockableFrameDropListener
in interface DockingManager
l
- the dockable frame listenerpublic void removeDockableFrameDropListener(DockableFrameDropListener l)
removeDockableFrameDropListener
in interface DockingManager
l
- the dockable frame drop listenerpublic DockableFrameDropListener[] getDockableFrameDropListeners()
DockableFrameDropListener
s added to this DockableFrame
with
addDockableFrameDropListener
.
getDockableFrameDropListeners
in interface DockingManager
DockableFrameDropListener
s 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 DockingManager
source
- the frame to be droppedtarget
- the target that the frame to be dropped inside
- the side
public void addDockableFrameListener(DockableFrameListener l)
DockingManager
DockableFrame.addDockableFrameListener(com.jidesoft.docking.event.DockableFrameListener)
method.
addDockableFrameListener
in interface DockingManager
l
- the dockable frame listenerpublic void removeDockableFrameListener(DockableFrameListener l)
removeDockableFrameListener
in interface DockingManager
l
- the dockable frame listenerpublic DockableFrameListener[] getDockableFrameListeners()
DockableFrameListener
s added to this DockableFrame
with
addDockableFrameListener
.
getDockableFrameListeners
in interface DockingManager
DockableFrameListener
s added or an empty array if no listeners have been addedaddDockableFrameListener(com.jidesoft.docking.event.DockableFrameListener)
public boolean isHideNewlyAddedFrames()
isHideNewlyAddedFrames
in interface DockingManager
public void setHideNewlyAddedFrames(boolean hideNewlyAddedFrames)
setHideNewlyAddedFrames
in interface DockingManager
hideNewlyAddedFrames
- the flagpublic Color getNotificationBackground()
getNotificationBackground
in interface DockingManager
public void setNotificationBackground(Color notificationBackground)
setNotificationBackground
in interface DockingManager
notificationBackground
- the notification background.public Color getNotificationForeground()
getNotificationForeground
in interface DockingManager
public void setNotificationForeground(Color notificationForeground)
setNotificationForeground
in interface DockingManager
notificationForeground
- the notification foreground.public int getNotificationDelay()
getNotificationDelay
in interface DockingManager
public void setNotificationDelay(int notificationDelay)
setNotificationDelay
in interface DockingManager
notificationDelay
- the delay.public int getNotificationSteps()
getNotificationSteps
in interface DockingManager
public void setNotificationSteps(int notificationSteps)
setNotificationSteps
in interface DockingManager
notificationSteps
- 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 DockingManager
public void setShowTitleOnOutline(boolean showTitleOnOutline)
DockingManager
DockingManager.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 DeprecatedDockingManager
f
- 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 DeprecatedDockingManager
f
- 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 DeprecatedDockingManager
forceFocus
- 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 DeprecatedDockingManager
frame
- 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 DeprecatedDockingManager
frame
- 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 DeprecatedDockingManager
frame
- 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 DeprecatedDockingManager
doFocus
- 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 DockingManager
DockingManagerGroup
public void setActive(boolean active)
DockingManager
setActive
in interface DockingManager
active
- true or false.public DockingManagerGroup getGroup()
DockingManager
getGroup
in interface DockingManager
public void setGroup(DockingManagerGroup group)
DockingManager
setGroup
in interface DockingManager
group
- the new DockingManagerGroup.public int getFloatingContainerType()
DockingManager
DockingManager.FLOATING_CONTAINER_TYPE_DIALOG
, DockingManager.FLOATING_CONTAINER_TYPE_FRAME
or DockingManager.FLOATING_CONTAINER_TYPE_WINDOW
.
getFloatingContainerType
in interface DockingManager
public void setFloatingContainerType(int floatingContainerType)
DockingManager
DockingManager.FLOATING_CONTAINER_TYPE_DIALOG
, DockingManager.FLOATING_CONTAINER_TYPE_FRAME
or DockingManager.FLOATING_CONTAINER_TYPE_WINDOW
.
setFloatingContainerType
in interface DockingManager
floatingContainerType
- the floating container type.public DockingManager.FloatingContainerCustomizer getFloatingContainerCustomizer()
DockingManager
getFloatingContainerCustomizer
in interface DockingManager
public void setFloatingContainerCustomizer(DockingManager.FloatingContainerCustomizer customizer)
DockingManager
setFloatingContainerCustomizer
in interface DockingManager
customizer
- the FloatingContainerCustomizer.public List<FloatingContainer> getFloatingFrames()
getFloatingFrames
in interface DockingManager
public void setActiveMouseInputListener(MouseInputListener listener)
DockingManager
setActiveMouseInputListener
in interface DockingManager
public 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 |