Package Express.windows

Source Code of Express.windows.GeneralCacheElement

package Express.windows;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;

import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import Framework.DataValue;
import Framework.RuntimeProperties;

/**
* This class appears in the project, but is for internal use only and is not documented. <p>
* <p>
* @author ITerative Consulting
* @since  26-Feb-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@SuppressWarnings("serial")
public class GeneralCacheElement
        implements Serializable, Observable
{

    // ----------
    // Attributes
    // ----------
    public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
    private DataValue elementKey;
    private DataValue elementValue;

    // ------------
    // Constructors
    // ------------
    public GeneralCacheElement() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.elementKey = null;
        this.elementValue = null;
    }

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public void setElementKey(DataValue elementKey) {
        DataValue oldValue = this.elementKey;
        this.elementKey = elementKey;
        this.qq_Listeners.firePropertyChange("elementKey", oldValue, this.elementKey);
    }

    public DataValue getElementKey() {
        return this.elementKey;
    }

    public void setElementValue(DataValue elementValue) {
        DataValue oldValue = this.elementValue;
        this.elementValue = elementValue;
        this.qq_Listeners.firePropertyChange("elementValue", oldValue, this.elementValue);
    }

    public DataValue getElementValue() {
        return this.elementValue;
    }

    // -------
    // Methods
    // -------
    public void addPropertyChangeListener(String property, PropertyChangeListener listener) {
        qq_Listeners.addPropertyChangeListener(property, listener);
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        qq_Listeners.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(String property, PropertyChangeListener listener) {
        qq_Listeners.removePropertyChangeListener(property, listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        qq_Listeners.removePropertyChangeListener(listener);
    }
// end class GeneralCacheElement
// c Pass 2 Conversion Time: 31 milliseconds
TOP

Related Classes of Express.windows.GeneralCacheElement

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.