Java Doc for NodeOp.java in  » IDE-Netbeans » openide » org » openide » 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 » openide » org.openide.nodes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openide.nodes.NodeOp

NodeOp
final public class NodeOp extends Object (Code)
Utility class for operations on nodes.
author:
   Jaroslav Tulach, Petr Hamernik, Dafe Simonek




Method Summary
public static  int[]computePermutation(Node[] arr1, Node[] arr2)
     Compute a permutation between two arrays of nodes.
static  SystemAction[]createFromNames(String[] arr)
     Utility method to remove dependency of this package on org.openide.actions.
public static  String[]createPath(Node node, Node parent)
     Find a path (by name) from one node to the root or a parent.
Parameters:
  node - the node to start in
Parameters:
  parent - parent node to stop in (can be null for the root) list of child names--i.e.
static  voidexception(Throwable ex)
     Notifies an exception to error manager or prints its it to stderr.
public static  Action[]findActions(Node[] nodes)
     Asks the provided nodes for their actions and those that are common, to all of them returns.
public static  NodefindChild(Node node, String name)
     Look for a node child of given name.
public static  JPopupMenufindContextMenu(Node[] nodes)
     Compute common menu for specified nodes.
static  JPopupMenufindContextMenuImpl(Node[] nodes, ActionMap actionMap)
     Method for finding popup menu for one or more nodes.
public static  NodefindPath(Node start, Enumeration<String> names)
     Traverse a path from a parent node down, by an enumeration of names.
public static  NodefindPath(Node start, String[] names)
     Traverse a path from a parent node down, by an enumeration of names.
public static  NodefindRoot(Node node)
     Find the root for a given node.
public static  Node[]fromHandles(Node.Handle[] handles)
     Takes array of handles and creates array of nodes.
public static  SystemAction[]getDefaultActions()
     Get the default actions for all nodes.
public static  booleanisSon(Node parent, Node son)
     Test whether the second node is a (direct) child of the first one.
public static  voidsetDefaultActions(SystemAction[] def)
    
public static  Node.Handle[]toHandles(Node[] nodes)
     Takes array of nodes and creates array of handles.
static  voidwarning(Throwable ex)
     Notifies an exception to error manager or prints its it to stderr.
public static  NodeListenerweakNodeListener(NodeListener l, Object source)
     Creates a weak implementation of NodeListener.



Method Detail
computePermutation
public static int[] computePermutation(Node[] arr1, Node[] arr2) throws IllegalArgumentException(Code)
Compute a permutation between two arrays of nodes. The arrays must have the same size. The permutation then can be applied to the first array to create the second array.
Parameters:
  arr1 - first array
Parameters:
  arr2 - second array the permutation, or null if the arrays are the same
exception:
  IllegalArgumentException - if the arrays cannot be permuted to each other. Eitherthey have different sizes or they do not contain the same elements.



createFromNames
static SystemAction[] createFromNames(String[] arr)(Code)
Utility method to remove dependency of this package on org.openide.actions. This method takes names of classes from that package and creates their instances.
Parameters:
  arr - the array of names like "Tools", "Properties", etc. cancontain nulls



createPath
public static String[] createPath(Node node, Node parent)(Code)
Find a path (by name) from one node to the root or a parent.
Parameters:
  node - the node to start in
Parameters:
  parent - parent node to stop in (can be null for the root) list of child names--i.e. a path from the parent to the child node
exception:
  IllegalArgumentException - if node's getName()method returns null



exception
static void exception(Throwable ex)(Code)
Notifies an exception to error manager or prints its it to stderr.
Parameters:
  ex - exception to notify



findActions
public static Action[] findActions(Node[] nodes)(Code)
Asks the provided nodes for their actions and those that are common, to all of them returns.
Parameters:
  nodes - array of nodes to compose actions for array of actions for the nodes or empty array if no actionswere found
since:
   3.29



findChild
public static Node findChild(Node node, String name)(Code)
Look for a node child of given name.
Parameters:
  node - node to search in
Parameters:
  name - name of child to look for the found child, or null if there is no such child



findContextMenu
public static JPopupMenu findContextMenu(Node[] nodes)(Code)
Compute common menu for specified nodes. Provides only those actions supplied by all nodes in the list.
Parameters:
  nodes - the nodes the menu for all nodes



findContextMenuImpl
static JPopupMenu findContextMenuImpl(Node[] nodes, ActionMap actionMap)(Code)
Method for finding popup menu for one or more nodes.
Parameters:
  nodes - array of nodes
Parameters:
  actionMap - maps keys to actions or null popup menu for this array



findPath
public static Node findPath(Node start, Enumeration<String> names) throws NodeNotFoundException(Code)
Traverse a path from a parent node down, by an enumeration of names.
Parameters:
  start - node to start searching at
Parameters:
  names - enumeration of names of nodesalong the path the node with such a path from the start node
exception:
  NodeNotFoundException - if the node with such namedoes not exists; the exception contains additional informationabout the failure.



findPath
public static Node findPath(Node start, String[] names) throws NodeNotFoundException(Code)
Traverse a path from a parent node down, by an enumeration of names.
Parameters:
  start - node to start searching at
Parameters:
  names - names of nodesalong the path the node with such a path from the start node
exception:
  NodeNotFoundException - if the node with such namedoes not exists; the exception contains additional informationabout the failure.



findRoot
public static Node findRoot(Node node)(Code)
Find the root for a given node.
Parameters:
  node - the node its root



fromHandles
public static Node[] fromHandles(Node.Handle[] handles) throws IOException(Code)
Takes array of handles and creates array of nodes.
Parameters:
  handles - array of handles array of nodes
exception:
  IOException - if a node cannot be created from the handle



getDefaultActions
public static SystemAction[] getDefaultActions()(Code)
Get the default actions for all nodes. array of default actions



isSon
public static boolean isSon(Node parent, Node son)(Code)
Test whether the second node is a (direct) child of the first one.
Parameters:
  parent - parent node
Parameters:
  son - son node true if so



setDefaultActions
public static void setDefaultActions(SystemAction[] def)(Code)



toHandles
public static Node.Handle[] toHandles(Node[] nodes)(Code)
Takes array of nodes and creates array of handles. The nodes that do not have handles are not included in the resulting array.
Parameters:
  nodes - array of nodes array of Node.Handles



warning
static void warning(Throwable ex)(Code)
Notifies an exception to error manager or prints its it to stderr.
Parameters:
  ex - exception to notify



weakNodeListener
public static NodeListener weakNodeListener(NodeListener l, Object source)(Code)
Creates a weak implementation of NodeListener.
Parameters:
  l - the listener to delegate to
Parameters:
  source - the source that the listener should detach from whenlistener l is freed, can be null a NodeListener delegating to l.
since:
   4.10



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.