public abstract class ValueHolder extends Object implements Comparable
kiwi.text.FormatConstants
interface); such information can be
useful to tree and table cell renderers, for example.FormatConstants
Modifier and Type | Field and Description |
---|---|
protected int |
subtype
The subtype for the value stored by this holder.
|
Modifier | Constructor and Description |
---|---|
protected |
ValueHolder()
Construct a new
ValueHolder . |
protected |
ValueHolder(int subtype)
Construct a new
ValueHolder with the specified subtype. |
Modifier and Type | Method and Description |
---|---|
abstract int |
compareTo(Object other)
Compare the value in this
ValueHolder to the value in
another ValueHolder . |
int |
getSubtype()
Get the subtype for the value stored by this holder.
|
void |
setSubtype(int subtype)
Set the subtype for the value stored by this holder.
|
protected int subtype
protected ValueHolder()
ValueHolder
.protected ValueHolder(int subtype)
ValueHolder
with the specified subtype.subtype
- The subtype.public abstract int compareTo(Object other)
ValueHolder
to the value in
another ValueHolder
. It is assumed that the two values
are of the same type (hence that the holders are also of the same type).compareTo
in interface Comparable
other
- The ValueHolder
to compare against.-1
if this object is "less than" the other object;
1
if this object is "greater than" the other object, and
0
if the objects are "equal."public void setSubtype(int subtype)
subtype
- The new subtype.public int getSubtype()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses