|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectObservable
visualmodeler.UserModel
UserModel stores and creates the user objects
Constructor Summary | |
UserModel()
Allocates a new UserModel object |
Method Summary | |
void |
createUser(int num,
boolean random)
Creates a given number of grid users |
String |
generateCode(String indent)
Generates a Java code regarding to grid users |
Vector |
getAllUserName()
Gets all grid user names |
int |
getTotalUser()
Gets the total number of grid users |
int |
getUserCounter()
Gets the grid user counter |
boolean |
hasChanged()
Checks whether the properties of grid user has changed or not |
void |
loadXml(org.w3c.dom.NodeList nodeList)
Loads a XML code regarding to grid users |
void |
newValue()
Deletes all existing values and starts fresh |
void |
removeAllUser()
Removes all grid users |
void |
removeUser(int index)
Remoes a grid user at a given location in a data structure |
String |
saveFile(String indent)
Generates a XML code regarding to grid users |
void |
showProperty(int index)
Shows the dialog properties of a given grid user |
void |
showProperty(String value)
Shows the dialog properties of a given grid user |
Methods inherited from class Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, notifyObservers, notifyObservers, setChanged |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserModel()
Method Detail |
public Vector getAllUserName()
public int getUserCounter()
public int getTotalUser()
public void createUser(int num, boolean random)
num
- how many grid users to be createdrandom
- a flag to indicate whether random values are needed or
notpublic void removeAllUser()
public void removeUser(int index)
index
- location in a data structurepublic void showProperty(int index)
index
- location in a data structurepublic void showProperty(String value)
value
- a grid user namepublic String generateCode(String indent)
indent
- indentation
public String saveFile(String indent)
indent
- indentation
public boolean hasChanged()
public void newValue()
public void loadXml(org.w3c.dom.NodeList nodeList) throws Exception
nodeList
- a NodeList object
Exception
- if error occurs on reading or parsing XML code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |