|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractSet java.util.TreeSet org.netbeans.modules.vcscore.versioning.RevisionList
RevisionList is a sorted set of RevisionItem objects.
Can be overriden to provide different Node delegates
createNodeDelegate(org.netbeans.modules.vcscore.versioning.RevisionItem, org.netbeans.modules.vcscore.versioning.RevisionChildren)
, or different children impl.
getChildrenFor(org.netbeans.modules.vcscore.versioning.RevisionItem)
, or both.
Constructor Summary | |
RevisionList()
Creates new RevisionList |
Method Summary | |
boolean |
add(Object obj)
|
boolean |
addAll(Collection c)
|
void |
addChangeListener(ChangeListener listener)
Add a change listener to listen on changes of the content of this list. |
void |
clear()
|
boolean |
containsSubRevisions(RevisionItem revision)
Test whether this list contains any sub-revisions to the given revision. |
protected RevisionChildren |
createChildrenFor(RevisionItem item)
Create the children implementation for the given revision item. |
protected Node |
createNodeDelegate(RevisionItem item,
RevisionChildren children)
Get the node delegate for RevisionItem. |
RevisionChildren |
getChildrenFor(RevisionItem item)
Get the children implementation for the given revision item. |
FileObject |
getFileObject()
|
Node |
getNodeDelegate(RevisionItem item,
RevisionChildren children)
Get the node delegate of the given revision item with given children. |
boolean |
remove(Object obj)
|
boolean |
removeAll(Collection c)
|
boolean |
removeChangeListener(ChangeListener listener)
|
boolean |
removeRevision(String revision)
|
void |
setFileObject(FileObject fo)
|
Methods inherited from class java.util.TreeSet |
clone, comparator, contains, first, headSet, isEmpty, iterator, last, size, subSet, tailSet |
Methods inherited from class java.util.AbstractSet |
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
containsAll, equals, hashCode, retainAll, toArray, toArray |
Constructor Detail |
public RevisionList()
Method Detail |
public final void setFileObject(FileObject fo)
public final FileObject getFileObject()
public boolean add(Object obj)
public boolean addAll(Collection c)
public void clear()
public boolean remove(Object obj)
public boolean removeAll(Collection c)
public final boolean removeRevision(String revision)
public final void addChangeListener(ChangeListener listener)
public final boolean removeChangeListener(ChangeListener listener)
public final boolean containsSubRevisions(RevisionItem revision)
RevisionItem.isDirectSubItemOf(org.netbeans.modules.vcscore.versioning.RevisionItem)
method to decide whether
there is some sub-revision or not.
public final RevisionChildren getChildrenFor(RevisionItem item)
createChildrenFor(org.netbeans.modules.vcscore.versioning.RevisionItem)
method is called to create the children
if necessary.
item
- The revision item to get the children for or
null
when the root children are requested.protected RevisionChildren createChildrenFor(RevisionItem item)
containsSubRevisions(org.netbeans.modules.vcscore.versioning.RevisionItem)
returns true.
The initial children should be returned when null
argument is provided.
Called under a lock on this
.
item
- The revision item to get the children for or
null
when the root children are requested.public final Node getNodeDelegate(RevisionItem item, RevisionChildren children)
getChildrenFor(org.netbeans.modules.vcscore.versioning.RevisionItem)
method.
Uses createNodeDelegate(org.netbeans.modules.vcscore.versioning.RevisionItem, org.netbeans.modules.vcscore.versioning.RevisionChildren)
method to create the node when it
does not exist.
protected Node createNodeDelegate(RevisionItem item, RevisionChildren children)
Called under a lock on this
.
item
- The revision itemchildren
- The children obtained from method.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |