站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

ElementNodeFactory (NetBeans Java Hierarchy API) - NetBeans API Javadoc 4.1.0

 

org.openide.src.nodes
Interface ElementNodeFactory

All Known Implementing Classes:
DefaultFactory, FilterFactory

public interface ElementNodeFactory

A factory used to create instances of hierarchy node implementations. Loaders that use the element hierarchy should implement this factory so as to provide their own implementations of hierarchy element nodes.

See Also:
ClassChildren, SourceChildren

Method Summary
 Node createClassNode(ClassElement element)
          Make a node representing a class.
 Node createConstructorNode(ConstructorElement element)
          Make a node representing a constructor.
 Node createErrorNode()
          Make a node indicating that there was an error creating the element children.
 Node createFieldNode(FieldElement element)
          Make a node representing a field.
 Node createInitializerNode(InitializerElement element)
          Make a node representing an initializer.
 Node createMethodNode(MethodElement element)
          Make a node representing a method.
 Node createWaitNode()
          Make a node indicating that the creation of children is still under way.
 

Method Detail

createConstructorNode

public Node createConstructorNode(ConstructorElement element)
Make a node representing a constructor.

Parameters:
element - the constructor
Returns:
a constructor node instance

createMethodNode

public Node createMethodNode(MethodElement element)
Make a node representing a method.

Parameters:
element - the method
Returns:
a method node instance

createFieldNode

public Node createFieldNode(FieldElement element)
Make a node representing a field.

Parameters:
element - the field
Returns:
a field node instance

createInitializerNode

public Node createInitializerNode(InitializerElement element)
Make a node representing an initializer.

Parameters:
element - the initializer
Returns:
an initializer node instance

createClassNode

public Node createClassNode(ClassElement element)
Make a node representing a class.

Parameters:
element - the class
Returns:
a class node instance

createWaitNode

public Node createWaitNode()
Make a node indicating that the creation of children is still under way. It should be used when the process is slow.

Returns:
a wait node

createErrorNode

public Node createErrorNode()
Make a node indicating that there was an error creating the element children.

Returns:
the error node

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.