当前页面:
在线文档首页 >
NetBeans API Javadoc 5.5.1
Index.KeysChildren (NetBeans Nodes API) - NetBeans API Javadoc 5.5.1
org.openide.nodes
Class Index.KeysChildren
java.lang.Object
org.openide.nodes.Children
org.openide.nodes.Children.Array
org.openide.nodes.Children.Keys
org.openide.nodes.Index.KeysChildren
- All Implemented Interfaces:
- Cloneable
- Enclosing interface:
- Index
public abstract static class Index.KeysChildren
- extends Children.Keys
Implementation of index interface that operates on an list of
objects that are presented by given nodes.
Field Summary |
protected List |
list
list of objects that should be manipulated with this keys |
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. |
list
protected final List list
- list of objects that should be manipulated with this keys
Index.KeysChildren
public Index.KeysChildren(List ar)
- Constructor.
- Parameters:
ar
- the array of any objects
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.