|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DockableBarManager
DockableBarManager
is an interface that has all the necessary methods to manages
DockableBar
s.
DockableBar
s.
DockableBar
Field Summary | |
---|---|
static String |
CLIENT_PROPERTY_SUPPRESS_CONTEXT_MENU
|
static String |
CONTEXT_MENU_FLOATABLE
|
static String |
CONTEXT_MENU_HIDABLE
|
static String |
CONTEXT_MENU_REARRANGABLE
|
static int |
DOUBLE_CLICK_NONE
|
static int |
DOUBLE_CLICK_TO_FLOAT
|
Fields inherited from interface com.jidesoft.swing.LayoutPersistence |
---|
ATTRIBUTE_PERSISTENCE_NAME, NODE_LAYOUT_PERSISTENCE |
Method Summary | |
---|---|
void |
addDockableBar(DockableBar bar)
Adds this dockable bar to DockableBarManager. |
void |
addDockableBarsRearrangedListener(DockableBarsRearrangedListener l)
Adds DockableBarsRearrangedListener to receive DockableBarsRearrangedEvents. |
void |
beginDraggingDockableBar(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 |
beginResizingDockableBar(JComponent f,
int direction)
This methods is normally called when the user has indicated that they will begin resizing the dockable bar. |
DockableBarContainer |
createDockableBarContainer()
Creates the containers for 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 at the specified side and row. |
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 |
floatDockableBar(DockableBar dockableBar,
Rectangle bounds)
Float the dockable bar. |
List<String> |
getAllDockableBarNames()
Gets a list of all the names of dockable bars. |
Collection<DockableBar> |
getAllDockableBars()
Gets a collection of all the dockable bars. |
JPopupMenu |
getContextMenu()
Gets the default context menu for DockableBarManager. |
DockableBar |
getDockableBar(String key)
Gets the dockable bar with the key. |
DockableBarContainer |
getDockableBarContainer(int side)
Gets the dockable bar container by side. |
DockableBarContext |
getDockableBarContextOf(String barName)
Gets the DockableBarContext of the dockable bar. |
DockableBarFactory |
getDockableBarFactory()
Gets the dockable bar factory. |
DockableBarPopupMenuCustomizer |
getDockableBarPopupMenuCustomizer()
Gets the popup menu customizer for DockableBar. |
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. |
void |
hideDockableBar(String key)
Hides the dockable bar with the specified key. |
boolean |
isFloatable()
Return true if floating is allowed for dockable dockable bars. |
boolean |
isHidable()
Return true if floating is allowed for dockable dockable bars. |
boolean |
isHideFloatingDockableBarsWhenDeactivate()
Checks if the floating dockable bars should be hidden automatically when the main frame is deactivated. |
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 |
pauseDragDockableBar()
Pause the dragging session of a dockable bar. |
void |
removeAllDockableBars()
Removes all dockable bars from this DockableBarManager. |
void |
removeDockableBar(String key)
Removes this dockable bar from 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 name)
Removes a dockable bar from the hidden dockable bar list. |
void |
resizingDockableBar(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight,
int deltaX,
int deltaY)
The user has resized the component. |
void |
setDockableBarAvailable(String key)
Makes the dockable bar available. |
void |
setDockableBarFactory(DockableBarFactory dockableBarFactory)
Sets the dockable bar factory. |
void |
setDockableBarPopupMenuCustomizer(DockableBarPopupMenuCustomizer customizer)
Sets the popup customizer for DockableBar. |
void |
setDockableBarUnavailable(String key)
Makes the bar unavailable. |
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 dockable bars |
void |
setFloatingDockableBarsVisible(boolean show)
Sets all floating dockable bar visible or invisible. |
void |
setHidable(boolean hidable)
Enable or disable floating of dockable dockable bars |
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 |
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)
Shows the dockable bar with the specified key. |
void |
showInitial()
A client may specify that the docking layout is to be initialized without showing the window. |
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()
Call this method with LookAndFeel changes. |
Field Detail |
---|
static final String CONTEXT_MENU_REARRANGABLE
static final String CONTEXT_MENU_HIDABLE
static final String CONTEXT_MENU_FLOATABLE
static final String CLIENT_PROPERTY_SUPPRESS_CONTEXT_MENU
static final int DOUBLE_CLICK_NONE
static final int DOUBLE_CLICK_TO_FLOAT
Method Detail |
---|
void addDockableBar(DockableBar bar)
bar
- dockable bar to be addedvoid removeDockableBar(String key)
key
- key of dockable bar to be removedvoid removeAllDockableBars()
void removeExtraContexts()
DockableBar getDockableBar(String key)
key
-
void showDockableBar(String key)
key
- the key of dockable bar to be shownvoid hideDockableBar(String key)
key
- the key of dockable bar to be hiddenvoid beginDraggingDockableBar(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 dockable bar or all dockable bars in tabsvoid dragDockableBar(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 pauseDragDockableBar()
void endDraggingDockableBar()
void beginResizingDockableBar(JComponent f, int direction)
void resizingDockableBar(JComponent f, int newX, int newY, int newWidth, int newHeight, int deltaX, int deltaY)
void endResizingDockableBar(JComponent f)
RootPaneContainer getRootPaneContainer()
getRootPaneContainer
in interface RootPanePersistence
MainContainer getMainContainer()
void toggleState(String key)
key
- the key of the dockable bar to toggle state.void toggleState(DockableBar bar)
bar
- the dockable bar to toggle stateboolean isRearrangable()
void setRearrangable(boolean rearrangeable)
rearrangeable
- true if the dockable bars can be rearranged by user.boolean isFloatable()
void setFloatable(boolean floatable)
floatable
- boolean isHidable()
void setHidable(boolean hidable)
hidable
- void updateComponentTreeUI()
Collection<DockableBar> getAllDockableBars()
getAllDockableBarNames()
.
getAllDockableBarNames()
List<String> getAllDockableBarNames()
getAllDockableBars()
.
DockableBarPopupMenuCustomizer getDockableBarPopupMenuCustomizer()
setDockableBarPopupMenuCustomizer(DockableBarPopupMenuCustomizer)
void setDockableBarPopupMenuCustomizer(DockableBarPopupMenuCustomizer customizer)
customizer
- getDockableBarPopupMenuCustomizer()
void showContextMenu(MouseEvent e, Component component)
e
- source of the eventcomponent
- dockable bar or dockable bar containervoid floatDockableBar(DockableBar dockableBar, Rectangle bounds)
dockableBar
- dockable bar to be floatedbounds
- the bounds of float dockable barvoid dockDockableBar(DockableBar bar, int side, int row, boolean createNewRow, int start)
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.DockableBarContainer getDockableBarContainer(int side)
side
-
DockableBarContainer createDockableBarContainer()
Rectangle getInitBounds()
void setInitBounds(Rectangle initBounds)
initBounds
- int getInitState()
Frame.getExtendedState()
.
void setInitState(int initState)
Frame.getExtendedState()
.
initState
- the initial statevoid dispose()
DockableBarContext getDockableBarContextOf(String barName)
barName
-
void removeFromHiddenDockableBars(String name)
name
- void setFloatingDockableBarsVisible(boolean show)
show
- void switchRootPaneContainer(RootPaneContainer rootContainer)
rootContainer
- void setShowInitial(boolean value)
value
- boolean isShowInitial()
void showInitial()
boolean isHideFloatingDockableBarsWhenDeactivate()
void setHideFloatingDockableBarsWhenDeactivate(boolean hideFloatingDockableBarsWhenDeactivate)
hideFloatingDockableBarsWhenDeactivate
- boolean isShowContextMenu()
void setShowContextMenu(boolean showContextMenu)
showContextMenu
- void addDockableBarsRearrangedListener(DockableBarsRearrangedListener l)
l
- void removeDockableBarsRearrangedListener(DockableBarsRearrangedListener l)
l
- the DockableBarsRearrangedListenerDockableBarsRearrangedListener[] getDockableBarsRearrangedListeners()
DockableBarsRearrangedListener
s added to this
DockableBarManager
with addDockableBarsRearrangedListener
.
DockableBarsRearrangedListener
s added or an empty array if no listeners have been
addedaddDockableBarsRearrangedListener(com.jidesoft.action.event.DockableBarsRearrangedListener)
DockableBarFactory getDockableBarFactory()
void setDockableBarFactory(DockableBarFactory dockableBarFactory)
dockableBarFactory
- JPopupMenu getContextMenu()
FloatingDockableBarContainer createFloatingDockableBarContainer(Window owner)
owner
- the owner of the FloatingDockableBarContainer.
FloatingDockableBarContainer
object, containing the toolbar.boolean isUseGlassPaneEnabled()
void setUseGlassPaneEnabled(boolean useGlassPaneEnabled)
useGlassPaneEnabled
- void setDockableBarAvailable(String key)
key
- key of dockable barvoid setDockableBarUnavailable(String key)
key
- key of dockable barint getDoubleClickAction()
void setDoubleClickAction(int doubleClickAction)
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 |