public abstract class TextSupplier
extends java.util.Observable
Constructor and Description |
---|
TextSupplier(java.lang.String name)
Constructs a simple TextSupplier by giving it a name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the named object.
|
java.lang.String |
getQuotedName()
Returns the quoted name of the named object.
|
void |
notifyStatistics(java.lang.Object arg)
Indicates that this TextSupplier (as an Observable) has changed and
notifies all its observers of this change providing the modified text as
parameter.
|
void |
rename(java.lang.String newName)
Changes the name of the named object.
|
abstract java.lang.String |
text()
When using the Pull-Model or the automatic update function this method
must be overridden by the user in a way that it provides the text (as a
|
java.lang.String |
toString()
Overrides the java.lang.Object's toString method to return the named
object's name when given as parameter to a method that expects a string
to be passed.
|
public TextSupplier(java.lang.String name)
public java.lang.String getName()
public java.lang.String getQuotedName()
public void notifyStatistics(java.lang.Object arg)
arg
- Object : The Object wrapping the text with which the
observers will be updated.public void rename(java.lang.String newName)
newName
- java.lang.String : The new name for the named object.public abstract java.lang.String text()
public java.lang.String toString()
toString
in class java.lang.Object