|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.value.AbstractValueModel
This class is a base class for default value models.
Field Summary | |
protected com.klg.jclass.util.JCListenerList |
listeners
A list of value listeners who get notified when the value is about to change or has changed. |
protected Object |
value
The value for this value model. |
Constructor Summary | |
AbstractValueModel()
|
Method Summary | |
void |
addValueListener(com.klg.jclass.util.value.JCValueListener listener)
Adds a listener to listen for changes to the value. |
Object |
getValue()
Returns the internal core value. |
abstract Class |
getValueClass()
Returns the type of the core value. |
void |
removeValueListener(com.klg.jclass.util.value.JCValueListener listener)
Removes a listener that listens for changes to the value. |
void |
setValue(Object value)
Sets the internal core value. |
void |
setValue(Object value,
boolean dontProcessEqualValues)
Sets the internal core value but optionally exits before setting the value (after the valueChanging but before the valueChanged event) if the new and old values are equal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Object value
protected com.klg.jclass.util.JCListenerList listeners
Constructor Detail |
public AbstractValueModel()
Method Detail |
public void addValueListener(com.klg.jclass.util.value.JCValueListener listener)
addValueListener
in interface JCValueModel
listener
- The listener to addpublic void removeValueListener(com.klg.jclass.util.value.JCValueListener listener)
removeValueListener
in interface JCValueModel
listener
- The listener to removepublic void setValue(Object value)
setValue
in interface JCValueModel
value
- The new valuepublic void setValue(Object value, boolean dontProcessEqualValues)
setValue
in interface JCValueModel
value
- The new valuedontProcessEqualValues
- If true and the new value is the same object
as the new value, don't send any events (i.e. don't go thru the valueChanging
and valueChanged process).public Object getValue()
getValue
in interface JCValueModel
public abstract Class getValueClass()
getValueClass
in interface JCValueModel
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |