|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectL20_pkg.PolkaDotDataModel
public class PolkaDotDataModel
This class encapsulates a data model of a collection of polka dots. Duplicate polka dots are permitted.
Constructor Summary | |
---|---|
PolkaDotDataModel()
Creates a collection and initialized it with three polka dots |
Method Summary | |
---|---|
void |
addDot(PolkaDot theDot)
Add the passed polka dot to this collection. |
void |
addListener(ModelListener listener)
Add a listener to this model. |
java.util.List<PolkaDot> |
getDots()
Return this collection as a List of PolkaDot objects. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolkaDotDataModel()
Method Detail |
---|
public void addListener(ModelListener listener)
listener
- public java.util.List<PolkaDot> getDots()
public void addDot(PolkaDot theDot)
theDot
- a non-null Polka Dot object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |