|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jstatcom.model.AbstractJSCData
public abstract class AbstractJSCData
Abstract implementation of JSCData which provides default
functionality for handling the different listeners.
| Constructor Summary | |
|---|---|
AbstractJSCData()
|
|
| Method Summary | |
|---|---|
void |
addJSCDataListener(JSCDataListener evtListener,
JSCDataEventTypes evtType)
Adds a listener that is notified when changes of type evtType occur in this object. |
java.lang.String |
display()
Default implementation that gets a string representing the value stored in this JSCData object. |
java.lang.Object |
getJSCProperty(JSCPropertyTypes type)
Gets the value for a property type. |
void |
removeJSCDataListener(JSCDataListener evtListener)
Removes a JSCDataListener from all different listener
lists. |
void |
removeJSCProperty(JSCPropertyTypes type)
Removes the property value for type. |
void |
setJSCProperty(JSCPropertyTypes type,
java.lang.Object val)
Set the value for a property type. |
java.lang.String |
toString()
Gets a string representation of this JSCData instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.jstatcom.model.JSCData |
|---|
clear, copy, isEmpty, isEqual, name, type, value |
| Constructor Detail |
|---|
public AbstractJSCData()
| Method Detail |
|---|
public java.lang.Object getJSCProperty(JSCPropertyTypes type)
getJSCProperty in interface JSCDatatype - the property type
null if the property has not been set
java.lang.IllegalArgumentException - if (type == null)
public void setJSCProperty(JSCPropertyTypes type,
java.lang.Object val)
setJSCProperty in interface JSCDatatype - the property typeval - the associated property value
java.lang.IllegalArgumentException - if (type == null)public void removeJSCProperty(JSCPropertyTypes type)
JSCDatatype.
removeJSCProperty in interface JSCDatapublic java.lang.String toString()
JSCData instance.
toString in class java.lang.Object
public final void addJSCDataListener(JSCDataListener evtListener,
JSCDataEventTypes evtType)
JSCDataevtType occur in this object. All other events that are
fired by this object are not dispatched to evtListener.
addJSCDataListener in interface JSCDataevtListener - the listener object that gets notified when an event of type
evtType gets firedevtType - the type of event that evtListener wants to
listen toJSCDatapublic java.lang.String display()
JSCData object.
display in interface JSCDataisEmpty == true, otherwise
value().toString()public final void removeJSCDataListener(JSCDataListener evtListener)
JSCDataJSCDataListener from all different listener
lists.
removeJSCDataListener in interface JSCDataevtListener - the listener object to be removedJSCData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||