|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jstatcom.project.ProjectDataManager
public final class ProjectDataManager
Singleton mediator class for managing setting and getting of all project data
to and from the respective handlers. All instances of
ProjectDataHandler
must register with this class at program
start.
Method Summary | |
---|---|
static ProjectDataManager |
getInstance()
Gets the singleton instance of this class. |
ProjectData[] |
getProjectData()
Gets an array with all project data from the data handlers that have been registered with this manager. |
void |
register(ProjectDataHandler handler)
Registers a project data handler with this manager class. |
void |
setProjectData(ProjectData data)
Sets the project data to the respective handler. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ProjectDataManager getInstance()
public void setProjectData(ProjectData data)
data
- the project data to set
java.lang.IllegalArgumentException
- if (data == null)
public ProjectData[] getProjectData()
public void register(ProjectDataHandler handler)
ProjectDataTypes
.
handler
- data handler object that should take part in the project
management system
java.lang.IllegalArgumentException
- if (handler == null)
java.lang.IllegalStateException
- if another listener has already been registered for the same
project data type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |