M - Type of model to bridgeN - Type of nodes of the modelpublic interface NavBridge<M,N extends NavNode<M,N>>
NavHelper to hold model and ui.| Modifier and Type | Method and Description |
|---|---|
void |
addTreeModelListener(TreeModelListener l) |
boolean |
canLoadChild(N node) |
N |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
int |
getIndexOfChild(Object parent,
Object child) |
<T extends EventListener> |
getListeners(Class<T> listenerType) |
M |
getModel() |
TreeNode[] |
getPathToRoot(TreeNode aNode) |
N |
getRoot() |
TreeModelListener[] |
getTreeModelListeners() |
void |
insertNodeInto(N newChild,
N parent,
int index) |
boolean |
isLeaf(Object node) |
void |
nodeChanged(TreeNode node) |
void |
nodesChanged(TreeNode node,
int[] childIndices) |
void |
nodeStructureChanged(TreeNode node) |
void |
nodesWereInserted(N parent,
int[] indices) |
void |
nodesWereRemoved(TreeNode node,
int[] childIndices,
Object[] removedChildren) |
void |
nodeWereInserted(N parentNode,
int childIndice,
N node) |
void |
notifyChildNodesInserted(N node)
Notifies that all childs nodes of
node were
inserted. |
void |
notifyNodeInserted(N node)
Notifies that the
node was inserted. |
void |
reload(N node) |
void |
removeNodeFromParent(N node) |
void |
removeTreeModelListener(TreeModelListener l) |
void |
setModel(M delegate) |
void |
setRoot(N node) |
void |
valueForPathChanged(TreePath path,
Object newValue) |
M getModel()
N getRoot()
boolean isLeaf(Object node)
int getChildCount(Object parent)
void setModel(M delegate)
void setRoot(N node)
void removeNodeFromParent(N node)
void reload(N node)
boolean canLoadChild(N node)
void nodeStructureChanged(TreeNode node)
void nodeChanged(TreeNode node)
void nodesChanged(TreeNode node, int[] childIndices)
void nodesWereInserted(N parent, int[] indices)
void notifyNodeInserted(N node)
node was inserted.
Note: The method recurses on childs (always notify parent before child)node - node insertedvoid notifyChildNodesInserted(N node)
node were
inserted.
Note: The method recurses on childs (always notify parent before child)node - node where all childs where insertedvoid addTreeModelListener(TreeModelListener l)
void removeTreeModelListener(TreeModelListener l)
TreeModelListener[] getTreeModelListeners()
<T extends EventListener> T[] getListeners(Class<T> listenerType)
Copyright © 2008–2020 Ultreia.io. All rights reserved.