Package Express.windows

Source Code of Express.windows.LinkInfo

/*
Copyright (c) 2003-2009 ITerative Consulting Pty Ltd. All Rights Reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:

o Redistributions of source code must retain the above copyright notice, this list of conditions and
the following disclaimer.
 
o Redistributions in binary form must reproduce the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with the distribution.
   
o This jcTOOL Helper Class software, whether in binary or source form may not be used within,
or to derive, any other product without the specific prior written permission of the copyright holder

 
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


*/
package Express.windows;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;

import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import Express.services.Array_Of_BusinessClass;
import Express.services.BusinessClass;
import Express.services.BusinessClient;
import Express.services.BusinessQuery;
import Express.windows.interfaces.IApplicationBroker;
import Framework.IntegerData;
import Framework.RuntimeProperties;

/**
* The LinkInfo class encapsulates all information that can be passed between generated windows.
* <p>
* @author ITerative Consulting
* @since  26-Feb-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@SuppressWarnings("serial")
public class LinkInfo
        implements Serializable, Observable
{

    // ----------
    // Attributes
    // ----------
    public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
    private IApplicationBroker appBroker;
    private Object appData;
    private int assocNum;
    private BusinessClient client;
    private int commandInterface;
    private int commandSet;
    private int dataToDisplay;
    private BusinessQuery initialSearch;
    private boolean isAggregateResultSet;
    private boolean isInTestMode;
    private boolean isReadOnlyResultSet;
    private boolean isResultSetModified;
    private String linkName;
    private int linkStyle;
    private int linkType;
    private ExpressClassWindow parentWindow;
    private BusinessClass parentWindowCurrentRecord;
    private IntegerData recordIndex;
    private Array_Of_BusinessClass<BusinessClass> resultSet;
    private TabSequenceMgr tabMgr;
    private int associationMultiplicityMask;

    // ------------
    // Constructors
    // ------------
    public LinkInfo() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();

        this.setCommandInterface(CommandMgr.CI_DEFAULT);
        this.setCommandSet(CommandMgr.CS_DEFAULT);
        this.setDataToDisplay(ExpressClassWindow.DD_DEFAULT);

    }

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public void setAppBroker(IApplicationBroker appBroker) {
        IApplicationBroker oldValue = this.appBroker;
        this.appBroker = appBroker;
        this.qq_Listeners.firePropertyChange("appBroker", oldValue, this.appBroker);
    }

    public IApplicationBroker getAppBroker() {
        return this.appBroker;
    }

    public void setAppData(Object appData) {
        Object oldValue = this.appData;
        this.appData = appData;
        this.qq_Listeners.firePropertyChange("appData", oldValue, this.appData);
    }

    public Object getAppData() {
        return this.appData;
    }

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

    public int getAssocNum() {
        return this.assocNum;
    }

    public void setClient(BusinessClient client) {
        BusinessClient oldValue = this.client;
        this.client = client;
        this.qq_Listeners.firePropertyChange("client", oldValue, this.client);
    }

    public BusinessClient getClient() {
        return this.client;
    }

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

    public int getCommandInterface() {
        return this.commandInterface;
    }

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

    public int getCommandSet() {
        return this.commandSet;
    }

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

    public int getDataToDisplay() {
        return this.dataToDisplay;
    }

    public void setInitialSearch(BusinessQuery initialSearch) {
        BusinessQuery oldValue = this.initialSearch;
        this.initialSearch = initialSearch;
        this.qq_Listeners.firePropertyChange("initialSearch", oldValue, this.initialSearch);
    }

    public BusinessQuery getInitialSearch() {
        return this.initialSearch;
    }

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

    public boolean getIsAggregateResultSet() {
        return this.isAggregateResultSet;
    }

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

    public boolean getIsInTestMode() {
        return this.isInTestMode;
    }

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

    public boolean getIsReadOnlyResultSet() {
        return this.isReadOnlyResultSet;
    }

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

    public boolean getIsResultSetModified() {
        return this.isResultSetModified;
    }

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

    public String getLinkName() {
        return this.linkName;
    }

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

    public int getLinkStyle() {
        return this.linkStyle;
    }

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

    public int getLinkType() {
        return this.linkType;
    }

    public void setParentWindow(ExpressClassWindow parentWindow) {
        ExpressClassWindow oldValue = this.parentWindow;
        this.parentWindow = parentWindow;
        this.qq_Listeners.firePropertyChange("parentWindow", oldValue, this.parentWindow);
    }

    public ExpressClassWindow getParentWindow() {
        return this.parentWindow;
    }

    public void setParentWindowCurrentRecord(BusinessClass parentWindowCurrentRecord) {
        BusinessClass oldValue = this.parentWindowCurrentRecord;
        this.parentWindowCurrentRecord = parentWindowCurrentRecord;
        this.qq_Listeners.firePropertyChange("parentWindowCurrentRecord", oldValue, this.parentWindowCurrentRecord);
    }

    public BusinessClass getParentWindowCurrentRecord() {
        return this.parentWindowCurrentRecord;
    }

    public void setRecordIndex(IntegerData recordIndex) {
        IntegerData oldValue = this.recordIndex;
        this.recordIndex = recordIndex;
        this.qq_Listeners.firePropertyChange("recordIndex", oldValue, this.recordIndex);
    }

    public IntegerData getRecordIndex() {
        return this.recordIndex;
    }

    public void setResultSet(Array_Of_BusinessClass<BusinessClass> resultSet) {
        Array_Of_BusinessClass<BusinessClass> oldValue = this.resultSet;
        this.resultSet = resultSet;
        this.qq_Listeners.firePropertyChange("resultSet", oldValue, this.resultSet);
    }

    public Array_Of_BusinessClass<BusinessClass> getResultSet() {
        return this.resultSet;
    }

    public void setTabMgr(TabSequenceMgr tabMgr) {
        TabSequenceMgr oldValue = this.tabMgr;
        this.tabMgr = tabMgr;
        this.qq_Listeners.firePropertyChange("tabMgr", oldValue, this.tabMgr);
    }

    public TabSequenceMgr getTabMgr() {
        return this.tabMgr;
    }

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

    public int getAssociationMultiplicityMask() {
        return this.associationMultiplicityMask;
    }

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

Related Classes of Express.windows.LinkInfo

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.