|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
M - Type of model to bridgeN - Type of nodes of the modelpublic interface NavBridge<M,N extends NavNode<M,N>>
Contract of the bridge used by NavHelper to hold model and ui.
| Method Summary | ||
|---|---|---|
void |
addTreeModelListener(TreeModelListener l)
|
|
boolean |
canLoadChild(N node)
|
|
N |
getChild(Object parent,
int index)
|
|
int |
getChildCount(Object parent)
|
|
int |
getIndexOfChild(Object parent,
Object child)
|
|
|
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)
|
|
| Method Detail |
|---|
M getModel()
N getRoot()
boolean isLeaf(Object node)
int getChildCount(Object parent)
N getChild(Object parent,
int index)
int getIndexOfChild(Object parent,
Object child)
TreeNode[] getPathToRoot(TreeNode aNode)
void setModel(M delegate)
void setRoot(N node)
void insertNodeInto(N newChild,
N parent,
int index)
void removeNodeFromParent(N node)
void reload(N node)
boolean canLoadChild(N node)
void valueForPathChanged(TreePath path,
Object newValue)
void nodeStructureChanged(TreeNode node)
void nodeChanged(TreeNode node)
void nodesChanged(TreeNode node,
int[] childIndices)
void nodesWereInserted(N parent,
int[] indices)
void nodeWereInserted(N parentNode,
int childIndice,
N node)
void nodesWereRemoved(TreeNode node,
int[] childIndices,
Object[] removedChildren)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||