Examples of task()


Examples of com.webobjects.directtoweb.D2WContext.task()

        }
        EOEntity entity = context.entity();

        if(entity != null) {
            String entityName = entity.name();
            String taskName = context.task();

            if(newPage instanceof EditPageInterface && taskName.equals("edit")) {
                prepareEditPage(context, (EditPageInterface)newPage, entityName);
            } else if(newPage instanceof InspectPageInterface) {
                prepareInspectPage(context, (InspectPageInterface)newPage, entityName);
View Full Code Here

Examples of com.webobjects.directtoweb.D2WContext.task()

     * @return the css classes
     */
    public String cssClassForPageContainerElement() {
        NSMutableArray classes = new NSMutableArray();
        D2WContext d2wContext = d2wContext();
    String task = d2wContext.task();
    String subTask = (String)d2wContext.valueForKey("subTask");
    String elementClassPrefix = ERXStringUtilities.capitalize(task) + "Table";
    classes.addObject(elementClassPrefix);
    if (subTask != null) {
      classes.addObject(ERXStringUtilities.capitalize(task) + ERXStringUtilities.capitalize(subTask) + "Table");
View Full Code Here

Examples of com.webobjects.directtoweb.D2WContext.task()

    public static D2WContext makeSubContextForDynamicPageNamed(String s, WOSession wosession) {
        D2WContext d2wcontext = ERD2WContext.newContext(wosession);
        d2wcontext.setDynamicPage(s);
        // NOTE AK: for whatever reason, when you set a page config
        d2wcontext.setEntity(d2wcontext.entity());
        d2wcontext.setTask(d2wcontext.task());
        d2wcontext.takeValueForKey(D2WModel.One, D2WModel.FrameKey);
        return d2wcontext;
    }

    @Override
View Full Code Here

Examples of com.webobjects.directtoweb.D2WContext.task()

    super(aContext);
  }

  public boolean displayHint() {
    D2WContext d2w = (D2WContext) valueForBinding("d2wContext");  
    String task = d2w.task();

    if("inspect".equals(task) || "edit".equals(task)) {
      return true;
    }
    return false;
View Full Code Here

Examples of com.webobjects.directtoweb.D2WContext.task()

 
  @Override
  public D2WContext d2wContext() {
    D2WContext result = super.d2wContext();
    if (_previousTaskContext == null) {
      _previousTaskContext = result.task();
    } else if (ObjectUtils.notEqual(_previousTaskContext, result.task())) {
      clearTabSectionsContents();
      _previousTaskContext = result.task();
    }
    return super.d2wContext();
View Full Code Here

Examples of com.webobjects.directtoweb.D2WContext.task()

  @Override
  public D2WContext d2wContext() {
    D2WContext result = super.d2wContext();
    if (_previousTaskContext == null) {
      _previousTaskContext = result.task();
    } else if (ObjectUtils.notEqual(_previousTaskContext, result.task())) {
      clearTabSectionsContents();
      _previousTaskContext = result.task();
    }
    return super.d2wContext();
  }
View Full Code Here

Examples of com.webobjects.directtoweb.D2WContext.task()

    D2WContext result = super.d2wContext();
    if (_previousTaskContext == null) {
      _previousTaskContext = result.task();
    } else if (ObjectUtils.notEqual(_previousTaskContext, result.task())) {
      clearTabSectionsContents();
      _previousTaskContext = result.task();
    }
    return super.d2wContext();
  }
}
View Full Code Here

Examples of er.extensions.concurrency.ERXTaskInfo.task()

  }

  public boolean showCancel() {
    boolean show = false;
    ERXTaskInfo taskInfo = loopTaskItem();
    Object task = taskInfo.task();
    if (task instanceof ERXFutureTask) {
      show = ((ERXFutureTask)task).isStoppable();
    } else {
      show = task instanceof IERXStoppable;
    }
View Full Code Here

Examples of er.extensions.concurrency.ERXTaskInfo.task()

   * @return the current task if it implements {@link IERXStoppable}, otherwise returns null.
   */
  private IERXStoppable loopStopTask() {
    IERXStoppable iERXStop = null;
    ERXTaskInfo info = loopTaskItem();
    Object task = info.task();

    if (task instanceof ERXFutureTask) {
      task = ((ERXFutureTask)task).task();
    }
   
View Full Code Here

Examples of erjang.EInternalPID.task()

    };

    // two-way link to new owner
    EInternalPID caller_pid = caller.testInternalPID();
    if (caller_pid != null) {
      caller_pid.task().link_oneway(driver.self_handle());
      driver.link_oneway(caller_pid);
    }
    ERT.run(driver);

    return copy;
View Full Code Here
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.