Package er.mootools.directtoweb.components

Source Code of er.mootools.directtoweb.components.ERMTD2WEditRelationship

package er.mootools.directtoweb.components;

import com.webobjects.appserver.WOContext;
import com.webobjects.directtoweb.D2WEmbeddedComponent;
import com.webobjects.eocontrol.EOEnterpriseObject;
import com.webobjects.foundation.NSArray;

public class ERMTD2WEditRelationship extends D2WEmbeddedComponent {

  /**
   *  100% based upon ERMDEditRelationship
   *
   * @author jlmiller
   *
   */
  public ERMTD2WEditRelationship(WOContext context) {
        super(context);
    }

  public NSArray<Object> masterObjectAndRelationshipKey() {
      return new NSArray<Object>(new Object[]{masterObject(), relationshipKey()});
    }
   
    @SuppressWarnings("unchecked")
  public void setMasterObjectAndRelationshipKey(NSArray a) {}
   
    public EOEnterpriseObject masterObject() {
      EOEnterpriseObject obj = (EOEnterpriseObject) valueForBinding("masterObject");
      return obj;
    }
   
    public String relationshipKey() {
      String obj = (String) valueForBinding("relationshipKey");
      return obj;
    }


}
TOP

Related Classes of er.mootools.directtoweb.components.ERMTD2WEditRelationship

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.