Interface NavBridge<M,N extends NavNode<M,N>>
-
- Type Parameters:
M- Type of model to bridgeN- Type of nodes of the model
- All Known Implementing Classes:
NavTreeBridge,NavTreeTableBridge
public interface NavBridge<M,N extends NavNode<M,N>>Contract of the bridge used byNavHelperto hold model and ui.- Since:
- 2.1
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddTreeModelListener(TreeModelListener l)booleancanLoadChild(N node)NgetChild(Object parent, int index)intgetChildCount(Object parent)intgetIndexOfChild(Object parent, Object child)<T extends EventListener>
T[]getListeners(Class<T> listenerType)MgetModel()TreeNode[]getPathToRoot(TreeNode aNode)NgetRoot()TreeModelListener[]getTreeModelListeners()voidinsertNodeInto(N newChild, N parent, int index)booleanisLeaf(Object node)voidnodeChanged(TreeNode node)voidnodesChanged(TreeNode node, int[] childIndices)voidnodeStructureChanged(TreeNode node)voidnodesWereInserted(N parent, int[] indices)voidnodesWereRemoved(TreeNode node, int[] childIndices, Object[] removedChildren)voidnodeWereInserted(N parentNode, int childIndice, N node)voidnotifyChildNodesInserted(N node)Notifies that all childs nodes ofnodewere inserted.voidnotifyNodeInserted(N node)Notifies that thenodewas inserted.voidreload(N node)voidremoveNodeFromParent(N node)voidremoveTreeModelListener(TreeModelListener l)voidsetModel(M delegate)voidsetRoot(N node)voidvalueForPathChanged(TreePath path, Object newValue)
-
-
-
Method Detail
-
getModel
M getModel()
-
getRoot
N getRoot()
-
isLeaf
boolean isLeaf(Object node)
-
getChildCount
int getChildCount(Object parent)
-
setModel
void setModel(M delegate)
-
setRoot
void setRoot(N node)
-
removeNodeFromParent
void removeNodeFromParent(N node)
-
reload
void reload(N node)
-
canLoadChild
boolean canLoadChild(N node)
-
nodeStructureChanged
void nodeStructureChanged(TreeNode node)
-
nodeChanged
void nodeChanged(TreeNode node)
-
nodesChanged
void nodesChanged(TreeNode node, int[] childIndices)
-
nodesWereInserted
void nodesWereInserted(N parent, int[] indices)
-
nodesWereRemoved
void nodesWereRemoved(TreeNode node, int[] childIndices, Object[] removedChildren)
-
notifyNodeInserted
void notifyNodeInserted(N node)
Notifies that thenodewas inserted. Note: The method recurses on childs (always notify parent before child)- Parameters:
node- node inserted
-
notifyChildNodesInserted
void notifyChildNodesInserted(N node)
Notifies that all childs nodes ofnodewere inserted. Note: The method recurses on childs (always notify parent before child)- Parameters:
node- node where all childs where inserted
-
addTreeModelListener
void addTreeModelListener(TreeModelListener l)
-
removeTreeModelListener
void removeTreeModelListener(TreeModelListener l)
-
getTreeModelListeners
TreeModelListener[] getTreeModelListeners()
-
getListeners
<T extends EventListener> T[] getListeners(Class<T> listenerType)
-
-