|
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.action.DefaultDockableBarManager
public class DefaultDockableBarManager
Default implementation of DockableBarManager
. It is also the main interface that users need in order to
access the features of DockableBar
.
Nested Class Summary | |
---|---|
protected class |
DefaultDockableBarManager.DockableBarsSnapshot
|
protected class |
DefaultDockableBarManager.FloaterKeyEventPostProcessor
|
Field Summary | |
---|---|
ComponentAdapter |
_componentListener
|
protected boolean |
_glassPaneVisibility
|
protected DefaultDockableBarManager.DockableBarsSnapshot |
_postDragSnapshot
|
protected DefaultDockableBarManager.DockableBarsSnapshot |
_preDragSnapshot
|
protected boolean |
_redispatchingKeyEventToFloaters
|
protected EventListenerList |
listenerList
A list of event listeners for this component. |
static String |
PROPERTY_DOUBLE_CLICK_ACTION
|
static String |
PROPERTY_FLOATABLE
|
static String |
PROPERTY_HIDABLE
|
static String |
PROPERTY_HIDE_FLOATING_DOCKABLE_BARS_WHEN_DEACTIVATE
|
static String |
PROPERTY_INIT_BOUNDS
|
static String |
PROPERTY_INIT_STATE
|
static String |
PROPERTY_REARRANGABLE
|
static String |
PROPERTY_SHOW_CONTEXT_MENU
|
Fields inherited from class com.jidesoft.swing.AbstractLayoutPersistence |
---|
_layoutDirectory, _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.action.DockableBarManager |
---|
CLIENT_PROPERTY_SUPPRESS_CONTEXT_MENU, CONTEXT_MENU_FLOATABLE, CONTEXT_MENU_HIDABLE, CONTEXT_MENU_REARRANGABLE, DOUBLE_CLICK_NONE, DOUBLE_CLICK_TO_FLOAT |
Fields inherited from interface com.jidesoft.swing.LayoutPersistence |
---|
ATTRIBUTE_PERSISTENCE_NAME, NODE_LAYOUT_PERSISTENCE |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
DefaultDockableBarManager(RootPaneContainer rootContainer,
Container contentContainer)
Constructor. |
Method Summary | |
---|---|
void |
addDockableBar(DockableBar bar)
Adds a dockable bar to this DockableBarManager. |
void |
addDockableBarsRearrangedListener(DockableBarsRearrangedListener l)
Adds the specified listener to receive DockableBarsRearrangedEvents from this DockableBarManager. |
void |
beginDraggingDockableBar(JComponent f,
int mouseX,
int mouseY,
double relativeX,
double relativeY,
boolean startInFloat)
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 dockable bar without showing on screen immediately. |
void |
beginResizingDockableBar(JComponent f,
int direction)
This methods is normally called when the user has indicated that they will begin resizing the dockable bar. |
void |
cancelDragging()
Cancel the dragging. |
protected void |
checkBarKey(String key,
String methodName)
|
protected void |
checkForRearrangedDockableBars()
Compare the pre- and post-drag snapshots to determine if a DockableBar changed rows, changed position within a row, or was resized. |
DockableBarContainer |
createDockableBarContainer()
Creates the containers for DockableBars. |
protected DefaultDockableBarManager.DockableBarsSnapshot |
createDockableBarsSnapshot(JComponent possiblyMoved)
Take a snapshot of the currently showing DockableBars. |
FloatingDockableBarContainer |
createFloatingDockableBarContainer(Window owner)
Creates a window which contains the toolbar after it has been dragged out from its container |
void |
dispose()
Removes all used resources. |
void |
dockDockableBar(DockableBar bar,
int side,
int row,
boolean createNewRow,
int start)
Docks the dockable bar on the side and at the start. |
void |
dragDockableBar(JComponent f,
int newX,
int newY,
int mouseModifiers)
The user has moved the dockable bar. |
void |
endDraggingDockableBar()
This method signals the end of the dragging session. |
void |
endResizingDockableBar(JComponent f)
This method signals the end of the resize session. |
void |
eventDispatched(AWTEvent event)
|
protected DockableBarState |
findComponentInSnapshot(Component component,
DefaultDockableBarManager.DockableBarsSnapshot snapshot)
|
protected void |
fireDockableBarsRearranged(DockableBarsRearrangedEvent event)
Fires a DockableBarsRearrangedEvent. |
void |
floatDockableBar(DockableBar bar,
Rectangle bounds)
Float the dockable bar. |
List<String> |
getAllDockableBarNames()
Gets a list of all dockable bars. |
Collection<DockableBar> |
getAllDockableBars()
Getss a collection of all dockable bars. |
JPopupMenu |
getContextMenu()
Gets the default context menu for DockableBarManager. |
DockableBar |
getDockableBar(String key)
Gets the dockable bar using key. |
DockableBarContainer |
getDockableBarContainer(int side)
Gets the dockable bar container by side. |
DockableBarContext |
getDockableBarContextOf(String key)
Gets dock context of a dockable bar specified by key. |
DockableBarFactory |
getDockableBarFactory()
Gets the dockable bar factory. |
DockableBarPopupMenuCustomizer |
getDockableBarPopupMenuCustomizer()
Gets the popup menu customizer. |
DockableBarsRearrangedListener[] |
getDockableBarsRearrangedListeners()
Returns an array of all the DockableBarsRearrangedListener s added to this
DockableBarManager with addDockableBarsRearrangedListener . |
int |
getDoubleClickAction()
Gets the action when user double clicks on the title bar of a dockable bar. |
Rectangle |
getInitBounds()
Gets initial bounds of the main frame. |
int |
getInitState()
Gets initial state of the main frame. |
MainContainer |
getMainContainer()
Gets the main container. |
RootPaneContainer |
getRootPaneContainer()
Gets root pane container. |
protected DockableBarStateTransition |
getTransition(DockableBarState preState)
Find the nature of the transition of a moved Component. |
protected boolean |
hackIsFrameVisible(FloatingDockableBarContainer floatingContainer)
There is a bug that prevents setVisible() from working properly in a specific situation. |
protected void |
hackSetFrameVisible(FloatingDockableBarContainer floatingContainer,
boolean show)
There is a bug that prevents setVisible() from working properly in a specific situation. |
void |
hideDockableBar(String key)
Sets the dockable bar invisible using the key of that dockable bar. |
boolean |
isFloatable()
Return true if floating is allowed for dockable bars. |
boolean |
isHidable()
Return true if hidden is allowed for dockable bars. |
boolean |
isHideFloatingDockableBarsWhenDeactivate()
Checks if the floating dockable bars should be hidden automatically when the main frame is deactivated. |
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. |
protected boolean |
isOwnedFloatingDockableBar(Window aWindow)
Is the specified window one of our floatingFrames? |
protected boolean |
isOwnedWindow(Window aWindow)
Is the specified window's ancestor is root pane container? |
boolean |
isPreserveAvailableProperty()
|
boolean |
isRearrangable()
If the dockable bars can be rearranged. |
boolean |
isShowContextMenu()
Checks if the context menu should be shown. |
boolean |
isShowInitial()
A client may specify that the docking layout is to be initialized without showing the window. |
boolean |
isUseGlassPaneEnabled()
Checks if we will use glass pane to change cursor. |
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 |
pauseDragDockableBar()
Pause the dragging session of a dockable bar. |
protected void |
processKeyBindingForComponentInFloatingDockable(KeyEvent e,
JComponent comp)
|
protected void |
processKeyBindingForFloatingDockableWindow(KeyEvent e,
JWindow dockableWindow)
|
protected void |
processKeyBindingsForContainerInFloatingDockable(KeyEvent e,
Container container)
|
protected boolean |
redispatchKeyEventToFloatingContainers(KeyEvent e)
Give the floating windows a crack at a KeyEvent that has gone unconsumed in the main window. |
void |
removeAllDockableBars()
Removes all dockable bars from this DockingManager. |
void |
removeDockableBar(String name)
Removes a dockable bar from this DockableBarManager. |
void |
removeDockableBar(String key,
boolean keepPreviousState)
Removes a dockable bar from this DockableBarManager. |
void |
removeDockableBarsRearrangedListener(DockableBarsRearrangedListener l)
Removes the specified DockableBarsRearrangedListener so that it no longer receives DockableBarsRearrangedEvents from this DockableBarManager. |
void |
removeExtraContexts()
Removes extra DockableBarContexts that is saved in cache but the corresponding dockable bars are not in DockableBarManager anymore. |
void |
removeFromHiddenDockableBars(String key)
Remove it from hidden dockable bar list. |
void |
resetToDefault()
Resets layout of frames to initial values. |
void |
resizingDockableBar(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight,
int deltaX,
int deltaY)
The user has resized the component. |
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 |
setDockableBarAvailable(String key)
Sets available the dockable bar. |
void |
setDockableBarFactory(DockableBarFactory dockableBarFactory)
Sets the dockable bar factory. |
void |
setDockableBarPopupMenuCustomizer(DockableBarPopupMenuCustomizer customizerDockableBar)
Sets the popup customizerDockableBar. |
void |
setDockableBarUnavailable(String key)
Sets unavailable the dockable bar. |
void |
setDoubleClickAction(int doubleClickAction)
Sets the action when user double clicks on the title bar of a dockable bar. |
void |
setFloatable(boolean floatable)
Enable or disable floating of dockable bars. |
void |
setFloatingDockableBarsVisible(boolean show)
Sets all floating dockable bar visible or invisible. |
void |
setHidable(boolean hidable)
Enable or disable dockable bars from being hidden. |
void |
setHideFloatingDockableBarsWhenDeactivate(boolean hideFloatingDockableBarsWhenDeactivate)
Sets if the floating dockable bars should be hidden automatically when the main frame is deactivated. |
void |
setInitBounds(Rectangle initBounds)
Sets the initial bounds of the main frame. |
void |
setInitState(int initState)
Sets the initial state of the main frame. |
void |
setPreserveAvailableProperty(boolean preserveAvailableProperty)
|
void |
setRearrangable(boolean rearrangeable)
Enable or disable the rearrangement of dockable bars. |
void |
setShowContextMenu(boolean showContextMenu)
Sets the flag to show context menu or not. |
void |
setShowInitial(boolean value)
A client may specify that the docking layout is to be initialized without showing the window. |
void |
setUseGlassPaneEnabled(boolean useGlassPaneEnabled)
Enables us to use glass pane to for cursor change purpose. |
void |
showContextMenu(MouseEvent e,
Component component)
Show context menu of dockable bar or dockable bar container. |
void |
showDockableBar(String key)
Sets the dockable bar visible using the key of that dockable bar. |
void |
showInitial()
A client may specify that the docking layout is to be initialized without showing the window. |
protected void |
sortDockableBarRowItems(List row)
|
void |
switchRootPaneContainer(RootPaneContainer rootContainer)
Change the root pane container. |
void |
toggleState(DockableBar bar)
Toggle the dockable bar's state. |
void |
toggleState(String key)
Toggle the dockable bar's state. |
void |
updateComponentTreeUI()
Since there are several top level container in DockableBarManager, this method will call updateComponentTreeUI to all of them to make sure everything changes after reset look and feel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ComponentAdapter _componentListener
protected DefaultDockableBarManager.DockableBarsSnapshot _preDragSnapshot
protected DefaultDockableBarManager.DockableBarsSnapshot _postDragSnapshot
protected EventListenerList listenerList
protected boolean _redispatchingKeyEventToFloaters
public static final String PROPERTY_INIT_BOUNDS
public static final String PROPERTY_INIT_STATE
public static final String PROPERTY_HIDABLE
public static final String PROPERTY_FLOATABLE
public static final String PROPERTY_REARRANGABLE
public static final String PROPERTY_HIDE_FLOATING_DOCKABLE_BARS_WHEN_DEACTIVATE
public static final String PROPERTY_SHOW_CONTEXT_MENU
public static final String PROPERTY_DOUBLE_CLICK_ACTION
protected boolean _glassPaneVisibility
Constructor Detail |
---|
public DefaultDockableBarManager(RootPaneContainer rootContainer, 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., getContentPane().add(comp, BorderLayout.NORTH) with NORTH,
SOUTH, EAST or WEST as parameter, but never add a component to CENTER.
- Parameters:
rootContainer
- the root pane containercontentContainer
- the container where the dockable bars will be added. This container should be empty.
Method Detail |
---|
public void switchRootPaneContainer(RootPaneContainer rootContainer)
DockableBarManager
switchRootPaneContainer
in interface DockableBarManager
public void setFloatingDockableBarsVisible(boolean show)
DockableBarManager
setFloatingDockableBarsVisible
in interface DockableBarManager
protected void hackSetFrameVisible(FloatingDockableBarContainer floatingContainer, boolean show)
floatingContainer
- the floating containershow
- visible or invisibleprotected boolean hackIsFrameVisible(FloatingDockableBarContainer floatingContainer)
floatingContainer
- the floating container
protected boolean isOwnedFloatingDockableBar(Window aWindow)
aWindow
- the window
protected boolean isOwnedWindow(Window aWindow)
aWindow
- the window
public void eventDispatched(AWTEvent event)
eventDispatched
in interface AWTEventListener
public void resetToDefault()
resetToDefault
in interface LayoutPersistence
public void addDockableBar(DockableBar bar)
addDockableBar
in interface DockableBarManager
bar
- the dockable bar to be addedpublic void removeAllDockableBars()
removeAllDockableBars
in interface DockableBarManager
public void removeExtraContexts()
DockableBarManager
removeExtraContexts
in interface DockableBarManager
public void removeDockableBar(String name)
removeDockableBar
in interface DockableBarManager
name
- name of dockable bar to be removedpublic void removeDockableBar(String key, boolean keepPreviousState)
removeDockableBar(String)
does. However if you just remove the dockable bar and will add it back later, you can
keep the state so that when the dockable bar is added back, it has the exact same state as before.
key
- the key of the dockable bar.keepPreviousState
- if previous state should be kept for future usepublic void showDockableBar(String key)
showDockableBar
in interface DockableBarManager
key
- the key of the dockable bar to be shownpublic DockableBar getDockableBar(String key)
getDockableBar
in interface DockableBarManager
key
- the dockable bar key
public void hideDockableBar(String key)
hideDockableBar
in interface DockableBarManager
key
- the key of the dockable bar to be hiddenpublic void dockDockableBar(DockableBar bar, int side, int row, boolean createNewRow, int start)
dockDockableBar
in interface DockableBarManager
bar
- the dockable bar to be dockedside
- four possible sidesrow
- the row indexcreateNewRow
- true to create a new row at the specified row index. Otherwise uses the existing row.start
- the starting position, in pixels.
IllegalArgumentException
- if side is not a valid value.public void floatDockableBar(DockableBar bar, Rectangle bounds)
floatDockableBar
in interface DockableBarManager
bar
- the dockable bar to be floatedbounds
- the bounds of the float dockable barpublic void beginDraggingDockableBar(JComponent f, int mouseX, int mouseY, double relativeX, double relativeY, boolean startInFloat)
beginDraggingDockableBar
in interface DockableBarManager
f
- the componentmouseX
- the x value of mouse pointmouseY
- the y value of mouse pointrelativeX
- relative x valuerelativeY
- relative y valuestartInFloat
- if the dragging starts from a floated stateprotected DefaultDockableBarManager.DockableBarsSnapshot createDockableBarsSnapshot(JComponent possiblyMoved)
possiblyMoved
- the component (should be a DockableBar) which is being moved
protected void sortDockableBarRowItems(List row)
public void pauseDragDockableBar()
DockableBarManager
pauseDragDockableBar
in interface DockableBarManager
public void cancelDragging()
public void dragDockableBar(JComponent f, int newX, int newY, int mouseModifiers)
dragDockableBar
in interface DockableBarManager
f
- the componentnewX
- new XnewY
- new YmouseModifiers
- the mouse modifierspublic void endDraggingDockableBar()
endDraggingDockableBar
in interface DockableBarManager
protected void checkForRearrangedDockableBars()
public void addDockableBarsRearrangedListener(DockableBarsRearrangedListener l)
addDockableBarsRearrangedListener
in interface DockableBarManager
l
- the DockableBarsRearrangedListenerpublic void removeDockableBarsRearrangedListener(DockableBarsRearrangedListener l)
removeDockableBarsRearrangedListener
in interface DockableBarManager
l
- the DockableBarsRearrangedListenerpublic DockableBarsRearrangedListener[] getDockableBarsRearrangedListeners()
DockableBarsRearrangedListener
s added to this
DockableBarManager
with addDockableBarsRearrangedListener
.
getDockableBarsRearrangedListeners
in interface DockableBarManager
DockableBarsRearrangedListener
s added or an empty array if no listeners have been
addedaddDockableBarsRearrangedListener(com.jidesoft.action.event.DockableBarsRearrangedListener)
protected void fireDockableBarsRearranged(DockableBarsRearrangedEvent event)
event
- the event being firedprotected DockableBarState findComponentInSnapshot(Component component, DefaultDockableBarManager.DockableBarsSnapshot snapshot)
protected DockableBarStateTransition getTransition(DockableBarState preState)
preState
- the original DockableBar state data
public void beginResizingDockableBar(JComponent f, int direction)
beginResizingDockableBar
in interface DockableBarManager
f
- the componentdirection
- the resize directionpublic void resizingDockableBar(JComponent f, int newX, int newY, int newWidth, int newHeight, int deltaX, int deltaY)
resizingDockableBar
in interface DockableBarManager
f
- the componentnewX
- new XnewY
- new YnewWidth
- new widthnewHeight
- new heightpublic void endResizingDockableBar(JComponent f)
endResizingDockableBar
in interface DockableBarManager
f
- the componentpublic RootPaneContainer getRootPaneContainer()
DockableBarManager
getRootPaneContainer
in interface DockableBarManager
getRootPaneContainer
in interface RootPanePersistence
public MainContainer getMainContainer()
getMainContainer
in interface DockableBarManager
public boolean isLoadDataSuccessful()
isLoadDataSuccessful
in interface LayoutPersistence
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.
public void setShowInitial(boolean value)
DockableBarManager
setShowInitial
in interface DockableBarManager
public boolean isShowInitial()
DockableBarManager
isShowInitial
in interface DockableBarManager
public void showInitial()
DockableBarManager
showInitial
in interface DockableBarManager
public void saveLayoutTo(Document document) throws ParserConfigurationException
LayoutPersistence
document
parameter.
saveLayoutTo
in interface LayoutPersistence
document
- the Document where the layout data will be written to
ParserConfigurationException
- if any parser exception happens when writing to the document
.public 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 void toggleState(String key)
toggleState
in interface DockableBarManager
key
- the key of the dockable bar to be toggle state.public void toggleState(DockableBar bar)
DockableBarManager
toggleState
in interface DockableBarManager
bar
- the dockable bar to toggle statepublic void removeFromHiddenDockableBars(String key)
removeFromHiddenDockableBars
in interface DockableBarManager
key
- the key of the dockable barpublic boolean isRearrangable()
isRearrangable
in interface DockableBarManager
public void setRearrangable(boolean rearrangeable)
setRearrangable
in interface DockableBarManager
rearrangeable
- true if the dockable bars can be rearranged by user.public boolean isFloatable()
isFloatable
in interface DockableBarManager
public void setFloatable(boolean floatable)
setFloatable
in interface DockableBarManager
floatable
- the flagpublic boolean isHidable()
isHidable
in interface DockableBarManager
public void setHidable(boolean hidable)
setHidable
in interface DockableBarManager
hidable
- the flagpublic void updateComponentTreeUI()
updateComponentTreeUI
to all of them to make sure everything changes after reset look and feel.
updateComponentTreeUI
in interface DockableBarManager
public Collection<DockableBar> getAllDockableBars()
getAllDockableBars
in interface DockableBarManager
DockableBarManager.getAllDockableBarNames()
public List<String> getAllDockableBarNames()
getAllDockableBarNames
in interface DockableBarManager
public Rectangle getInitBounds()
getInitBounds
in interface DockableBarManager
public void setInitBounds(Rectangle initBounds)
setInitBounds
in interface DockableBarManager
initBounds
- the initial boundspublic int getInitState()
Frame.getExtendedState()
. If user never sets the 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 DockableBarManager
public void setInitState(int initState)
Frame.getExtendedState()
.
setInitState
in interface DockableBarManager
initState
- the initial stateFrame.setExtendedState(int)
,
Frame.getExtendedState()
public DockableBarContext getDockableBarContextOf(String key)
getDockableBarContextOf
in interface DockableBarManager
key
- the dockable bar key
public DockableBarPopupMenuCustomizer getDockableBarPopupMenuCustomizer()
getDockableBarPopupMenuCustomizer
in interface DockableBarManager
DockableBarManager.setDockableBarPopupMenuCustomizer(DockableBarPopupMenuCustomizer)
public void setDockableBarPopupMenuCustomizer(DockableBarPopupMenuCustomizer customizerDockableBar)
setDockableBarPopupMenuCustomizer
in interface DockableBarManager
customizerDockableBar
- DockableBarManager.getDockableBarPopupMenuCustomizer()
public void dispose()
dispose
in interface DockableBarManager
public boolean isHideFloatingDockableBarsWhenDeactivate()
DockableBarManager
isHideFloatingDockableBarsWhenDeactivate
in interface DockableBarManager
public void setHideFloatingDockableBarsWhenDeactivate(boolean hideFloatingDockableBarsWhenDeactivate)
DockableBarManager
setHideFloatingDockableBarsWhenDeactivate
in interface DockableBarManager
public DockableBarContainer getDockableBarContainer(int side)
DockableBarManager
getDockableBarContainer
in interface DockableBarManager
public DockableBarContainer createDockableBarContainer()
DockableBarManager
createDockableBarContainer
in interface DockableBarManager
public void showContextMenu(MouseEvent e, Component component)
DockableBarManager
showContextMenu
in interface DockableBarManager
e
- source of the eventcomponent
- dockable bar or dockable bar containerpublic JPopupMenu getContextMenu()
DockableBarManager
getContextMenu
in interface DockableBarManager
public FloatingDockableBarContainer createFloatingDockableBarContainer(Window owner)
createFloatingDockableBarContainer
in interface DockableBarManager
owner
- the owner of the FloatingDockableBarContainer.
FloatingDockableBarContainer
object, containing the toolbar.public boolean isShowContextMenu()
isShowContextMenu
in interface DockableBarManager
public void setShowContextMenu(boolean showContextMenu)
setShowContextMenu
in interface DockableBarManager
showContextMenu
- the flagprotected boolean redispatchKeyEventToFloatingContainers(KeyEvent e)
e
- the KeyEvent
protected void processKeyBindingForFloatingDockableWindow(KeyEvent e, JWindow dockableWindow)
protected void processKeyBindingsForContainerInFloatingDockable(KeyEvent e, Container container)
protected void processKeyBindingForComponentInFloatingDockable(KeyEvent e, JComponent comp)
public DockableBarFactory getDockableBarFactory()
DockableBarManager
getDockableBarFactory
in interface DockableBarManager
public void setDockableBarFactory(DockableBarFactory dockableBarFactory)
DockableBarManager
setDockableBarFactory
in interface DockableBarManager
public void loadInitialLayout(Document layoutDocument)
LayoutPersistence
loadInitialLayout
in interface LayoutPersistence
layoutDocument
- the Document contains an initial layout.public boolean isUseGlassPaneEnabled()
isUseGlassPaneEnabled
in interface DockableBarManager
public void setUseGlassPaneEnabled(boolean useGlassPaneEnabled)
setUseGlassPaneEnabled
in interface DockableBarManager
useGlassPaneEnabled
- the flagpublic void setDockableBarAvailable(String key)
setDockableBarAvailable
in interface DockableBarManager
key
- The key of the dockable bar.public void setDockableBarUnavailable(String key)
setDockableBarUnavailable
in interface DockableBarManager
key
- The key of the dockable bar.public boolean isPreserveAvailableProperty()
public void setPreserveAvailableProperty(boolean preserveAvailableProperty)
protected void checkBarKey(String key, String methodName)
public int getDoubleClickAction()
getDoubleClickAction
in interface DockableBarManager
public void setDoubleClickAction(int doubleClickAction)
setDoubleClickAction
in interface DockableBarManager
doubleClickAction
- either DOUBLE_CLICK_TO_FLOAT or DOUBLE_CLICK_NONE.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |