|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.cisban.rod.data.AbstractDataTypeManager
public abstract class AbstractDataTypeManager
An abstract class that contains functions needed for every type of data that can be saved into ROD.
Field Summary | |
---|---|
protected java.util.List<StateSwingWorker> |
currentTasks
Tasks that are in the process of executing in this DataTypeManager. |
protected java.util.List<javax.swing.event.ChangeListener> |
listeners
Listeners that are interested in the changes that happen in this DataTypeManager. |
Constructor Summary | |
---|---|
protected |
AbstractDataTypeManager()
Main constructor. |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Adds change listener. |
void |
cancelCurrentTasks()
cancels all queued tasks for a swingworker. |
boolean |
hasCurrentTask()
Checks if there are 1 or more current tasks queued by a SwingWorker. |
boolean |
hasCurrentTask(long id)
checks by id number for a specific task for a swingworker. |
java.lang.Boolean |
isLoaded(long applicationAppId)
Checks if there are mappings in the DataManager for the given ActionApplication . |
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
removes change listener. |
protected void |
setLoaded(java.lang.Boolean b,
java.lang.Object object)
Sets if the manager has completed its task, and informs all listeners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<javax.swing.event.ChangeListener> listeners
DataManager
.
protected java.util.List<StateSwingWorker> currentTasks
Constructor Detail |
---|
protected AbstractDataTypeManager()
Method Detail |
---|
protected void setLoaded(java.lang.Boolean b, java.lang.Object object)
b
- true if the object is loaded, false if not loaded, null if there is confusionobject
- public java.lang.Boolean isLoaded(long applicationAppId)
ActionApplication
.
applicationAppId
- the DB id
public void addChangeListener(javax.swing.event.ChangeListener listener)
listener
- listener to be added.public void removeChangeListener(javax.swing.event.ChangeListener listener)
listener
- listener to remove.public boolean hasCurrentTask()
public boolean hasCurrentTask(long id)
id
- ID number of task to be searched for.
public void cancelCurrentTasks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |