org.netbeans.modules.db/1 1.44.1 30

org.netbeans.api.db.explorer.node
Class ChildNodeFactory

java.lang.Object
  extended by org.openide.nodes.ChildFactory<Lookup>
      extended by org.netbeans.api.db.explorer.node.ChildNodeFactory

public class ChildNodeFactory
extends ChildFactory<Lookup>

The ChildNodeFactory is used for getting node instances based on a Lookup instance as the key. Subclasses of BaseNode that can have children are constructed with an instance of ChildNodeFactory.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.nodes.ChildFactory
ChildFactory.Detachable<T>
 
Constructor Summary
ChildNodeFactory(Lookup lookup)
          Constructor.
 
Method Summary
protected  boolean createKeys(List toPopulate)
           
 Node[] createNodesForKey(Lookup key)
           
 void refresh()
          Refreshes this factory which causes it to get its child keys and subsequently its child nodes
 void refreshSync()
          Refreshes this factory which causes it to get its child keys and subsequently its child nodes immeditately.
 
Methods inherited from class org.openide.nodes.ChildFactory
createNodeForKey, createWaitNode, refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildNodeFactory

public ChildNodeFactory(Lookup lookup)
Constructor.

Parameters:
dataLookup - the associated data lookup
Method Detail

refresh

public void refresh()
Refreshes this factory which causes it to get its child keys and subsequently its child nodes


refreshSync

public void refreshSync()
Refreshes this factory which causes it to get its child keys and subsequently its child nodes immeditately.


createNodesForKey

public Node[] createNodesForKey(Lookup key)
Overrides:
createNodesForKey in class ChildFactory<Lookup>

createKeys

protected boolean createKeys(List toPopulate)
Specified by:
createKeys in class ChildFactory<Lookup>

org.netbeans.modules.db/1 1.44.1 30

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.