Package ArrayWithGraphics

Source Code of ArrayWithGraphics.Thing

package ArrayWithGraphics;

import ArrayWithGraphics.PersonDN;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import Framework.ImageData;
import Framework.RuntimeProperties;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;

/**
* Thing<p>
* <p>
* @author Generated from Forte
* @since  19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@SuppressWarnings("serial")
public class Thing
        implements Serializable, Observable
{

    // ----------
    // Attributes
    // ----------
    public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
    private String name;
    private ImageData img;
    private PersonDN person;

    // ------------
    // Constructors
    // ------------
    public Thing() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.setPerson(new PersonDN(true, true, true));

    }

    public Thing(ImageData pimg, String pname) {
        this();
        this.setImg( pimg );
        this.setName( pname );
    }

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public void setName(String name) {
        String oldValue = this.name;
        this.name = name;
        this.qq_Listeners.firePropertyChange("name", oldValue, this.name);
    }

    public String getName() {
        return this.name;
    }

    public void setImg(ImageData img) {
        ImageData oldValue = this.img;
        this.img = img;
        this.qq_Listeners.firePropertyChange("img", oldValue, this.img);
    }

    public ImageData getImg() {
        return this.img;
    }

    public void setPerson(PersonDN person) {
        PersonDN oldValue = this.person;
        this.person = person;
        this.qq_Listeners.firePropertyChange("person", oldValue, this.person);
    }

    public PersonDN getPerson() {
        return this.person;
    }

    // -------
    // 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 thing
// c Pass 2 Conversion Time: 31 milliseconds
TOP

Related Classes of ArrayWithGraphics.Thing

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.