|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DockingManager
DockingManager is an interface that has a bunch of methods which managers DockableFrames.
It usually has following functions.
DefaultDockingManager
,
DockableFrame
Nested Class Summary | |
---|---|
static interface |
DockingManager.FloatingContainerCustomizer
A FloatingContainer customizer so that users can customize the FloatingContainer. |
static interface |
DockingManager.FrameHandle
|
static interface |
DockingManager.TabbedPaneCustomizer
A tabbed pane customizer so that users can customize the appearance of tabbed pane. |
Fields inherited from interface com.jidesoft.swing.LayoutPersistence |
---|
ATTRIBUTE_PERSISTENCE_NAME, NODE_LAYOUT_PERSISTENCE |
Method Summary | |
---|---|
void |
activateFrame(String key)
Activates 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 f)
Adds this frame to the docking DockingManager. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list for a specific property. |
void |
addUndo(String name)
Adds a new undo edit. |
void |
addUndoableEditListener(UndoableEditListener listener)
Adds an UndoableEditListener. |
void |
autohideAll()
Auto-hide all frames. |
void |
autohideFrame(String frameKey,
int side,
int index)
Autohides the frame with specified frameName at the specified side and index. |
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 |
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. |
AutoHideContainer |
createAutoHideContainer(int side)
Creates the container for the autohidden dockable frames. |
ContainerContainer |
createContainerContainer()
Creates the container for the tabbed panes. |
FloatingContainer |
createFloatingContainer(Window owner)
Creates a FloatingContainer. |
FrameContainer |
createFrameContainer()
Creates the container for the tabs. |
Workspace |
createWorkspace()
Creates the workspace. |
FrameContainer |
customizeFrameContainer(FrameContainer frameContainer)
Customize the FrameContainer created by createFrameContainer() . |
void |
denotifyFrame(String key)
Denotifies the frame using the key of that frame. |
void |
discardAllUndoEdits()
Discard all undo edits |
void |
dispose()
Removes all used resources. |
void |
dockFrame(String frameKey,
int side,
int index)
Docks the frame with specified frameKey at the specified side and index. |
void |
dragFrame(JComponent f,
int newX,
int newY,
int mouseModifiers)
The user has moved the frame. |
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(String frameKey,
Rectangle bounds,
boolean isSingle)
Float the frame with specified frameKey . |
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. |
List<String> |
getAllFrameNames()
Gets a list of the keys of all frames. |
Collection<String> |
getAllFrames()
Gets a collection of all dockable frames's 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. |
String |
getAutohideShowingFrame()
Return they frame key that is autohideshowing. |
Container |
getContentContainer()
Gets the content container. |
DockContext |
getContextOf(String frameKey)
Gets the dockcontext of the frame. |
int[] |
getCustomInitSplitPriority()
Gets custom init split priority. |
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 DockingManager with
addDockableFrameListener . |
DockedFrameContainer |
getDockedFrameContainer()
Returns the container that holds the docked window within the main frame. |
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. |
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 with the 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. |
String |
getLastFrameKey()
Gets the last visible dockable frame. |
JComponent |
getMainContainer()
Gets the main container. |
String |
getMaximizedFrameKey()
Gets the maximized frame if any. |
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. |
String |
getPreviousFrame(String frame)
Gets the previous visible dockable frame. |
PropertyChangeListener[] |
getPropertyChangeListeners()
Returns an array of all the property change listeners registered on this component. |
PropertyChangeListener[] |
getPropertyChangeListeners(String propertyName)
Returns an array of all the listeners which have been associated with the named property. |
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. |
UndoManager |
getUndoManager()
Gets the underlying UndoManager. |
int |
getUnknownFrameBehaviorOnLoading()
Gets the unknown frame behavior on loading. |
Workspace |
getWorkspace()
Gets workspace. |
boolean |
handleEvent(AWTEvent event)
Handles the AWTEvent. |
void |
hideFrame(String key)
Hides the frame with the specified key. |
boolean |
isActive()
Checks if the DockingManager is considered as active docking manager. |
boolean |
isAutoActivateFocusOwner()
Deprecated. not in use any more due to new focus management mechanism. |
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()
Return true if autohiding is allowed for dockable frames. |
boolean |
isAutohideAllTabs()
When user press 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 JideSplitPane 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. |
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 to check if dropping is allowed. |
boolean |
isEasyTabDock()
|
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 |
isGroupAllowedOnSidePane()
Returns true if group is allowed in side bar. |
boolean |
isHeavyweightComponentEnabled()
|
boolean |
isHidable()
Return true if dockable frame is allowed to be hidden. |
boolean |
isHideAllTabs()
When user presses close button, will it affect all tabs or just selected tab. |
boolean |
isHideFloatingFramesOnSwitchOutOfApplication()
Checks if floating frames will be hidden when user switches a different application. |
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 |
isMaximizeAllTabs()
When user maximizes a dockable frame, will it maximize all tabs or just selected tab. |
boolean |
isNestedFloatingAllowed()
Checks if nest floating frames are allowed. |
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 frames can be rearranged. |
boolean |
isResizable()
Deprecated. replaced by isFloatingFramesResizable() and isDockedFramesResizable() |
boolean |
isShowContextMenu()
Checks if the context menu should be shown. |
boolean |
isShowDividerGripper()
|
boolean |
isShowGripper()
|
boolean |
isShowInitial()
A client may specify that the docking layout is to be initialized without showing the window. |
boolean |
isShowTitleBar()
Checks if the title bar of dockable frame is visible. |
boolean |
isShowTitleOnOutline()
Checks if the title of the dragging dockable frame is displayed on the outline while dragging. |
boolean |
isShowWorkspace()
|
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 floating container if the floating container type is dialog or frame. |
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. |
void |
maximizeFrame(String key)
Maximized 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. |
void |
redo()
Redo the last undone operation. |
void |
removeAllFrames()
Removes all frames from this DockingManager. |
void |
removeContext(String key)
Removes the DockConext that is saved in the cache. |
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 DockableFrameListener that will event for all DockableFrames managed by the docking manager. |
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 this frame from DockingManager. |
void |
removeFrame(String key,
boolean keepPreviousState)
Removes a frame from this DockingManager. |
void |
removeFromHiddenFrames(String key)
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list for a specific property. |
void |
removeUndoableEditListener(UndoableEditListener listener)
Removes UndoableEditListener added before. |
void |
requestFocusInDockingManager()
|
void |
resetLayout()
This method is called for every rearragement of the dockable frames. |
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 |
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. not in use any more due to new focus management mechanism. |
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 autohide feature 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 |
setContinuousLayout(boolean b)
Turns continuous layout on or off. |
void |
setCrossDraggingAllowed(boolean crossDraggingAllowed)
|
void |
setCrossDroppingAllowed(boolean crossDroppingAllowed)
|
void |
setCustomInitSplitPriority(int[] customInitSplitPriority)
Sets custom init split priority. |
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. |
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 |
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 pane. |
void |
setHeavyweightComponentEnabled(boolean heavyweightComponentEnabled)
Enables heavyweight component. |
void |
setHidable(boolean hidable)
Enable or disable hiding of dockable frames |
void |
setHideAllTabs(boolean closeAllTabs)
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. |
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 sensitiveSize)
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 preserve)
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 sensitiveSize)
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 for JideSplitPane. |
void |
setShowGripper(boolean showGripper)
Sets the visibility of 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 gripper. |
void |
setShowTitleOnOutline(boolean show)
Sets the flag if the title will be displayed on the ontline while dragging. |
void |
setShowWorkspace(boolean show)
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 5 steps. |
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 allowed)
Sets the attribute if tab reordering is allowed. |
void |
setUndoLimit(int limit)
Set the maximum number of edits this UndoManager will hold. |
void |
setUnknownFrameBehaviorOnLoading(int unknownFrameBehaviorOnLoading)
Sets the unknown frame behavior on loading. |
void |
setUseDecoratedFloatingContainer(boolean useDecoratedFloatingContainer)
Sets the flag that if decorated dialog or frame is used as floating container when there is only one dockable frame or several dockable frames in the same tabbed pane. |
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. |
boolean |
shouldVetoRemovingAllFrames()
Checks if the removeAllFrames() should be vetoed. |
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 after showing. |
void |
showFrame(String key,
boolean activate)
Sets the frame visible using the key of that frame. |
void |
showInitial()
A client may specify that the docking layout is to be initialized without showing the window. |
void |
startShowingAutohideFrame(String frame,
int side,
int initDelay)
Starts to show the autohide frame. |
void |
startShowingAutohideFrameImmediately(String frame,
int side)
Stops the autohideframe from show immediately. |
void |
stopShowingAutohideFrame(int initDelay,
boolean forceComplete)
Stops showing the autohide frame. |
void |
stopShowingAutohideFrameImmediately()
Stops the autohideframe from show immediately. |
void |
switchRootPaneContainer(RootPaneContainer rootContainer)
Change the root pane container. |
void |
toggleAutohideState(String key)
Toggle the frame between auto-hide mode and docked mode. |
void |
toggleDockable(String key)
Toggle dockable attribute sof the frame with the specified key. |
void |
toggleMaximizeState(String key)
Toggle between maximized and restored state. |
void |
toggleState(String key,
boolean single)
Toggle the frame's state. |
void |
undo()
Undo the last operation done to docking framework. |
void |
updateComponentTreeUI()
Call this method with LookAndFeel changes. |
Field Detail |
---|
static final int DOUBLE_CLICK_CUSTOM
static final int DOUBLE_CLICK_NONE
static final int DOUBLE_CLICK_TO_FLOAT
static final int DOUBLE_CLICK_TO_MAXIMIZE
static final int DOUBLE_CLICK_TO_AUTOHIDE
static final int FLOATING_CONTAINER_TYPE_DIALOG
static final int FLOATING_CONTAINER_TYPE_FRAME
static final int FLOATING_CONTAINER_TYPE_WINDOW
static final int UNKNOWN_FRAME_BEHAVIOR_SHOW_INIT
static final int UNKNOWN_FRAME_BEHAVIOR_HIDE
static final String PROPERTY_INIT_BOUNDS
static final String PROPERTY_INIT_STATE
static final String PROPERTY_HIDABLE
static final String PROPERTY_AUTOHIDABLE
static final String PROPERTY_FLOATABLE
static final String PROPERTY_RESIZABLE
static final String PROPERTY_FLOATING_FRAMES_RESIZABLE
static final String PROPERTY_DOCKED_FRAMES_RESIZABLE
static final String PROPERTY_REARRANGABLE
static final String PROPERTY_ALLOWED_DOCK_SIDES
static final String PROPERTY_DOUBLE_CLICK_ACTION
static final String PROPERTY_CONTINUOUS_LAYOUT
static final String PROPERTY_DRAG_ALL_TABS
static final String PROPERTY_HIDE_ALL_TABS
static final String PROPERTY_FLOAT_ALL_TABS
static final String PROPERTY_MAXIMIZE_ALL_TABS
static final String PROPERTY_AUTOHIDE_ALL_TABS
static final String PROPERTY_TAB_DOCK_ALLOWED
static final String PROPERTY_SIDE_DOCK_ALLOWED
static final String PROPERTY_TAB_REORDER_ALLOWED
static final String PROPERTY_OUTLINE_MODE
static final String PROPERTY_SHOW_TITLE_ON_OUTLINE
static final String PROPERTY_WITHIN_FRAMEBOUNDS_ONDRAGGING
static final String PROPERTY_WITHIN_SCREENBOUNDS_ONDRAGGING
static final String PROPERTY_EASY_TAB_DOCK
static final String PROPERTY_AUTO_DOCKING
static final String PROPERTY_AUTO_DOCKING_AS_DEFAULT
static final String PROPERTY_PRESERVE_STATE_ON_DRAGGING
static final String PROPERTY_UNDO_LIMIT
static final String PROPERTY_INIT_SPLIT_PRIORITY
static final String PROPERTY_CUSTOM_INIT_SPLIT_PRIORITY
static final String PROPERTY_INIT_CENTER_SPLIT
static final String PROPERTY_INIT_EAST_SPLIT
static final String PROPERTY_INIT_NORTH_SPLIT
static final String PROPERTY_INIT_SOUTH_SPLIT
static final String PROPERTY_INIT_WEST_SPLIT
static final String PROPERTY_SHOW_GRIPPER
static final String PROPERTY_SHOW_DIVIDER_GRIPPER
static final String PROPERTY_DRAG_GRIPPER_ONLY
static final String PROPERTY_SHOW_TITLEBAR
static final String PROPERTY_GROUP_ALLOWED_ON_SIDE_PANE
static final String PROPERTY_SIDEBAR_ROLLOVER
static final String PROPERTY_AUTOHIDE_SHOWING_CONTENT_HIDDEN
static final String PROPERTY_INIT_DELAY
static final String PROPERTY_STEP_DELAY
static final String PROPERTY_STEPS
static final String PROPERTY_NESTED_FLOATING_ALLOWED
static final String PROPERTY_HIDE_FLOATINGFRAMES_ON_SWITCH_OUT_OF_APPLICATION
static final String PROPERTY_HIDE_FLOATINGFRAMES_WHEN_DEACTIVATE
static final String PROPERTY_CROSS_DRAGGING_ALLOWED
static final String PROPERTY_CROSS_DROPPING_ALLOWED
static final String PROPERTY_USE_DECORATED_FLOATING_CONTAINER
static final String PROPERTY_PROPORTIONAL_SPLITS
static final String PROPERTY_HEAVYWEIGHT_COMPONENT_ENABLED
static final String PROPERTY_ACTIVE_WORKSPACE
static final String PROPERTY_SHOW_WORKSPACE
static final String PROPERTY_FRAMES_MANAGED
static final String PROPERTY_FRAMES_VISIBLE
static final String PROPERTY_FRAMEHANDLE_ZORDER
static final String PROPERTY_ACTIVE
static final String PROPERTY_DOCKING_MANAGER_GROUP
static final String PROPERTY_FLOATING_CONTAINER_TYPE
static final int PARTIAL_OUTLINE_MODE
static final int MIX_OUTLINE_MODE
static final int FULL_OUTLINE_MODE
PARTIAL_OUTLINE_MODE
but it still displays outside the main window. It also has a little flickering on any JDKs
before JDK 6.
static final int TRANSPARENT_OUTLINE_MODE
PARTIAL_OUTLINE_MODE
but suffers the same problem which
cannot be displayed outside the main window.
static final int HW_TRANSPARENT_OUTLINE_MODE
static final int HW_OUTLINE_MODE
static final int SPLIT_CUSTOM
static final int SPLIT_EAST_WEST_SOUTH_NORTH
static final int SPLIT_SOUTH_NORTH_EAST_WEST
static final int SPLIT_EAST_SOUTH_WEST_NORTH
static final int SPLIT_WEST_SOUTH_EAST_NORTH
static final String CONTEXT_MENU_CLOSE
static final String CONTEXT_MENU_HIDE_AUTOHIDE
static final String CONTEXT_MENU_TOGGLE_FLOATING
static final String CONTEXT_MENU_TOGGLE_AUTOHIDE
static final String CONTEXT_MENU_TOGGLE_MAXIMIZE
static final String CONTEXT_MENU_TOGGLE_DOCKABLE
static final int ACTION_ID_HIDDEN_BY_PARENT
static final String ACTION_NAME_HIDDEN_BY_PARENT
Method Detail |
---|
void addFrame(DockableFrame f)
f
- frame to be addedDockableFrame getFrame(String key)
key
- the key of the dockable frame.
void removeFrame(String key)
key
- key of frame to be removedvoid 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.
key
- key of frame to be removedkeepPreviousState
- true to keep previous state when removing the dockable frame. Otherwise everything
related to the dockable frame will be cleared just like it was never added before.void removeAllFrames()
void showFrame(String key)
key
- the key of frame to be shownvoid showFrame(String key, boolean activate)
key
- the key of frame to be shownactivate
- whether activate the frame after showing.void hideFrame(String key)
key
- the key of frame to be hiddenvoid activateFrame(String key)
key
- key of frame to be activatedvoid autohideFrame(String frameKey, int side, int index)
frameKey
- the key of the frameside
- the side to autohide inindex
- the index to autohide invoid beginDraggingFrame(JComponent f, int mouseX, int mouseY, double relativeX, double relativeY, boolean single)
f
- a component to be draggedmouseX
- mouse screen location on X directionmouseY
- mouse screen location on Y directionrelativeX
- percentage location of mouse to the component on X directionrelativeY
- percentage location of mouse to the component on Y directionsingle
- drag just one frame or all frames in tabsvoid dragFrame(JComponent f, int newX, int newY, int mouseModifiers)
f
- component to be draggednewX
- new mouse location on X directionnewY
- new mouse location on Y directionmouseModifiers
- mouse modifiers from MouseEvent when draggingvoid pauseDragFrame()
void endDraggingFrame(JComponent f)
f
- the dragged component.boolean isDragging()
void cancelDragging()
void beginResizingFrame(JComponent f, int direction)
f
- the frame to be resizeddirection
- the direction that the frame will resize tovoid resizingFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
f
- the frame to be resizednewX
- the X of the start point after resizingnewY
- the Y of the start point after resizingnewWidth
- the width after resizingnewHeight
- the height after resizingvoid endResizingFrame(JComponent f)
f
- the frame to be resizedvoid toggleDockable(String key)
key
- frame keyvoid toggleAutohideState(String key)
key
- key of the frame to be toggled.DockedFrameContainer getDockedFrameContainer()
JComponent getMainContainer()
Container getContentContainer()
DefaultDockingManager.DefaultDockingManager(javax.swing.RootPaneContainer,
java.awt.Container)
.
Workspace getWorkspace()
void activateWorkspace()
void setShowWorkspace(boolean show)
show
- true to show workspace.boolean isShowWorkspace()
boolean isWorkspaceActive()
String getActiveFrameKey()
boolean isDragAllTabs()
void setDragAllTabs(boolean dragAllTabs)
dragAllTabs
- the flagisDragAllTabs()
void autohideAll()
boolean isAutohideAllTabs()
void setAutohideAllTabs(boolean autohideAllTabs)
autohideAllTabs
- true or false.boolean isHideAllTabs()
void setHideAllTabs(boolean closeAllTabs)
closeAllTabs
- true or false.boolean isFloatAllTabs()
void setFloatAllTabs(boolean floatAllTabs)
floatAllTabs
- true or false.boolean isMaximizeAllTabs()
void setMaximizeAllTabs(boolean maximizeAllTabs)
maximizeAllTabs
- true or false.boolean isFloatable()
void setFloatable(boolean floatable)
floatable
- the flagboolean isAutohidable()
void setAutohidable(boolean autohidable)
autohidable
- the flagboolean isHidable()
void setHidable(boolean hidable)
hidable
- the flagboolean isRearrangable()
void setRearrangable(boolean rearrangable)
rearrangable
- true if the dockable frames can be rearranged by user.@Deprecated boolean isResizable()
isFloatingFramesResizable()
and isDockedFramesResizable()
@Deprecated void setResizable(boolean resizable)
setFloatingFramesResizable(boolean)
and setDockedFramesResizable(boolean)
resizable
- true if the dockable frames can be resized by user.boolean isFloatingFramesResizable()
void setFloatingFramesResizable(boolean resizable)
resizable
- true if the floating dockable frames can be resized by user.boolean isDockedFramesResizable()
void setDockedFramesResizable(boolean resizable)
resizable
- true if the docked dockable frames can be resized by user.boolean isGroupAllowedOnSidePane()
void setGroupAllowedOnSidePane(boolean groupAllowedOnSidePane)
groupAllowedOnSidePane
- true to allow tab group on the side pane.boolean isContinuousLayout()
void setContinuousLayout(boolean b)
b
- true to turn on continuous layout.void updateComponentTreeUI()
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.
List<String> getAllFrameNames()
String[] getAllVisibleFrameKeys()
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.
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.
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.
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.
frame
- the current frame.
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.
frame
- the current frame.
PopupMenuCustomizer getPopupMenuCustomizer()
void setPopupMenuCustomizer(PopupMenuCustomizer customizer)
customizer
- the popup menu customizervoid 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);
}
});
customizer
- new tabbed pane customizervoid showContextMenu(Component source, Point point, DockableFrame dockableFrame, boolean onTab)
source
- source of the eventpoint
- mouse point of the eventdockableFrame
- dockable frameonTab
- true if mouse is clicked on tab; or else false.void floatFrame(String frameKey, Rectangle bounds, boolean isSingle)
frameKey
- frame to be floatedbounds
- the bounds of float frameisSingle
- true if just make current frame floated, or all frames in the tabs will be floatedvoid dockFrame(String frameKey, int side, int index)
frameKey
- the key of the dockable frameside
- the side of the dockable frameindex
- the index of the dockable framevoid toggleState(String key, boolean single)
key
- the key of the frame to change modesingle
- change mode for all frames in the same tabbed pane or just the frame itself.AutoHideContainer getAutoHideContainer(int side)
side
- the side of the container
Rectangle getInitBounds()
void setInitBounds(Rectangle initBounds)
initBounds
- the initialization boundsint getInitState()
Frame.getExtendedState()
.
void setInitState(int initState)
Frame.getExtendedState()
.
initState
- the initial stateint getSensitiveAreaSize()
void setSensitiveAreaSize(int sensitiveSize)
sensitiveSize
- the sensitive sizeint getOutsideSensitiveAreaSize()
void setOutsideSensitiveAreaSize(int sensitiveSize)
sensitiveSize
- the sensitive sizeint getOutlineMode()
void setOutlineMode(int outlineMode)
outlineMode
- the new outline modeComponent getEscapeKeyTargetComponent()
void setEscapeKeyTargetComponent(Component escapeKeyTargetComponent)
escapeKeyTargetComponent
- the componentint getInitSplitPriority()
void setInitSplitPriority(int initSplitPriority)
initSplitPriority
- split priority.void setCustomInitSplitPriority(int[] customInitSplitPriority)
customInitSplitPriority
- new init split priorityint[] getCustomInitSplitPriority()
int getInitDelay()
int getInitCenterSplit()
void setInitCenterSplit(int initCenterSplit)
JideSplitPane.HORIZONTAL_SPLIT
and
JideSplitPane.VERTICAL_SPLIT
.
initCenterSplit
- the initial center splitgetInitCenterSplit()
int getInitEastSplit()
void setInitEastSplit(int initEastSplit)
JideSplitPane.HORIZONTAL_SPLIT
and
JideSplitPane.VERTICAL_SPLIT
. It is JideSplitPane.VERTICAL_SPLIT
by default.
initEastSplit
- the initial east splitgetInitEastSplit()
int getInitWestSplit()
void setInitWestSplit(int initWestSplit)
JideSplitPane.HORIZONTAL_SPLIT
and
JideSplitPane.VERTICAL_SPLIT
. It is JideSplitPane.VERTICAL_SPLIT
by default.
initWestSplit
- the initial west splitgetInitWestSplit()
int getInitNorthSplit()
void setInitNorthSplit(int initNorthSplit)
JideSplitPane.HORIZONTAL_SPLIT
and
JideSplitPane.VERTICAL_SPLIT
. It is JideSplitPane.HORIZONTAL_SPLIT
by default.
initNorthSplit
- the initial north splitgetInitNorthSplit()
int getInitSouthSplit()
void setInitSouthSplit(int initSouthSplit)
JideSplitPane.HORIZONTAL_SPLIT
and
JideSplitPane.VERTICAL_SPLIT
. It is JideSplitPane.HORIZONTAL_SPLIT
by default.
initSouthSplit
- the init south split settinggetInitSouthSplit()
void setInitDelay(int initDelay)
initDelay
- the initial delayint getStepDelay()
void setStepDelay(int stepDelay)
stepDelay
- the delay in each stepint getSteps()
void setSteps(int steps)
steps
- number of the stepsvoid dispose()
boolean isEasyTabDock()
void setEasyTabDock(boolean easyTabDock)
easyTabDock
- the flagboolean isTabDockAllowed()
void setTabDockAllowed(boolean tabDockAllowed)
tabDockAllowed
- the flagboolean isSideDockAllowed()
void setSideDockAllowed(boolean sideDockAllowed)
sideDockAllowed
- the flagboolean isTabReorderAllowed()
void setTabReorderAllowed(boolean allowed)
allowed
- the flagboolean isNestedFloatingAllowed()
void setNestedFloatingAllowed(boolean nestedFloatingAllowed)
nestedFloatingAllowed
- the flagisNestedFloatingAllowed()
boolean isShowGripper()
void setShowGripper(boolean showGripper)
showGripper
- true to show gripper.boolean isShowDividerGripper()
void setShowDividerGripper(boolean showDividerGripper)
showDividerGripper
- true to show gripper for JideSplitPane.boolean isDragGripperOnly()
void setDragGripperOnly(boolean dragGripperOnly)
dragGripperOnly
- true to show gripboolean isShowTitleBar()
void setShowTitleBar(boolean showTitleBar)
showTitleBar
- true to show gripDockContext getContextOf(String frameKey)
frameKey
- the key of the DockableFrame
AutoHideContainer createAutoHideContainer(int side)
side
- the side to create auto hide container
ContainerContainer createContainerContainer()
FrameContainer createFrameContainer()
FloatingContainer createFloatingContainer(Window owner)
FloatingContainer
depends on system property "docking.floatingContainerType". If "docking.floatingContainerType" equals "dialog",
it will create a FloatContainerD
owner
- the owner of the floating container
Workspace createWorkspace()
FrameContainer customizeFrameContainer(FrameContainer frameContainer)
createFrameContainer()
.
frameContainer
- the frame container to be customized
void removeFromHiddenFrames(String key)
List<DockingManager.FrameHandle> getOrderedFrames()
void moveFrame(String frameKey, String destFrameKey)
frameKey
- the key frameKey the dockable frame to be moveddestFrameKey
- the frameKey of the destination dockable framevoid moveFrame(String frameKey, String destFrameKey, int side)
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)
.boolean isSidebarRollover()
void setSidebarRollover(boolean sidebarRollover)
sidebarRollover
- the flagvoid setFrameAvailable(String key)
key
- key of dockable framevoid setFrameUnavailable(String key)
key
- key of dockable framevoid setFloatingFramesVisible(boolean show)
show
- the flagvoid setUndoLimit(int limit)
limit
- the maximum number of edits to holdvoid undo()
void redo()
void discardAllUndoEdits()
UndoManager getUndoManager()
void addUndo(String name)
name
- the name of the new undo editvoid addUndoableEditListener(UndoableEditListener listener)
listener
- the listenervoid removeUndoableEditListener(UndoableEditListener listener)
listener
- the listenerString getMaximizedFrameKey()
void restoreFrame()
void maximizeFrame(String key)
key
- the key of the DockableFramevoid toggleMaximizeState(String key)
key
- the key of the DockableFrameint getDoubleClickAction()
void setDoubleClickAction(int doubleClickAction)
doubleClickAction
- Either DOUBLE_CLICK_TO_FLOAT or DOUBLE_CLICK_TO_MAXIMIZE or DOUBLE_CLICK_NONE.boolean isAutoDocking()
void setAutoDocking(boolean autoDocking)
autoDocking
- if auto docking is enabled. Default is true.boolean isAutoDockingAsDefault()
void setAutoDockingAsDefault(boolean autoDockingAsDefault)
autoDockingAsDefault
- the flagboolean isPreserveStateOnDragging()
void setPreserveStateOnDragging(boolean preserveStateOnDragging)
preserveStateOnDragging
- the flagisPreserveStateOnDragging()
void notifyFrame(String key)
key
- the key of frame to be notifiedvoid denotifyFrame(String key)
key
- the key of frame to be denotifiedboolean isHideFloatingFramesWhenDeactivate()
void setHideFloatingFramesWhenDeactivate(boolean hideFloatingFramesWhenDeactivate)
hideFloatingFramesWhenDeactivate
- void removeContext(String key)
key
- the DockableFrame key.void removeExtraContexts()
Map<String,DockContext> getAllContexts()
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.
void setAllowedDockSides(int allowedDockSides)
allowedDockSides
- getAllowedDockSides()
boolean shouldVetoRemovingAllFrames()
boolean isHideFloatingFramesOnSwitchOutOfApplication()
void setHideFloatingFramesOnSwitchOutOfApplication(boolean newValue)
boolean isShowContextMenu()
void setShowContextMenu(boolean showContextMenu)
showContextMenu
- the flagDockableFrameFactory getDockableFrameFactory()
void setDockableFrameFactory(DockableFrameFactory dockableFrameFactory)
dockableFrameFactory
- the dockable frame factoryboolean isUseDecoratedFloatingContainer()
void setUseDecoratedFloatingContainer(boolean useDecoratedFloatingContainer)
useDecoratedFloatingContainer
- the flagboolean isProportionalSplits()
void setProportionalSplits(boolean b)
b
- the flagboolean isHeavyweightComponentEnabled()
void setHeavyweightComponentEnabled(boolean heavyweightComponentEnabled)
heavyweightComponentEnabled
- the flagboolean isPreserveAvailableProperty()
void setPreserveAvailableProperty(boolean preserve)
preserve
- true or false. True to preserve the unavailable flag.boolean isWithinFrameBoundsOnDragging()
void setWithinFrameBoundsOnDragging(boolean withinFrameBoundsOnDragging)
withinFrameBoundsOnDragging
- the flagboolean isWithinScreenBoundsOnDragging()
void setWithinScreenBoundsOnDragging(boolean withinScreenBoundsOnDragging)
withinScreenBoundsOnDragging
- the flagboolean isCrossDraggingAllowed()
void setCrossDraggingAllowed(boolean crossDraggingAllowed)
boolean isCrossDroppingAllowed()
void setCrossDroppingAllowed(boolean crossDroppingAllowed)
void removeDockableFrameDropListener(DockableFrameDropListener l)
l
- the dockable frame drop listenervoid addDockableFrameDropListener(DockableFrameDropListener l)
l
- the dockable frame listenerDockableFrameDropListener[] getDockableFrameDropListeners()
DockableFrameDropListener
s added to this DockableFrame
with
addDockableFrameDropListener
.
DockableFrameDropListener
s added or an empty array if no listeners have been
addedaddDockableFrameDropListener(com.jidesoft.docking.event.DockableFrameDropListener)
void addDockableFrameListener(DockableFrameListener l)
DockableFrame.addDockableFrameListener(com.jidesoft.docking.event.DockableFrameListener)
method.
l
- the dockable frame listenervoid removeDockableFrameListener(DockableFrameListener l)
l
- DockableFrameListener[] getDockableFrameListeners()
DockableFrameListener
s added to this DockingManager
with
addDockableFrameListener
.
DockableFrameListener
s added or an empty array if no listeners have been addedaddDockableFrameListener(com.jidesoft.docking.event.DockableFrameListener)
boolean isDropAllowed(DockableFrame source, Component target, int side)
source
- the frame to be droppedtarget
- the target that the frame to be dropped inside
- the side
boolean isHideNewlyAddedFrames()
void setHideNewlyAddedFrames(boolean hideNewlyAddedFrames)
hideNewlyAddedFrames
- the flagColor getNotificationBackground()
void setNotificationBackground(Color notificationBackground)
notificationBackground
- the notification background.Color getNotificationForeground()
void setNotificationForeground(Color notificationForeground)
notificationForeground
- the notification foreground.int getNotificationDelay()
void setNotificationDelay(int notificationDelay)
notificationDelay
- the delay.int getNotificationSteps()
void setNotificationSteps(int notificationSteps)
notificationSteps
- the number of flashes when notifyFrame is called. -1 means it will never stop until user
responses to the notification.boolean isShowTitleOnOutline()
void setShowTitleOnOutline(boolean show)
PARTIAL_OUTLINE_MODE
and TRANSPARENT_OUTLINE_MODE
.
show
- void setAutohideShowingContentHidden(boolean hide)
hide
- boolean isAutohideShowingContentHidden()
void startShowingAutohideFrame(String frame, int side, int initDelay)
frame
- the frame that is showingside
- the sideinitDelay
- initial delay timevoid startShowingAutohideFrameImmediately(String frame, int side)
frame
- the frame that is showingside
- the sidevoid stopShowingAutohideFrame(int initDelay, boolean forceComplete)
initDelay
- initial delay timeforceComplete
- the flag indicating if a mouse over can interrupt and cause the frame to stay openvoid stopShowingAutohideFrameImmediately()
void finishShowingAutohideFrame(String frame)
frame
- the frame that is showingboolean isAutohideShowingInProgress()
String getAutohideShowingFrame()
void addPropertyChangeListener(PropertyChangeListener listener)
void removePropertyChangeListener(PropertyChangeListener listener)
listener
- the PropertyChangeListener to be removedaddPropertyChangeListener(java.beans.PropertyChangeListener)
,
getPropertyChangeListeners()
,
removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
PropertyChangeListener[] getPropertyChangeListeners()
PropertyChangeListener
s or an empty array if no property change
listeners are currently registeredaddPropertyChangeListener(java.beans.PropertyChangeListener)
,
removePropertyChangeListener(java.beans.PropertyChangeListener)
,
getPropertyChangeListeners(java.lang.String)
,
PropertyChangeSupport.getPropertyChangeListeners()
void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
- one of the property names listed abovelistener
- the PropertyChangeListener to be addedremovePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
,
getPropertyChangeListeners(java.lang.String)
,
addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
- a valid property namelistener
- the PropertyChangeListener to be removedaddPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
,
getPropertyChangeListeners(java.lang.String)
,
removePropertyChangeListener(java.beans.PropertyChangeListener)
PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
propertyName
- the property name.
PropertyChangeListeners
associated with the named property or an empty array if
no listeners have been addedaddPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
,
removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
,
getPropertyChangeListeners()
void switchRootPaneContainer(RootPaneContainer rootContainer)
rootContainer
- RootPaneContainer getRootPaneContainer()
getRootPaneContainer
in interface RootPanePersistence
boolean isUseGlassPaneEnabled()
void setUseGlassPaneEnabled(boolean useGlassPaneEnabled)
useGlassPaneEnabled
- FloatingContainer findFloatingComponentAt(int x, int y)
void requestFocusInDockingManager()
void setShowInitial(boolean value)
value
- true or false.boolean isShowInitial()
void showInitial()
boolean isActive()
DockingManagerGroup group = new DockingManagerGroup();
group.add(dockingManager1);
group.add(dockingManager2);
... // you can add more docking managers if you want
DockingManagerGroup
void setActive(boolean active)
active
- true or false.DockingManagerGroup getGroup()
void setGroup(DockingManagerGroup group)
group
- the new DockingManagerGroup.boolean handleEvent(AWTEvent event)
event
- the event received
@Deprecated boolean isAutoActivateFocusOwner()
@Deprecated void setAutoActivateFocusOwner(boolean autoActivateFocusOwner)
dockingManager.setAutoActivateFocusOwner(true);
component.addFocusListener(new FocusAdapter() {
public void focusGained(FocusEvent e) {
dockingManager.setAutoActivateFocusOwner(false);
component.removeFocusListener(this);
}
});
component.requestFocus();
Default is true.
autoActivateFocusOwner
- true or false.int getFloatingContainerType()
FLOATING_CONTAINER_TYPE_DIALOG
, FLOATING_CONTAINER_TYPE_FRAME
or FLOATING_CONTAINER_TYPE_WINDOW
.
void setFloatingContainerType(int floatingContainerType)
FLOATING_CONTAINER_TYPE_DIALOG
, FLOATING_CONTAINER_TYPE_FRAME
or FLOATING_CONTAINER_TYPE_WINDOW
.
floatingContainerType
- the floating container type.DockingManager.FloatingContainerCustomizer getFloatingContainerCustomizer()
void setFloatingContainerCustomizer(DockingManager.FloatingContainerCustomizer customizer)
customizer
- the FloatingContainerCustomizer.List<FloatingContainer> getFloatingFrames()
int getUnknownFrameBehaviorOnLoading()
setUnknownFrameBehaviorOnLoading(int)
void setUnknownFrameBehaviorOnLoading(int unknownFrameBehaviorOnLoading)
UNKNOWN_FRAME_BEHAVIOR_SHOW_INIT
or 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.
unknownFrameBehaviorOnLoading
- the unknown frame behaviorint getSnapGridSize()
setSnapGridSize(int)
void setSnapGridSize(int snapGridSize)
snapGridSize
- the snap grid sizeString getResourceString(String key)
key
- the resource key
void resetLayout()
void setActiveMouseInputListener(MouseInputListener listener)
listener
- MouseInputListener getActiveMouseInputListener()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |