Package ArrayWithGrid

Source Code of ArrayWithGrid.Helicopter

package ArrayWithGrid;

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

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

    // ----------
    // Attributes
    // ----------
    public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
    private int blades;
    private String make;
    private String model;
    private Engine engine;

    // ------------
    // Constructors
    // ------------
    public Helicopter() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.setEngine(new Engine());

    }

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public void setBlades(int blades) {
        int oldValue = this.blades;
        this.blades = blades;
        this.qq_Listeners.firePropertyChange("blades", oldValue, this.blades);
    }

    public int getBlades() {
        return this.blades;
    }

    public void setMake(String make) {
        String oldValue = this.make;
        this.make = make;
        this.qq_Listeners.firePropertyChange("make", oldValue, this.make);
    }

    public String getMake() {
        return this.make;
    }

    public void setModel(String model) {
        String oldValue = this.model;
        this.model = model;
        this.qq_Listeners.firePropertyChange("model", oldValue, this.model);
    }

    public String getModel() {
        return this.model;
    }

    public void setEngine(Engine engine) {
        Engine oldValue = this.engine;
        this.engine = engine;
        this.qq_Listeners.firePropertyChange("engine", oldValue, this.engine);
    }

    public Engine getEngine() {
        return this.engine;
    }

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

Related Classes of ArrayWithGrid.Helicopter

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.