de.phleisch.app.itsucks.job.impl
Class SimpleJobListImpl
java.lang.Object
de.phleisch.app.itsucks.event.impl.SimpleDirectEventSource
de.phleisch.app.itsucks.job.impl.SimpleJobListImpl
- All Implemented Interfaces:
- DirectEventSource, JobList
public class SimpleJobListImpl
- extends SimpleDirectEventSource
- implements JobList
Default implementation of the JobList Interface.
It uses a combination of an Set and a Map to optimize sorting and accessing jobs.
- Author:
- olli
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleJobListImpl
public SimpleJobListImpl()
addJob
public void addJob(Job pJob)
- Specified by:
addJob in interface JobList
removeJob
public boolean removeJob(Job pJob)
- Specified by:
removeJob in interface JobList
clear
public void clear()
- Specified by:
clear in interface JobList
getNextOpenJob
public Job getNextOpenJob()
- Specified by:
getNextOpenJob in interface JobList
getContent
public java.util.Collection<Job> getContent()
- Specified by:
getContent in interface JobList
handleJobChanged
protected void handleJobChanged(Job pJob,
java.beans.PropertyChangeEvent pEvt)
- When a job has changed, the ordering of the list must be refreshed
- Parameters:
pEvt -
size
public int size()
- Specified by:
size in interface JobList
Copyright © 2010. All Rights Reserved.