|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sourceforge.ganttproject.resource.HumanResourceManager
| Constructor Summary | |
HumanResourceManager()
|
|
| Method Summary | |
void |
add(ProjectResource resource)
Adds the resource to the internal list of available resources. |
void |
addView(ResourceView view)
Adds a new view of this manager |
void |
clear()
Removes all resources from the manager. |
ProjectResource |
create(java.lang.String name)
The only thing that must be known when creating a new resource is the name of the resource. |
ProjectResource |
create(java.lang.String name,
int i)
|
ProjectResource |
getById(int id)
Retrieves an ancestor of ProjectResource identified by an identity value. |
java.util.ArrayList |
getResources()
Retrieves a list of all resources available. |
java.util.ArrayList |
load(java.io.InputStream source)
Loads resources from the InputStreamReader. |
void |
remove(ProjectResource resource)
Removes the resource. |
void |
removeById(int id)
Removes the resource by its id. |
void |
save(java.io.OutputStream target)
Writes all resources stored in the OutputStreamWriter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HumanResourceManager()
| Method Detail |
public ProjectResource create(java.lang.String name,
int i)
create in interface ResourceManagerpublic ProjectResource create(java.lang.String name)
ResourceManager
create in interface ResourceManagername - The name of the resource that should be added.
ProjectResourcepublic void add(ProjectResource resource)
ResourceManager
add in interface ResourceManagerresource - The resource that should be added to the list.public ProjectResource getById(int id)
ResourceManager
getById in interface ResourceManagerid - The id is an integer value that is unique for every resource.
ProjectResourcepublic java.util.ArrayList getResources()
ResourceManager
getResources in interface ResourceManagerProjectResourcepublic java.util.ArrayList load(java.io.InputStream source)
ResourceManager
load in interface ResourceManagersource - The InputStreamReader from which the data will be read.
The format and kind of data read is subject of the class
implementing this interface.
public void remove(ProjectResource resource)
ResourceManager
remove in interface ResourceManagerresource - The resource to remove.public void removeById(int id)
ResourceManager
removeById in interface ResourceManagerid - Id of the resource to remove.public void save(java.io.OutputStream target)
ResourceManager
save in interface ResourceManagertarget - Stream to write the data to.public void clear()
ResourceManager
clear in interface ResourceManagerpublic void addView(ResourceView view)
ResourceManager
addView in interface ResourceManagerview -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||