|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wilmascope.patterns.Prototype
public abstract class Prototype
Prototype defines a class whose objects may be cloned, such that an instance may be passed to a Factory class and cloned to produce new instances. The idea is that such a Factory class need have no knowledge of the details of the class whose objects it is instantiating. Refer to: "Design Patterns", Gamma, Helm, Jounson and Vlissides, Addison Wesley, 1995
Constructor Summary | |
---|---|
Prototype()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Call the clone method to obtain a new instance of the object. |
java.lang.String |
getTypeName()
return the name of the type as specified by setTypeName(String) |
void |
setTypeName(java.lang.String typeName)
set a name for the type of this View, used for looking up types in the ViewManager |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Prototype()
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getTypeName()
setTypeName(String)
public void setTypeName(java.lang.String typeName)
ViewManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |