站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

ExplorerActions (NetBeans APIs) - NetBeans API Javadoc 4.1.0


org.openide.explorer
Class ExplorerActions

java.lang.Object
  extended byorg.openide.explorer.ExplorerActions

Deprecated. Use ExplorerUtils.actionCopy(org.openide.explorer.ExplorerManager), etc, see ExplorerUtils javadoc for details

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()
          Deprecated. Creates new instance.
 
Method Summary
 void attach(ExplorerManager m)
          Deprecated. Attach to new manager.
 void detach()
          Deprecated. Detach from manager currently being listened on.
 boolean isConfirmDelete()
          Deprecated. Should deletions be confirmed?
 void setConfirmDelete(boolean yes)
          Deprecated. 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()
Deprecated. 
Creates new instance.

Method Detail

attach

public void attach(ExplorerManager m)
Deprecated. 
Attach to new manager.

Parameters:
m - the manager to listen on

detach

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


setConfirmDelete

public final void setConfirmDelete(boolean yes)
Deprecated. 
Set whether to confirm deletions.

Parameters:
yes - true to confirm deletions

isConfirmDelete

public final boolean isConfirmDelete()
Deprecated. 
Should deletions be confirmed?

Returns:
true if deletions must be confirmed


Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.