All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.mvc.stepcontrol.model.AspectExecutionModel Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
package org.bidib.wizard.mvc.stepcontrol.model;

import org.bidib.jbidibc.messages.AccessoryState;
import org.bidib.jbidibc.messages.enums.AccessoryExecutionState;

import com.jgoodies.binding.beans.Model;

public class AspectExecutionModel extends Model {

    private static final long serialVersionUID = 1L;

    public static final String PROPERTY_ACCESSORY_ID = "accessoryId";

    public static final String PROPERTY_ASPECT_ID = "aspectId";

    public static final String PROPERTY_EXECUTION_STATE = "executionState";

    public static final String PROPERTY_ACCESSORY_STATE = "accessoryState";

    private Integer accessoryId;

    private Integer aspectId;

    private AccessoryExecutionState executionState;

    private AccessoryState accessoryState;

    /**
     * @return the accessoryId
     */
    public Integer getAccessoryId() {
        return accessoryId;
    }

    /**
     * @param accessoryId
     *            the accessoryId to set
     */
    public void setAccessoryId(Integer accessoryId) {
        Integer oldValue = this.accessoryId;
        this.accessoryId = accessoryId;

        firePropertyChange(PROPERTY_ACCESSORY_ID, oldValue, accessoryId);
    }

    /**
     * @return the aspectId
     */
    public Integer getAspectId() {
        return aspectId;
    }

    /**
     * @param aspectId
     *            the aspectId to set
     */
    public void setAspectId(Integer aspectId) {
        Integer oldValue = this.aspectId;
        this.aspectId = aspectId;

        firePropertyChange(PROPERTY_ASPECT_ID, oldValue, aspectId);
    }

    /**
     * @return the executionState
     */
    public AccessoryExecutionState getExecutionState() {
        return executionState;
    }

    /**
     * @param executionState
     *            the executionState to set
     */
    public void setExecutionState(AccessoryExecutionState executionState) {
        AccessoryExecutionState oldValue = this.executionState;
        this.executionState = executionState;

        firePropertyChange(PROPERTY_EXECUTION_STATE, oldValue, executionState);
    }

    /**
     * @return the accessoryState
     */
    public AccessoryState getAccessoryState() {
        return accessoryState;
    }

    /**
     * @param accessoryState
     *            the accessoryState to set
     */
    public void setAccessoryState(AccessoryState accessoryState) {
        AccessoryState oldValue = this.accessoryState;
        this.accessoryState = accessoryState;

        firePropertyChange(PROPERTY_ACCESSORY_STATE, oldValue, accessoryState);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy