ks.common.model
Class MutableString

java.lang.Object
  extended byks.common.model.Element
      extended byks.common.model.MutableString

public class MutableString
extends Element

A String-like object that can be set and accessed.


Constructor Summary
MutableString(java.lang.String s)
          MutableInteger constructor comment.
MutableString(java.lang.String name, java.lang.String value)
          MutableInteger constructor comment.
 
Method Summary
 java.lang.String getValue()
          Retrieve value.
 void setValue(java.lang.String newString)
          Update the value for this entity.
 java.lang.String toString()
          Return value of Mutable String together with its Parent's toString().
 
Methods inherited from class ks.common.model.Element
getListener, getName, setListener, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableString

public MutableString(java.lang.String s)
MutableInteger constructor comment.


MutableString

public MutableString(java.lang.String name,
                     java.lang.String value)
MutableInteger constructor comment.

Since:
V1.6.8
Method Detail

getValue

public java.lang.String getValue()
Retrieve value.

Returns:
String

setValue

public void setValue(java.lang.String newString)
Update the value for this entity.

Generates modelChanged action if newValue is different from oldValue.

There is no effect if newString is null.

Parameters:
newString - String

toString

public java.lang.String toString()
Return value of Mutable String together with its Parent's toString().

Overrides:
toString in class Element
Returns:
java.lang.String