|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.fractal.gui.UserDataStorage
| Nested Class Summary | |
|---|---|
class |
UserDataStorage.UFProject
|
| Nested classes inherited from class org.objectweb.fractal.gui.UserData |
|---|
UserData.FProject |
| Field Summary |
|---|
| Fields inherited from interface org.objectweb.fractal.gui.UserData |
|---|
CURRENT_CONFIG, CURRENT_DEPTH, CURRENT_HEIGHT, CURRENT_WIDTH, LAST_EXEC_DIR, LAST_OPEN_CONF, LAST_OPEN_DIR, LAST_OPEN_FILE, LAST_SAVE_DIR, LAST_SAVE_FILE, MODIFIED, NB_DIR, NO_MODIFIED, START_INDEX |
| Constructor Summary | |
|---|---|
UserDataStorage()
|
|
| Method Summary | |
|---|---|
void |
addProject(UserData.FProject proj)
Adds a new FProject to the project list. |
void |
clean()
Clean the user's data |
int |
getIntData(int typ)
get the int value for a given type. |
UserData.FProject |
getNewProject()
Asks for a new FProject. |
UserData.FProject |
getProject(int id)
Adds a new FProject to the project list. |
java.lang.String |
getStringData(int typ)
get the int value for a given type. |
void |
open()
Open the file which contains all registered User Data. |
boolean |
projectExists(int id)
Adds a new FProject to the project list. |
void |
removeProject(int id)
Removes the FProject with specified id from the project list. |
void |
save()
Save all registered data in the file of the user. |
void |
setIntData(int typ,
int v)
set the value for a given type. |
void |
setStringData(int typ,
java.lang.String s)
set the value for a given type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UserDataStorage()
| Method Detail |
public void open()
open in interface UserDatapublic void clean()
clean in interface UserDatapublic void save()
save in interface UserData
public void setIntData(int typ,
int v)
throws java.lang.Exception
setIntData in interface UserDatatyp - is the Data type.v - is the int value for the type.
java.lang.Exception
public int getIntData(int typ)
throws java.lang.Exception
getIntData in interface UserDatatyp - is the Data type.
java.lang.Exception
public void setStringData(int typ,
java.lang.String s)
throws java.lang.Exception
setStringData in interface UserDatatyp - is the Data type.s - is the String value for the type.
java.lang.Exception
public java.lang.String getStringData(int typ)
throws java.lang.Exception
getStringData in interface UserDatatyp - is the Data type.
java.lang.Exceptionpublic boolean projectExists(int id)
projectExists in interface UserDataid - is the Data type.
public void addProject(UserData.FProject proj)
throws java.lang.Exception
addProject in interface UserDataproj - is the FProject to add.
java.lang.Exceptionpublic void removeProject(int id)
removeProject in interface UserDataid - is the FProject id to remove.public UserData.FProject getProject(int id)
getProject in interface UserDataid - is the FProject identifier.
public UserData.FProject getNewProject()
getNewProject in interface UserData
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||