Package entities

Source Code of entities.Supplier

package entities;

import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import Framework.RuntimeProperties;
import entities.Address;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;

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

    // ----------
    // Attributes
    // ----------
    public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
    private Address address;
    private String name;
    private String phone;

    // ------------
    // Constructors
    // ------------
    public Supplier() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.setAddress(new Address());

    }

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public void setAddress(Address address) {
        Address oldValue = this.address;
        this.address = address;
        this.qq_Listeners.firePropertyChange("address", oldValue, this.address);
    }

    public Address getAddress() {
        return this.address;
    }

    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 setPhone(String phone) {
        String oldValue = this.phone;
        this.phone = phone;
        this.qq_Listeners.firePropertyChange("phone", oldValue, this.phone);
    }

    public String getPhone() {
        return this.phone;
    }

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

Related Classes of entities.Supplier

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.