Index, Node.Cookiepublic static class Index.ArrayChildren extends Children.Array implements Index
Children.Array, Children.Keys<T>, Children.Map<T>, Children.SortedArray, Children.SortedMap<T>Index.ArrayChildren, Index.KeysChildren<T>, Index.Support| Modifier and Type | Field | Description |
|---|---|---|
protected Index |
support |
Support instance for delegation of some
Index methods. |
nodes| Constructor | Description |
|---|---|
ArrayChildren() |
Constructor for the support.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addChangeListener(javax.swing.event.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 java.util.List<Node> |
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(javax.swing.event.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.
|
addNotify, create, createLazy, findChild, getNode, getNodeAt, getNodes, getNodes, getNodesCount, getNodesCount, isInitialized, nodes, removeNotify, snapshotadd, clone, refresh, removegetNodes, getNodesCountprotected Index support
Index methods.protected java.util.List<Node> initCollection()
This implementation returns ArrayList.
initCollection in class Children.Arraypublic void reorder(int[] perm)
Indexpublic 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.public void exchange(int x,
int y)
Indexpublic void moveUp(int x)
Indexpublic void moveDown(int x)
Indexpublic int indexOf(Node node)
Indexpublic void addChangeListener(javax.swing.event.ChangeListener chl)
IndexaddChangeListener in interface Indexchl - new listenerpublic void removeChangeListener(javax.swing.event.ChangeListener chl)
IndexremoveChangeListener in interface Indexchl - listener to removeBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.