|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.annotation.wordfreak.AbstractAnnotationView
Field Summary | |
protected SelectionMode |
selectionMode
Specifies what type of selections are valid for this view. |
protected SortedAnnotations |
sort
Sorted version of filt based on comparator. |
protected java.util.List |
treeDataListeners
|
Constructor Summary | |
AbstractAnnotationView()
|
Method Summary | |
void |
addTreeModelListener(javax.swing.event.TreeModelListener tml)
|
void |
close()
Does any clean up that needs to happen before the view goes away |
void |
fireTreeNodesChanged(Annotation parent,
Annotation[] changelings)
Used to notify listener that the nodes specificed as changelings have been changed and their parent is node is specified by parent. |
void |
fireTreeNodesInserted(Annotation parent,
Annotation[] insertions)
Used to notify listener that the nodes specificed as insertions have been inserted under the specified parent. |
void |
fireTreeNodesMoved(Annotation[] children,
Annotation oldParent,
Annotation newParent)
Used to notify listener that the nodes specificed as children have been moved from oldParent to newParent. |
void |
fireTreeNodesRemoved(Annotation parent,
Annotation[] deletions)
Used to notify listener that the nodes specificed as deletions have been deleted under the specified parent. |
void |
fireTreeStructureChanged(Annotation a)
Used to notify listener that the structure under the specified node has changed substantually. |
java.lang.Object |
getFirstLeaf(java.lang.Object parent)
Returns the left-most leaf child of the specified start node. |
java.lang.Object |
getLastLeaf(java.lang.Object parent)
Returns the right-most leaf child of the specified start node. |
java.lang.Object |
getParent(java.lang.Object node)
Returns the parent of the specified node. |
SelectionMode |
getSelectionMode()
Returns the types of selection which are valid. |
SortedAnnotations |
getSortedAnnotations()
Returns the object which manages sorted annotations. |
abstract AnnotationSource |
getSource()
Returns the source data associated with the file for this view. |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener tml)
|
void |
setSelectionMode(SelectionMode sm)
Specified what types of selection are valid. |
abstract void |
update(Annotation a)
Indicates that the specified annotation has been changed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.tree.TreeModel |
getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, valueForPathChanged |
Field Detail |
protected SelectionMode selectionMode
protected java.util.List treeDataListeners
protected SortedAnnotations sort
Constructor Detail |
public AbstractAnnotationView()
Method Detail |
public void close()
AnnotationView
close
in interface AnnotationView
public SortedAnnotations getSortedAnnotations()
AnnotationView
getSortedAnnotations
in interface AnnotationView
public java.lang.Object getParent(java.lang.Object node)
AnnotationView
getParent
in interface AnnotationView
node
- The node whose parent is being requested.
public java.lang.Object getFirstLeaf(java.lang.Object parent)
AnnotationView
getFirstLeaf
in interface AnnotationView
parent
- The node at which to begin the search.
public java.lang.Object getLastLeaf(java.lang.Object parent)
AnnotationView
getLastLeaf
in interface AnnotationView
parent
- The node at which to begin the search.
public void setSelectionMode(SelectionMode sm)
AnnotationView
setSelectionMode
in interface AnnotationView
sm
- The types of selection which are valid.public SelectionMode getSelectionMode()
AnnotationView
getSelectionMode
in interface AnnotationView
public abstract AnnotationSource getSource()
AnnotationView
getSource
in interface AnnotationView
public abstract void update(Annotation a)
AnnotationView
update
in interface AnnotationView
a
- The annotation which needs to be updated.public void addTreeModelListener(javax.swing.event.TreeModelListener tml)
addTreeModelListener
in interface javax.swing.tree.TreeModel
public void removeTreeModelListener(javax.swing.event.TreeModelListener tml)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
public void fireTreeNodesChanged(Annotation parent, Annotation[] changelings)
parent
- changelings
- public void fireTreeNodesInserted(Annotation parent, Annotation[] insertions)
parent
- The parent of the nodes being inserted.insertions
- The nodes that are being inserted.public void fireTreeNodesMoved(Annotation[] children, Annotation oldParent, Annotation newParent)
children
- The nodes being moved.oldParent
- The old parent of the moved nodes.newParent
- The new parent of the moved nodes.public void fireTreeNodesRemoved(Annotation parent, Annotation[] deletions)
parent
- The parent of the nodes being deleted.deletions
- The nodes that are being deleted.public void fireTreeStructureChanged(Annotation a)
a
- The specified node.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |