public interface ReorderableTreeModelFilter extends TreeModelFilter
Nodewill contain an implementation of
Indexin it's lookup if
|Modifier and Type||Method and Description|
Provide if this filter implementation can reorder children nodes.
Reorder children nodes with a given permutation.
boolean canReorder(ReorderableTreeModel original, Object parent) throws UnknownTypeException
original- The original ReorderableTreeModel
parent- The parent node of children that are test for reorder
trueif this model can handle reordering of children,
UnknownTypeException- if this model implementation is not able to decide the reorder capability for given node type
void reorder(ReorderableTreeModel original, Object parent, int perm) throws UnknownTypeException
parent- The parent node of children that are being reordered
perm- permutation with the length of current child nodes. The permutation lists the new positions of the original nodes, that is, for nodes
[0,3,1,2], the final order would be
IllegalArgumentException- if the permutation is not valid
UnknownTypeException- if this model implementation is not able to perform the reorder for given node type
Built on August 25 2014. | Portions Copyright 1997-2014 Oracle. All rights reserved.