Documentation of 'com.jstatcom.model.AbstractJSCData' Java class
AbstractJSCData
com.jstatcom.model

Class AbstractJSCData

    • Constructor Detail

      • AbstractJSCData

        public AbstractJSCData()
    • Method Detail

      • getJSCProperty

        public java.lang.Object getJSCProperty(JSCPropertyTypes type)
        Gets the value for a property type.
        Specified by:
        getJSCProperty in interface JSCData
        Parameters:
        type - the property type
        Returns:
        the value or null if the property has not been set
        Throws:
        java.lang.IllegalArgumentException - if (type == null)
      • setJSCProperty

        public void setJSCProperty(JSCPropertyTypes type,
                                   java.lang.Object val)
        Set the value for a property type. Values are not serialized. The properties can be used to store runtime information associated with a data object.
        Specified by:
        setJSCProperty in interface JSCData
        Parameters:
        type - the property type
        val - the associated property value
        Throws:
        java.lang.IllegalArgumentException - if (type == null)
      • toString

        public java.lang.String toString()
        Gets a string representation of this JSCData instance.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string with name, type and value information
      • addJSCDataListener

        public final void addJSCDataListener(JSCDataListener evtListener,
                                             JSCDataEventTypes evtType)
        Description copied from interface: JSCData
        Adds a listener that is notified when changes of type evtType occur in this object. All other events that are fired by this object are not dispatched to evtListener.
        Specified by:
        addJSCDataListener in interface JSCData
        Parameters:
        evtListener - the listener object that gets notified when an event of type evtType gets fired
        evtType - the type of event that evtListener wants to listen to
        See Also:
        JSCData
      • display

        public java.lang.String display()
        Default implementation that gets a string representing the value stored in this JSCData object.
        Specified by:
        display in interface JSCData
        Returns:
        "{}" if isEmpty == true, otherwise value().toString()
      • removeJSCDataListener

        public final void removeJSCDataListener(JSCDataListener evtListener)
        Description copied from interface: JSCData
        Removes a JSCDataListener from all different listener lists.
        Specified by:
        removeJSCDataListener in interface JSCData
        Parameters:
        evtListener - the listener object to be removed
        See Also:
        JSCData

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.