Package entities

Source Code of entities.Bra

package entities;

import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import Framework.DateTimeNullable;
import Framework.DecimalNullable;
import Framework.RuntimeProperties;
import Framework.TextData;
import entities.Supplier;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;

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

    // ----------
    // Attributes
    // ----------
    public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
    private int color;
    private double cost;
    private String description;
    private boolean frontHook;
    private DecimalNullable markup;
    private String name;
    private DateTimeNullable sold;
    private TextData store;
    private int style;
    private Supplier supplier;

    // ------------
    // Constructors
    // ------------
    public Bra() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.setSupplier(new Supplier());
        this.setMarkup(new DecimalNullable());

    }

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

    public int getColor() {
        return this.color;
    }

    public void setCost(double cost) {
        double oldValue = this.cost;
        this.cost = cost;
        this.qq_Listeners.firePropertyChange("cost", new Double(oldValue), new Double(this.cost));
    }

    public double getCost() {
        return this.cost;
    }

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

    public String getDescription() {
        return this.description;
    }

    public void setFrontHook(boolean frontHook) {
        boolean oldValue = this.frontHook;
        this.frontHook = frontHook;
        this.qq_Listeners.firePropertyChange("frontHook", oldValue, this.frontHook);
    }

    public boolean getFrontHook() {
        return this.frontHook;
    }

    public void setMarkup(DecimalNullable markup) {
        DecimalNullable oldValue = this.markup;
        this.markup = markup;
        this.qq_Listeners.firePropertyChange("markup", oldValue, this.markup);
    }

    public DecimalNullable getMarkup() {
        return this.markup;
    }

    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 setSold(DateTimeNullable sold) {
        DateTimeNullable oldValue = this.sold;
        this.sold = sold;
        this.qq_Listeners.firePropertyChange("sold", oldValue, this.sold);
    }

    public DateTimeNullable getSold() {
        return this.sold;
    }

    public void setStore(TextData store) {
        TextData oldValue = this.store;
        this.store = store;
        this.qq_Listeners.firePropertyChange("store", oldValue, this.store);
    }

    public TextData getStore() {
        return this.store;
    }

    public void setStyle(int style) {
        int oldValue = this.style;
        this.style = style;
        this.qq_Listeners.firePropertyChange("style", oldValue, this.style);
    }

    public int getStyle() {
        return this.style;
    }

    public void setSupplier(Supplier supplier) {
        Supplier oldValue = this.supplier;
        this.supplier = supplier;
        this.qq_Listeners.firePropertyChange("supplier", oldValue, this.supplier);
    }

    public Supplier getSupplier() {
        return this.supplier;
    }

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

Related Classes of entities.Bra

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.