|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<IIssue>
net.refractions.udig.issues.IssuesList
public class IssuesList
An in-memory issues list. All issues will be lost at shut down unless save()
is
called. This is a useful utility class for implementing other issues list
implementationss. The Datastore issues list (internal implementation) for
example wraps this list and uses it to cache all of its issues.
Notifies listeners when issues are added or removed from list.
Field Summary | |
---|---|
java.util.Collection<IIssuesListListener> |
listeners
This is public for tesing purposes only!!!! |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
IssuesList()
|
Method Summary | |
---|---|
boolean |
add(IIssue o)
|
void |
add(int index,
IIssue element)
|
boolean |
addAll(java.util.Collection<? extends IIssue> c)
|
boolean |
addAll(int index,
java.util.Collection<? extends IIssue> c)
|
void |
addFirst(IIssue o)
|
void |
addLast(IIssue o)
|
void |
addListener(IIssuesListListener listener)
Add Listener to list |
void |
clear()
|
java.lang.String |
getExtensionID()
Returns The extension id of the list as defined in a plugin.xml file. |
java.util.Set<java.lang.String> |
getGroups()
Returns a set of all the issue groups that are in the list. |
java.util.List<IIssue> |
getIssues(java.lang.String groupId)
Gets the all issues with the groupID |
java.util.ListIterator<IIssue> |
listIterator(int index)
|
void |
load()
Loads the issues list from the .issues.xml file in the workspace |
protected void |
notify(java.util.Collection<? extends IIssue> changed,
IssuesListEventType type)
|
void |
notify(IIssue changed,
IssuesListEventType type)
Notify listeners of a change to the list. |
IIssue |
remove()
|
IIssue |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection<?> c)
|
IIssue |
removeFirst()
|
void |
removeIssues(java.lang.String groupId)
Remove all issues in the group. |
IIssue |
removeLast()
|
void |
removeListener(IIssuesListListener listener)
Remove listener from list |
boolean |
retainAll(java.util.Collection<?> c)
|
void |
save()
Saves the issues list to the .issues.xml file in the workspace |
IIssue |
set(int index,
IIssue element)
|
void |
setNotify(boolean notifyListeners)
Sets it so that adds and removes will not raise notifications. |
int |
size()
|
Methods inherited from class java.util.AbstractSequentialList |
---|
get, iterator |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
contains, containsAll, isEmpty, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, subList, toArray, toArray |
Field Detail |
---|
public java.util.Collection<IIssuesListListener> listeners
Constructor Detail |
---|
public IssuesList()
Method Detail |
---|
public boolean add(IIssue o)
add
in interface java.util.Collection<IIssue>
add
in interface java.util.List<IIssue>
add
in class java.util.AbstractList<IIssue>
public void add(int index, IIssue element)
add
in interface java.util.List<IIssue>
add
in class java.util.AbstractSequentialList<IIssue>
public boolean addAll(java.util.Collection<? extends IIssue> c)
addAll
in interface java.util.Collection<IIssue>
addAll
in interface java.util.List<IIssue>
addAll
in class java.util.AbstractCollection<IIssue>
public boolean addAll(int index, java.util.Collection<? extends IIssue> c)
addAll
in interface java.util.List<IIssue>
addAll
in class java.util.AbstractSequentialList<IIssue>
public void addFirst(IIssue o)
public void addLast(IIssue o)
public IIssue remove()
public IIssue remove(int index)
remove
in interface java.util.List<IIssue>
remove
in class java.util.AbstractSequentialList<IIssue>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<IIssue>
remove
in interface java.util.List<IIssue>
remove
in class java.util.AbstractCollection<IIssue>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<IIssue>
removeAll
in interface java.util.List<IIssue>
removeAll
in class java.util.AbstractCollection<IIssue>
public IIssue removeFirst()
public IIssue removeLast()
public IIssue set(int index, IIssue element)
set
in interface java.util.List<IIssue>
set
in class java.util.AbstractSequentialList<IIssue>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<IIssue>
retainAll
in interface java.util.List<IIssue>
retainAll
in class java.util.AbstractCollection<IIssue>
public void clear()
clear
in interface java.util.Collection<IIssue>
clear
in interface java.util.List<IIssue>
clear
in class java.util.AbstractList<IIssue>
public void addListener(IIssuesListListener listener)
IIssuesList
addListener
in interface IIssuesList
listener
- listener to addpublic void removeListener(IIssuesListListener listener)
IIssuesList
removeListener
in interface IIssuesList
listener
- listener to removeprotected void notify(java.util.Collection<? extends IIssue> changed, IssuesListEventType type)
public void notify(IIssue changed, IssuesListEventType type)
changed
- issue that has changed.type
- Type of change.public java.util.Set<java.lang.String> getGroups()
IIssuesList
getGroups
in interface IIssuesList
public java.util.List<IIssue> getIssues(java.lang.String groupId)
IIssuesList
getIssues
in interface IIssuesList
groupId
- groupId of a group of issues
public void removeIssues(java.lang.String groupId)
IIssuesList
removeIssues
in interface IIssuesList
groupId
- group id of issues to removepublic java.util.ListIterator<IIssue> listIterator(int index)
listIterator
in interface java.util.List<IIssue>
listIterator
in class java.util.AbstractSequentialList<IIssue>
public int size()
size
in interface java.util.Collection<IIssue>
size
in interface java.util.List<IIssue>
size
in class java.util.AbstractCollection<IIssue>
public java.lang.String getExtensionID()
IIssuesList
getExtensionID
in interface IIssuesList
public void setNotify(boolean notifyListeners)
notifyListeners
- true if notifications should be sentpublic void load()
public void save()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |