FileDocCategorySizeDatePackage
Model.javaAPI DocExample745Sat Mar 20 18:44:36 GMT 2004MVC

Model

public class Model extends Object

Fields Summary
private List
list
List
changeListeners
Constructors Summary
Methods Summary
public voidadd(java.lang.String s)


	    
		list.add(s);
		fireChange();
	
public voidaddChangeListener(javax.swing.event.ChangeListener cl)


	    
		changeListeners.add( cl);
	
protected voidfireChange()

		ChangeEvent evt = new ChangeEvent(this);
		for (int i = 0; i < changeListeners.size(); i++) {
			ChangeListener cl = (ChangeListener)changeListeners.get(i);
			cl.stateChanged(evt);
		}
	
public java.util.ListgetData()

		return list;
	
public voidremoveChangeListener(javax.swing.event.ChangeListener cl)

		changeListeners.remove(cl);