|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openide.nodes.Children
org.openide.nodes.Children.Array
org.openide.nodes.Index.ArrayChildren
Reorderable children list stored in an array.
| Nested Class Summary |
| Nested classes inherited from class org.openide.nodes.Children |
Children.Array, Children.Keys, Children.Map, Children.SortedArray, Children.SortedMap |
| Nested classes inherited from class org.openide.nodes.Index |
Index.ArrayChildren, Index.KeysChildren, Index.Support |
| Field Summary | |
protected Index |
support
Support instance for delegation of some Index methods. |
| Fields inherited from class org.openide.nodes.Children.Array |
nodes |
| Fields inherited from class org.openide.nodes.Children |
LEAF, MUTEX |
| Constructor Summary | |
Index.ArrayChildren()
Constructor for the support. |
|
| Method Summary | |
void |
addChangeListener(ChangeListener chl)
Add a new listener to the listener list. |
void |
exchange(int x,
int y)
Exchange two elements. |
int |
indexOf(Node node)
Get the index of a given node. |
protected Collection |
initCollection()
If default constructor is used, then this method is called to lazily create the collection. |
void |
move(int x,
int y)
Move the element at the x-th position to the y-th position. |
void |
moveDown(int x)
Move an element down. |
void |
moveUp(int x)
Move an element up. |
void |
removeChangeListener(ChangeListener chl)
Remove a listener from the listener list. |
void |
reorder()
Invokes a dialog for reordering children using IndexedCustomizer. |
void |
reorder(int[] perm)
Reorder all children with a given permutation. |
| Methods inherited from class org.openide.nodes.Children.Array |
add, clone, refresh, remove |
| 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 |
| Methods inherited from interface org.openide.nodes.Index |
getNodes, getNodesCount |
| Field Detail |
protected Index support
Index methods.
| Constructor Detail |
public Index.ArrayChildren()
| Method Detail |
protected Collection initCollection()
This implementation returns ArrayList.
initCollection in class Children.Arraypublic void reorder(int[] perm)
Index
perm - permutation with the length of current nodespublic void reorder()
IndexedCustomizer.
public void move(int x,
int y)
Indexx-th position to the y-th position. All
elements after the y-th position are moved down.
x - the position to remove the element fromy - the position to insert the element to
public void exchange(int x,
int y)
Index
x - position of the first elementy - position of the second elementpublic void moveUp(int x)
Index
x - index of element to move uppublic void moveDown(int x)
Index
x - index of element to move downpublic int indexOf(Node node)
Index
node - node to find index of
-1 if no such node was foundpublic void addChangeListener(ChangeListener chl)
Index
addChangeListener in interface Indexchl - new listenerpublic void removeChangeListener(ChangeListener chl)
Index
removeChangeListener in interface Indexchl - listener to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||