|
org.openide.nodes 6.7.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.nodes.NodeOperation
public abstract class NodeOperation
Provides common operations on nodes. Any component may ask to open a customizer for, or explore, any node.
Constructor Summary | |
---|---|
protected |
NodeOperation()
Subclass constructor. |
Method Summary | |
---|---|
abstract boolean |
customize(Node n)
Tries to open a customization dialog for the specified node. |
abstract void |
explore(Node n)
Explore a node (and its subhierarchy). |
static NodeOperation |
getDefault()
Get default instance from lookup. |
Node |
select(String title,
String rootTitle,
Node root)
Open a modal Explorer accepting only a single node. |
Node[] |
select(String title,
String rootTitle,
Node root,
NodeAcceptor acceptor)
Open a modal Explorer without any extra dialog component. |
abstract Node[] |
select(String title,
String rootTitle,
Node root,
NodeAcceptor acceptor,
Component top)
Open a modal Explorer on a root node, permitting a node selection to be returned. |
abstract void |
showProperties(Node n)
Open a modal Property Sheet on a node. |
abstract void |
showProperties(Node[] n)
Open a modal Property Sheet on a set of nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NodeOperation()
Method Detail |
---|
public static NodeOperation getDefault()
public abstract boolean customize(Node n)
n
- the node to customize
true
if the node had a customizer,
false
if notNode.hasCustomizer()
,
Node.getCustomizer()
public abstract void explore(Node n)
n
- the node to explorepublic abstract void showProperties(Node n)
n
- the node to show properties ofpublic abstract void showProperties(Node[] n)
n
- the array of nodes to show properties ofshowProperties(Node)
public abstract Node[] select(String title, String rootTitle, Node root, NodeAcceptor acceptor, Component top) throws UserCancelException
The acceptor should be asked each time the set of selected nodes changes, whether to accept or reject the current result. This will affect for example the display of the "OK" button.
title
- title of the dialogrootTitle
- label at root of dialog. May use &
for a mnemonic
.root
- root node to exploreacceptor
- class asked to accept or reject current selectiontop
- an extra component to be placed on the dialog (may be null
)
UserCancelException
- if the selection is interrupted by the userpublic Node[] select(String title, String rootTitle, Node root, NodeAcceptor acceptor) throws UserCancelException
title
- title of the dialogrootTitle
- label at root of dialog. May use &
for a mnemonic
.root
- root node to exploreacceptor
- class asked to accept or reject current selection
UserCancelException
- if the selection is interrupted by the userselect(String, String, Node, NodeAcceptor, Component)
public final Node select(String title, String rootTitle, Node root) throws UserCancelException
title
- title of the dialogrootTitle
- label at root of dialog. May use &
for a mnemonic
.root
- root node to explore
UserCancelException
- if the selection is interrupted by the userselect(String, String, Node, NodeAcceptor)
|
org.openide.nodes 6.7.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |