Package er.reporting.examples

Source Code of er.reporting.examples.Session

package er.reporting.examples;

import com.webobjects.foundation.NSArray;
import com.webobjects.foundation.NSLog;
import com.webobjects.foundation.NSNotification;
import com.webobjects.foundation.NSNotificationCenter;
import com.webobjects.foundation.NSSelector;

import er.extensions.appserver.ERXSession;
import er.grouping.DRReportModel;

// Generated by the WebObjects Wizard
public class Session extends ERXSession  {

    public DRReportModel model;
    public NSArray attribArray;
    public NSArray critArray;
    public boolean reportEditor;

    // Generated by the WebObjects Wizard
    public Session() {
        super();
        //[self setTimeOut:10];
        reportEditor = false;
        Class arrClass [] = {NSNotification.class};
        NSNotificationCenter.defaultCenter().addObserver(this, new NSSelector("synchModel", arrClass), "DRReportModelUpdate", null);
        return;
    }


    public DRReportModel model() {
        return model;
    }
    public void setModel(DRReportModel amodel) {
        model = amodel;
    }


    public void synchModel(NSNotification not) {
        NSLog.out.appendln("Session: synchModel: notification: "+(not));
        if(this.model() != null)
        this.model().setAttributeList(attribArray);
    }


}
TOP

Related Classes of er.reporting.examples.Session

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.