Java Doc for Node.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » gravy » nodes » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.gravy.nodes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Field Summary
final static  StringlinkSuffix
    
protected  JTreeOperatortreeOperator
    
protected  TreePathtreePath
    

Constructor Summary
public  Node(JTreeOperator treeOperator, String treePath)
    
public  Node(JTreeOperator treeOperator, String treePath, String indexes)
    
public  Node(Node parent, String treeSubPath)
    
public  Node(Node parent, int childIndex)
    
public  Node(JTreeOperator treeOperator, TreePath path)
    

Method Summary
public  voidaddSelectionPath()
    
public  JPopupMenuOperatorcallPopup()
    
public  voidcollapse()
    
public  voidexpand()
    
 TreePathfindSubPath(String subPath, String delimiter)
    
 TreePathfindSubPath(String subPath, String indexes, String delimiter)
    
public  String[]getChildren()
    
public  Operator.StringComparatorgetComparator()
     Gets comparator for this node instance.
public  ObjectgetOpenideNode()
     Returns Object instance which represents org.openide.nodes.Node for this jellytools node.
public  StringgetParentPath()
    
public  StringgetPath()
    
public  StringgetText()
    
public  TreePathgetTreePath()
     Getter for TreePath of node.
public  booleanisChildPresent(String childName)
     Checks whether child with specified name is present under this node.
public  booleanisCollapsed()
    
public  booleanisExpanded()
    
public  booleanisLeaf()
    
public  booleanisLink()
    
public  booleanisPresent()
     verifies if node is still present.
public  voidperformAPIAction(String systemActionClass)
    
public  voidperformAPIActionNoBlock(String systemActionClass)
    
public  voidperformMenuAction(String menuPath)
    
public  voidperformMenuActionNoBlock(String menuPath)
    
public  voidperformPopupAction(String popupPath)
    
public  voidperformPopupActionNoBlock(String popupPath)
    
public  voidselect()
     Selects node.
public  voidsetComparator(Operator.StringComparator comparator)
     Sets comparator fot this node.
public  JTreeOperatortree()
    
public  voidverifyPopup(String popupPath)
    
public  voidverifyPopup(String[] popupPaths)
    
public  voidverifyPopup(Action actions)
    
public  voidwaitChildNotPresent(String childName)
     Waits until child with specified name is not present under this node.
public  voidwaitCollapsed()
    
public  voidwaitExpanded()
    
public  voidwaitNotPresent()
     Waits until this node is no longer present.

Field Detail
linkSuffix
final static String linkSuffix(Code)



treeOperator
protected JTreeOperator treeOperator(Code)
JTreeOperator of tree where node lives



treePath
protected TreePath treePath(Code)
TreePath of node




Constructor Detail
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




Method Detail
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



findSubPath
TreePath findSubPath(String subPath, String delimiter)(Code)



findSubPath
TreePath findSubPath(String subPath, String indexes, String delimiter)(Code)



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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.