当前页面:
在线文档首页 >
NetBeans API Javadoc 5.0.0
FolderRenameHandler (NetBeans Loaders API) - NetBeans API Javadoc 5.0.0
org.openide.loaders
Interface FolderRenameHandler
- public interface FolderRenameHandler
This handler is used by DataFolder.FolderNode.setName() method.
FolderNode.setName() uses Lookup.getDefault() to lookup for instances of
FolderRenameHandler. If there is one instance found, it's handleRename(...)
method is called to handle rename request. More than one instance of
FolderRenameHandler is not allowed.
- Since:
- 5.4
handleRename
public void handleRename(DataFolder folder,
String newName)
throws IllegalArgumentException
- Parameters:
folder
- on this folder rename was requestednewName
- new name of folder
- Throws:
IllegalArgumentException
- thrown if rename cannot be performed