com.mtp.model
Class DefaultStringModel

java.lang.Object
  |
  +--com.mtp.model.DefaultStringModel
All Implemented Interfaces:
StringModel

public class DefaultStringModel
extends Object
implements StringModel

Models a String.

Author:
Matthew Pekar

Field Summary
protected  Listeners listeners
           
protected  String string
           
 
Fields inherited from interface com.mtp.model.StringModel
STRING_CHANGED
 
Constructor Summary
DefaultStringModel()
           
DefaultStringModel(String s)
           
 
Method Summary
 void addListener(StringModelListener l)
           
protected  void fireChange()
           
 String getString()
           
 void removeListener(StringModelListener l)
           
 void setString(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

string

protected String string

listeners

protected Listeners listeners
Constructor Detail

DefaultStringModel

public DefaultStringModel()

DefaultStringModel

public DefaultStringModel(String s)
Method Detail

getString

public String getString()
Specified by:
getString in interface StringModel

setString

public void setString(String s)
Specified by:
setString in interface StringModel

addListener

public void addListener(StringModelListener l)
Specified by:
addListener in interface StringModel

removeListener

public void removeListener(StringModelListener l)
Specified by:
removeListener in interface StringModel

fireChange

protected void fireChange()


Copyright © 2002 Matthew Pekar. All Rights Reserved.