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

Index.KeysChildren (Nodes API) - NetBeans API Javadoc (Current Development Version)

org.openide.nodes 7.0

org.openide.nodes
Class Index.KeysChildren<T>

java.lang.Object
  extended by org.openide.nodes.Children
      extended by org.openide.nodes.Children.Array
          extended by org.openide.nodes.Children.Keys<T>
              extended by org.openide.nodes.Index.KeysChildren<T>
All Implemented Interfaces:
Cloneable
Enclosing interface:
Index

public abstract static class Index.KeysChildren<T>
extends Children.Keys<T>

Implementation of index interface that operates on an list of objects that are presented by given nodes.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.nodes.Children
Children.Array, Children.Keys<T>, Children.Map<T>, Children.SortedArray, Children.SortedMap<T>
 
Field Summary
protected  List<T> list
          list of objects that should be manipulated with this keys
 
Fields inherited from class org.openide.nodes.Children.Array
nodes
 
Fields inherited from class org.openide.nodes.Children
LEAF, MUTEX
 
Constructor Summary
Index.KeysChildren(List<T> ar)
          Constructor.
 
Method Summary
protected  Index createIndex()
          The method that creates the supporting index for this children object.
 Index getIndex()
          Getter for the index that works with this children.
protected  Object lock()
          The lock to use when accessing the list.
protected  void reorder(int[] perm)
           
 void update()
          Update the status of the list if it has changed.
 
Methods inherited from class org.openide.nodes.Children.Keys
add, clone, createNodes, destroyNodes, refreshKey, remove, setBefore, setKeys, setKeys
 
Methods inherited from class org.openide.nodes.Children.Array
initCollection, refresh
 
Methods inherited from class org.openide.nodes.Children
addNotify, findChild, getNode, getNodes, getNodes, getNodesCount, isInitialized, nodes, removeNotify
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected final List<T> list
list of objects that should be manipulated with this keys

Constructor Detail

Index.KeysChildren

public Index.KeysChildren(List<T> ar)
Constructor.

Parameters:
ar - the array of any objects
Method Detail

getIndex

public Index getIndex()
Getter for the index that works with this children.

Returns:
the index

createIndex

protected Index createIndex()
The method that creates the supporting index for this children object.


reorder

protected void reorder(int[] perm)

lock

protected Object lock()
The lock to use when accessing the list. By default this implementation returns the list itself, but can be changed to lock more properly.

Returns:
lock to use for accessing the list

update

public final void update()
Update the status of the list if it has changed.


org.openide.nodes 7.0

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