Package com.webobjects.directtoweb

Examples of com.webobjects.directtoweb.SelectPageInterface


          } else if (page instanceof ListPageInterface) {
            ListPageInterface lpi = (ListPageInterface) page;
            lpi.setDataSource(ERXEOControlUtilities.dataSourceForArray(ec, entityName, new NSArray(EOUtilities.createAndInsertInstance(ec, entityName))));
            lpi.setNextPage(page);
          } else if (page instanceof SelectPageInterface) {
            SelectPageInterface lpi = (SelectPageInterface) page;
            lpi.setDataSource(ERXEOControlUtilities.dataSourceForArray(ec, entityName, new NSArray(EOUtilities.createAndInsertInstance(ec, entityName))));
          } else if (page instanceof ConfirmPageInterface) {
            ConfirmPageInterface cpi = (ConfirmPageInterface) page;
            // nothing
          } else if (page instanceof QueryPageInterface) {
            QueryPageInterface qpi = (QueryPageInterface) page;
View Full Code Here


    public ERDSelectButton(WOContext context) {
        super(context);
    }

    public WOComponent selectObjectAction() {
        SelectPageInterface parent = parentSelectPage();
        if(parent != null) {
            parent.setSelectedObject(object());
            return nextPageInPage((D2WPage)parent);
        }
        throw new IllegalStateException("This page is not an instance of SelectPageInterface. I can't select here.");
    }
View Full Code Here

  public WOActionResults inspectObjectAction() {
    WOActionResults result = null;
    if (shouldAllowInlineEditing()) {
      EOEditingContext ec = ERXEC.newEditingContext(object().editingContext());
      EOEnterpriseObject localObj = ERXEOControlUtilities.localInstanceOfObject(ec, object());
      SelectPageInterface parent = parentSelectPage();
          if(parent != null) {
            d2wContext().takeValueForKey("inspect", Keys.inlineTask);
              parent.setSelectedObject(localObj);
          } else {
            throw new IllegalStateException("This page is not an instance of SelectPageInterface. I can't select here.");
          }
    } else {
      result = inspectObjectInPageAction();
View Full Code Here

   
  /**
   * Action performed by the select button
   */
    public WOComponent selectObjectAction() {
        SelectPageInterface parent = parentSelectPage();
        if(parent != null) {
            parent.setSelectedObject(object());
            return nextPageInPage((D2WPage)parent);
        }
        throw new IllegalStateException("This page is not an instance of SelectPageInterface. I can't select here.");
    }
View Full Code Here

  public WOComponent editObjectAction() {
    WOComponent result = null;
    if (shouldAllowInlineEditing()) {
        EOEditingContext ec = ERXEC.newEditingContext(object().editingContext());
        EOEnterpriseObject localObj = ERXEOControlUtilities.localInstanceOfObject(ec, object());
        SelectPageInterface parent = parentSelectPage();
          if(parent != null) {
            d2wContext().takeValueForKey("edit", Keys.inlineTask);
              parent.setSelectedObject(localObj);
          } else {
            throw new IllegalStateException("This page is not an instance of SelectPageInterface. I can't select here.");
          }
      } else {
      result = editObjectInPageAction();
View Full Code Here

TOP

Related Classes of com.webobjects.directtoweb.SelectPageInterface

Copyright © 2018 www.massapicom. 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.