|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectks.common.model.Model
Every Solitaire class must construct a model containing various elements.
This class provides a means to manage and locate model elements. As such, it can be viewed as a "container" for model elements.
Creation date: (10/21/01 4:40:34 PM)
| Constructor Summary | |
Model()
Model Constructor |
|
| Method Summary | |
boolean |
addElement(Element e)
Adds a new Model Element to set of Elements. |
java.util.Enumeration |
elements()
Return an Enumeration of Model Elements. |
Element |
getElement(java.lang.String name)
Return Model Element with the given name from set. |
void |
removeAllElements()
Removes all Model Elements from set. |
void |
removeElement(Element e)
Removes a new Model Element from set. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Model()
| Method Detail |
public boolean addElement(Element e)
Throws IllegalArgumentException if null object passed in.
e - The Element to be added to the model.
public java.util.Enumeration elements()
Element objects.public Element getElement(java.lang.String name)
If name is null, then null is returned.
name - the String desired name.
public void removeAllElements()
public void removeElement(Element e)
e - the Element to be removed from the set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||