|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The NavigatorManager
is responsible for managing the creation
of the system navigator and transient navigators opened on selected nodes.
Method Summary | |
void |
addContextMenuListener(ContextMenuListener l,
java.lang.Class cls)
Adds a context menu listener to all NavigatorWindow s. |
void |
addViewCreationListener(ViewCreationListener l)
Adds a listener for view creation events. |
NavigatorWindow |
createView(Context context,
ViewId viewId)
Creates a new navigator view with the specified context ,
and identified by the given viewId . |
ChildFilter |
findFilter(java.lang.Class elementClass)
Find the ChildFilter associated with the specified
elementClass . |
ContextMenu |
getContextMenu()
Get the ContextMenu to be shared by all Editors. |
NavigatorWindow |
getSystemNavigator()
Returns the system navigator. |
void |
initialize()
Initialize the log window management. |
void |
initIconOverlayCache()
Initializes the shared IconOverlayCache for navigator
window explorers. |
boolean |
isNavigatorOpen(Context context)
Returns true if a navigator is opened on the specified
context . |
boolean |
isSystemNavigator(ViewId viewId)
Returns true if the view identified by the give
viewId is the system navigator. |
boolean |
isSystemNavigatorVisible()
Returns true if the system navigator is visible. |
NavigatorWindow |
openNavigator(Context context)
Open a navigator based on the specified context . |
void |
registerExtension(Extension ext,
java.lang.Class cls)
Register a navigator extension. |
void |
registerFilter(java.lang.Class elementClass,
java.lang.Class childFilterClass,
URLFilter urlFilter)
|
void |
removeContextMenuListener(ContextMenuListener l)
Remove the specified ContextMenuListener . |
void |
removeViewCreationListener(ViewCreationListener l)
Removes the specified ViewCreationListener . |
NavigatorWindow |
showNavigator(Context context)
Show a navigator based on the specified context . |
void |
toggleSystemNavigator(Context context)
Toggles the visibility of the system navigator. |
Method Detail |
public void initialize()
public ContextMenu getContextMenu()
public boolean isSystemNavigatorVisible()
true
if the system navigator is visible.
public boolean isSystemNavigator(ViewId viewId)
true
if the view identified by the give
viewId
is the system navigator.
public void toggleSystemNavigator(Context context)
public NavigatorWindow getSystemNavigator()
public NavigatorWindow openNavigator(Context context)
context
.
If an existing navigator based on the context exist it shows it.
If the system navigator contains the context selected element,
it shows the system navigator, and expands the corresponding node.
Otherwise, it opens a new navigator.
public NavigatorWindow showNavigator(Context context)
context
. It
creates a new navigator if none found. Otherwise, it shows it.
public boolean isNavigatorOpen(Context context)
true
if a navigator is opened on the specified
context
.
public NavigatorWindow createView(Context context, ViewId viewId)
context
,
and identified by the given viewId
.
public void addContextMenuListener(ContextMenuListener l, java.lang.Class cls)
NavigatorWindow
s. The
listener will be called when users pop-up the menu on nodes of type
cls
. Specifying null
for the cls
parameter will cause the listener to be called when a menu is pop-up
on any node type.
public void removeContextMenuListener(ContextMenuListener l)
ContextMenuListener
.
public void registerFilter(java.lang.Class elementClass, java.lang.Class childFilterClass, URLFilter urlFilter)
public ChildFilter findFilter(java.lang.Class elementClass)
ChildFilter
associated with the specified
elementClass
.
public void registerExtension(Extension ext, java.lang.Class cls)
ext
- the extension to register.cls
- the Element
class for which the specified
extension will be called.public void initIconOverlayCache()
IconOverlayCache
for navigator
window explorers.
public void addViewCreationListener(ViewCreationListener l)
NavigatorWindow
view is created.
public void removeViewCreationListener(ViewCreationListener l)
ViewCreationListener
.
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.