| |
|
| java.lang.Object org.netbeans.modules.visualweb.gravy.nodes.Node
All known Subclasses: org.netbeans.modules.visualweb.gravy.nodes.WebServicesNode,
Node | public class Node (Code) | | Ancestor class for all nodes.
Nodes should help to easier testing of JTree's.
The most frequent usage in IDE is in the Explorer Window but nodes can be
used in any component which includes a JTree instance.
Nodes are also used as parameters for action's performing.
Example:
Node node = new Node(RepositoryTabOperator.invoke().getRootNode(), "jellytools/src|org|netbeans|jellytools");
System.out.println(node.getText());
new NewTemplateAction().performAPI(node);
|
Inner Class :class StringArraySubPathChooser implements JTreeOperator.TreePathChooser | |
treeOperator | protected JTreeOperator treeOperator(Code) | | JTreeOperator of tree where node lives
|
Node | public Node(JTreeOperator treeOperator, String treePath)(Code) | | creates new Node instance
Parameters: treeOperator - JTreeOperator of tree where node lives Parameters: treePath - String tree path of node |
Node | public Node(JTreeOperator treeOperator, String treePath, String indexes)(Code) | | creates new Node instance
Parameters: treeOperator - JTreeOperator of tree where node lives Parameters: treePath - String tree path of node Parameters: indexes - String list of indexes of nodes in each level |
Node | public Node(Node parent, String treeSubPath)(Code) | | creates new Node instance
Parameters: parent - parent Node Parameters: treeSubPath - String tree sub-path from parent |
Node | public Node(Node parent, int childIndex)(Code) | | creates new Node instance
Parameters: parent - parent Node Parameters: childIndex - int index of child under parent node |
Node | public Node(JTreeOperator treeOperator, TreePath path)(Code) | | creates new Node instance
Parameters: treeOperator - JTreeOperator of tree where node lives Parameters: path - TreePath of node |
addSelectionPath | public void addSelectionPath()(Code) | | adds node into set of selected nodes
|
callPopup | public JPopupMenuOperator callPopup()(Code) | | calls popup menu on node
JPopupMenuOperator |
collapse | public void collapse()(Code) | | Collapse current node to hide children
|
expand | public void expand()(Code) | | Expands current node to see children
|
getChildren | public String[] getChildren()(Code) | | returns list of names of children
String[] list of names of children |
getComparator | public Operator.StringComparator getComparator()(Code) | | Gets comparator for this node instance.
comparator for this node instance. |
getOpenideNode | public Object getOpenideNode()(Code) | | Returns Object instance which represents org.openide.nodes.Node
for this jellytools node.
Object instance which represents org.openide.nodes.Node |
getParentPath | public String getParentPath()(Code) | | Getter for path of parent node
String path of parent node |
getPath | public String getPath()(Code) | | Getter for node path
String node path |
getText | public String getText()(Code) | | Getter for node text
String node text |
getTreePath | public TreePath getTreePath()(Code) | | Getter for TreePath of node.
TreePath of node |
isChildPresent | public boolean isChildPresent(String childName)(Code) | | Checks whether child with specified name is present under this node.
Parameters: childName - name of child node true if child is present; false otherwise |
isCollapsed | public boolean isCollapsed()(Code) | | Informs if current node is collapsed
boolean true when node is collapsed |
isExpanded | public boolean isExpanded()(Code) | | Informs if current node is expanded
boolean true when node is expanded |
isLeaf | public boolean isLeaf()(Code) | | tests if node is leaf
boolean true when node does not have children |
isLink | public boolean isLink()(Code) | | determines if current node is link
boolean true if node is link |
isPresent | public boolean isPresent()(Code) | | verifies if node is still present. It expands parent path of the node
during verification.
boolean true when node is still present |
performAPIAction | public void performAPIAction(String systemActionClass)(Code) | | performs action on node through API menu
Parameters: systemActionClass - String class name of SystemAction (use null value if API mode is not supported) |
performAPIActionNoBlock | public void performAPIActionNoBlock(String systemActionClass)(Code) | | performs action on node through API menu
Parameters: systemActionClass - String class name of SystemAction (use null value if API mode is not supported) |
performMenuAction | public void performMenuAction(String menuPath)(Code) | | performs action on node through main menu
Parameters: menuPath - main menu path of action |
performMenuActionNoBlock | public void performMenuActionNoBlock(String menuPath)(Code) | | performs action on node through main menu
Parameters: menuPath - main menu path of action |
performPopupAction | public void performPopupAction(String popupPath)(Code) | | performs action on node through popup menu
Parameters: popupPath - popup menu path of action |
performPopupActionNoBlock | public void performPopupActionNoBlock(String popupPath)(Code) | | performs action on node through popup menu
Parameters: popupPath - popup menu path of action |
select | public void select()(Code) | | Selects node.
|
setComparator | public void setComparator(Operator.StringComparator comparator)(Code) | | Sets comparator fot this node. Comparator is used for all methods
after this method is called.
Parameters: comparator - new comparator to be set (e.g.new Operator.DefaultStringComparator(true, true);to search string item exactly and case sensitive) |
tree | public JTreeOperator tree()(Code) | | Getter for JTreeOperator of tree where node lives
JTreeOperator of tree where node lives |
verifyPopup | public void verifyPopup(String popupPath)(Code) | | verifies node's popup path for presence (without invocation)
Parameters: popupPath - String popup path |
verifyPopup | public void verifyPopup(String[] popupPaths)(Code) | | verifies node's popup paths for presence (without invocation)
Parameters: popupPaths - String[] popup paths |
verifyPopup | public void verifyPopup(Action actions)(Code) | | verifies node's popup paths (of all actions) for presence (without invocation)
Parameters: actions - array of actions to be verified |
waitChildNotPresent | public void waitChildNotPresent(String childName)(Code) | | Waits until child with specified name is not present under this node.
It can throw TimeoutExpiredException, if child is still present.
Parameters: childName - name of child node |
waitCollapsed | public void waitCollapsed()(Code) | | Waits for node to be collapsed
|
waitExpanded | public void waitExpanded()(Code) | | Waits for node to be expanded
|
waitNotPresent | public void waitNotPresent()(Code) | | Waits until this node is no longer present.
It can throw TimeoutExpiredException, if the node is still present.
|
|
|
|