org.openide.explorer
Class ExplorerActions

java.lang.Object
  |
  +--org.openide.explorer.ExplorerActions

public class ExplorerActions
extends Object

This class contains the default implementation of reactions to the standard explorer actions. It can be attached to any ExplorerManager. Then this class will listen to changes of selected nodes or the explored context of that manager, and update the state of cut/copy/paste/delete actions.

An instance of this class can only be attached to one manager at a time. Use attach(org.openide.explorer.ExplorerManager) and detach() to make the connection.


Constructor Summary
ExplorerActions()
           
 
Method Summary
 void attach(ExplorerManager m)
          Attach to new manager.
 void detach()
          Detach from manager currently being listened on.
 boolean isConfirmDelete()
          Should deletions be confirmed?
 void setConfirmDelete(boolean yes)
          Set whether to confirm deletions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplorerActions

public ExplorerActions()
Method Detail

attach

public void attach(ExplorerManager m)
Attach to new manager.
Parameters:
m - the manager to listen on

detach

public void detach()
Detach from manager currently being listened on.

setConfirmDelete

public final void setConfirmDelete(boolean yes)
Set whether to confirm deletions.
Parameters:
yes - true to confirm deletions

isConfirmDelete

public final boolean isConfirmDelete()
Should deletions be confirmed?
Returns:
true if deletions must be confirmed


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.