|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectks.common.model.Element
ks.common.model.MutableInteger
An Integer-like object that can be set and accessed. Creation date: (10/3/01 10:47:21 PM)
Constructor Summary | |
MutableInteger(int i)
MutableInteger constructor comment. |
|
MutableInteger(java.lang.String name,
int i)
MutableInteger constructor comment. |
Method Summary | |
int |
getValue()
Retrieve value. |
void |
increment(int delta)
Increment the value for this entity. |
void |
setValue(int newTheInteger)
Update the value for this entity. |
java.lang.String |
toString()
Return value of Mutable Integer 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 |
public MutableInteger(int i)
public MutableInteger(java.lang.String name, int i)
Method Detail |
public int getValue()
public void setValue(int newTheInteger)
Generates modelChanged action if newValue is different from oldValue
newTheInteger
- intpublic java.lang.String toString()
toString
in class Element
public void increment(int delta)
Generates modelChanged action if newValue is different from oldValue
delta
- the value by which to increment (or decrement if negative).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |