| java.lang.Object org.openide.explorer.ExplorerManager
All known Subclasses: org.openide.explorer.propertysheet.IndexedEditorPanel, org.openide.loaders.TemplateWizard1, org.openide.explorer.ExplorerPanel,
Inner Class :public static interface Provider | |
PROP_EXPLORED_CONTEXT | final public static String PROP_EXPLORED_CONTEXT(Code) | | Name of property for the explored context.
|
PROP_NODE_CHANGE | final public static String PROP_NODE_CHANGE(Code) | | Name of property for change in a node.
|
PROP_ROOT_CONTEXT | final public static String PROP_ROOT_CONTEXT(Code) | | Name of property for the root context.
|
PROP_SELECTED_NODES | final public static String PROP_SELECTED_NODES(Code) | | Name of property for the node selection.
|
serialVersionUID | final static long serialVersionUID(Code) | | generated Serialized Version UID
|
ExplorerManager | public ExplorerManager()(Code) | | Construct a new manager.
|
addPropertyChangeListener | public synchronized void addPropertyChangeListener(PropertyChangeListener l)(Code) | | Add a PropertyChangeListener to the listener list.
Parameters: l - the listener to add |
addRemoveListeners | final void addRemoveListeners(boolean add)(Code) | | |
addVetoableChangeListener | public synchronized void addVetoableChangeListener(VetoableChangeListener l)(Code) | | Add a VetoableListener to the listener list.
Parameters: l - the listener to add |
clone | public ExplorerManager clone()(Code) | | Clones the manager.
manager with the same settings like this one |
find | public static ExplorerManager find(Component comp)(Code) | | Finds the proper Explorer manager for a given component. This is done
by traversing the component hierarchy and finding the first ancestor
that implements
Provider . This method should be used in
Component.addNotify of each component that works with the
Explorer manager, e.g.:
private transient ExplorerManager explorer;
public void addNotify () {
super.addNotify ();
explorer = ExplorerManager.find (this);
}
Parameters: comp - component to find the manager for the manager, or a new empty manager if no ancestor implementsProvider See Also: Provider |
findExplorerActionsImpl | static synchronized ExplorerActionsImpl findExplorerActionsImpl(ExplorerManager em)(Code) | | Finds ExplorerActionsImpl for a explorer manager.
Parameters: em - the manager ExplorerActionsImpl |
getExploredContext | final public Node getExploredContext()(Code) | | Get the explored context.
The "explored context" is not as frequently used as the node selection;
generally it refers to a parent node which contains all of the things
being displayed at this moment. For BeanTreeView this is
irrelevant, but ContextTreeView uses it (in lieu of the node
selection) and for IconView it is important (the node
whose children are visible, i.e. the "background" of the icon view).
the node being explored, or null |
getRootContext | final public Node getRootContext()(Code) | | Get the root context.
The "root context" is simply the topmost node that this explorer can
display or manipulate. For BeanTreeView , this would mean
the root node of the tree. For e.g. IconView , this would
mean the uppermost possible node that that icon view could display;
while the explored context would change at user prompting via the
up button and clicking on subfolders, the root context would be fixed
by the code displaying the explorer.
the root context node |
getSelectedNodes | public Node[] getSelectedNodes()(Code) | | Get the set of selected nodes.
the selected nodes; empty (not null ) if none are selected |
getSelectionProcessor | static synchronized RequestProcessor getSelectionProcessor()(Code) | | Creates or retrieves RequestProcessor for selection updates.
|
removePropertyChangeListener | public synchronized void removePropertyChangeListener(PropertyChangeListener l)(Code) | | Remove a PropertyChangeListener from the listener list.
Parameters: l - the listener to remove |
removeVetoableChangeListener | public synchronized void removeVetoableChangeListener(VetoableChangeListener l)(Code) | | Remove a VetoableChangeListener from the listener list.
Parameters: l - the listener to remove |
setExploredContext | final public void setExploredContext(Node value)(Code) | | Set the explored context.
The node selection will be cleared as well.
Parameters: value - the new node to explore, or null if none should be explored. throws: IllegalArgumentException - if the node is not within the current root context in the node hierarchy |
setExploredContext | final public void setExploredContext(Node value, Node[] selection)(Code) | | Set the explored context.
The node selection will be changed as well. Note: node selection cannot be
vetoed if calling this method. It is generally better to call setExploredContextAndSelection.
Parameters: value - the new node to explore, or null if none should be explored. throws: IllegalArgumentException - if the node is not within the current root context in the node hierarchy |
setExploredContextAndSelection | final public void setExploredContextAndSelection(Node value, Node[] selection) throws PropertyVetoException(Code) | | Set the explored context and selected nodes. If the change in selected nodes is vetoed,
PropertyVetoException is rethrown from here.
Parameters: value - the new node to explore, or null if none should be explored. Parameters: selection - the new nodes to be selected throws: IllegalArgumentException - if the node is not within the current root context in the node hierarchy throws: PropertyVetoExcepion - if listeners attached to this explorer manager do so |
setRootContext | final public void setRootContext(Node value)(Code) | | Set the root context.
The explored context will be set to the new root context as well.
If any of the selected nodes are not inside it, the selection will be cleared.
Parameters: value - the new node to serve as a root throws: IllegalArgumentException - if it is null |
setSelectedNodes | final public void setSelectedNodes(Node[] value) throws PropertyVetoException(Code) | | Set the set of selected nodes.
Parameters: value - the nodes to select; empty (not null ) if none are to be selected exception: PropertyVetoException - when the given nodes cannot be selected throws: IllegalArgumentException - if null is given, or if any elementsof the selection are not within the current root context |
setSelectedNodes0 | final void setSelectedNodes0(Node[] nodes)(Code) | | Sets selected nodes and handles PropertyVetoException
|
waitFinished | final void waitFinished()(Code) | | Waits till all async processing is finished
|
|
|