Package er.ajax

Examples of er.ajax.AjaxOption$Type


      System.out.println();

      ExprManager em = new ExprManager();
      SmtEngine smt = new SmtEngine(em);

      Type t = em.booleanType();
      Expr a = em.mkVar("a", em.booleanType());
      Expr b = em.mkVar("b", em.booleanType());
      Expr e = new Expr(em.mkExpr(Kind.AND, a, b, new Expr(a).notExpr()));
      System.out.println("==> " + e);
View Full Code Here


     */
    protected NSMutableDictionary createOptions(WOContext context) {
        NSMutableArray ajaxOptionsArray = new NSMutableArray();

        // Standard options from Control.Rating
        ajaxOptionsArray.addObject(new AjaxOption("min", AjaxOption.NUMBER));
        ajaxOptionsArray.addObject(new AjaxOption("max", AjaxOption.NUMBER));
        ajaxOptionsArray.addObject(new AjaxOption("value", AjaxOption.NUMBER));
        ajaxOptionsArray.addObject(new AjaxOption("capture", AjaxOption.BOOLEAN));
        ajaxOptionsArray.addObject(new AjaxOption("classNames", AjaxOption.DICTIONARY));
        ajaxOptionsArray.addObject(new AjaxOption("multiple", AjaxOption.BOOLEAN));
        ajaxOptionsArray.addObject(new AjaxOption("rated", AjaxOption.BOOLEAN));
        ajaxOptionsArray.addObject(new AjaxOption("reverse", AjaxOption.BOOLEAN));
        ajaxOptionsArray.addObject(new AjaxOption("afterChange", AjaxOption.FUNCTION_1));
       
        // updateParameterName is renamed to formValueName to be more WO like
        ajaxOptionsArray.addObject(new AjaxConstantOption("updateParameterName", "formValueName", formValueName(context), AjaxOption.STRING));

        // These parameters are mutually exclusive at present, but dataUpdateUrl could be used with an input if there is a reason for it.
        // I can't think of one right now
        if ( ! actAsInput(context)) {
            ajaxOptionsArray.addObject(new AjaxConstantOption("dataUpdateUrl", AjaxUtils.ajaxComponentActionUrl(context), AjaxOption.STRING));
            ajaxOptionsArray.addObject(new AjaxOption("updateOptions", AjaxOption.DICTIONARY));
        }
        else {
            ajaxOptionsArray.addObject(new AjaxConstantOption("input", id(context) + "_input", AjaxOption.STRING));
        }

View Full Code Here

 
  @SuppressWarnings({ "rawtypes", "unchecked" })
  protected NSMutableDictionary createOptions(WOComponent component) {
     
    NSMutableArray ajaxOptionsArray = new NSMutableArray();
      ajaxOptionsArray.addObject(new AjaxOption("snap", AjaxOption.BOOLEAN));
      ajaxOptionsArray.addObject(new AjaxOption("offset", AjaxOption.NUMBER));
      ajaxOptionsArray.addObject(new AjaxOption("range", AjaxOption.ARRAY));
      ajaxOptionsArray.addObject(new AjaxOption("wheel", AjaxOption.BOOLEAN));
      ajaxOptionsArray.addObject(new AjaxOption("steps", AjaxOption.NUMBER));
      ajaxOptionsArray.addObject(new AjaxOption("mode", AjaxOption.STRING));
      ajaxOptionsArray.addObject(new AjaxOption("onChange", AjaxOption.SCRIPT));
      ajaxOptionsArray.addObject(new AjaxOption("onComplete", AjaxOption.SCRIPT));
      ajaxOptionsArray.addObject(new AjaxOption("onTick", AjaxOption.SCRIPT));
    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations());
    return options;

 
View Full Code Here

 
  @SuppressWarnings({"rawtypes","unchecked"})
  public NSMutableDictionary createAjaxOptions(WOComponent component) {
 
    NSMutableArray ajaxOptionsArray = new NSMutableArray();
    ajaxOptionsArray.addObject(new AjaxOption("observeFieldFrequency", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("observeDelay", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("onCancel", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onComplete", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onException", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onFailure", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onRequest", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onSuccess", AjaxOption.FUNCTION_2));
    ajaxOptionsArray.addObject(new AjaxOption("async", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("evalScripts", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("useSpinner", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("spinnerTarget", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("spinnerOptions", AjaxOption.DICTIONARY));

    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations());
    return options;

  }
View Full Code Here

  @SuppressWarnings({ "rawtypes", "unchecked" })
  public NSDictionary createAjaxOptions() {
   
    NSMutableArray ajaxOptionsArray = new NSMutableArray();
    ajaxOptionsArray.addObject(new AjaxOption("pickerClass", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("toggleElements", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("days", AjaxOption.ARRAY));
    ajaxOptionsArray.addObject(new AjaxOption("dayShort", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("months", AjaxOption.ARRAY));
    ajaxOptionsArray.addObject(new AjaxOption("monthShort", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("startDay", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("timePicker", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("timePickerOnly", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("yearPicker", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("yearsPerPage", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("animationDuration", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("useFadeInOut", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("startView", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("allowEmpty", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("positionOffset", AjaxOption.ARRAY));
    ajaxOptionsArray.addObject(new AjaxOption("minDate", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("maxDate", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("debug", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("onShow", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onClose", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onSelect", AjaxOption.SCRIPT));

    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, this);
    options.takeValueForKey(format(), "format");
    options.takeValueForKey(format(), "inputOutputFormat");
    return options;
View Full Code Here

   
  @SuppressWarnings({ "rawtypes", "unchecked" })
  public NSDictionary createAjaxOptions(WOComponent component) {

    NSMutableArray<AjaxOption> ajaxOptionsArray = new NSMutableArray<AjaxOption>();
    ajaxOptionsArray.addObject(new AjaxOption("async", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("onRequest", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onComplete", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onSuccess", AjaxOption.FUNCTION_2));
    ajaxOptionsArray.addObject(new AjaxOption("onFailure", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onException", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("evalScripts", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("useSpinner", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("spinnerTarget", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("spinnerOptions", AjaxOption.DICTIONARY));
   
    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations());
    options.setObjectForKey("'" + _url + "'", "url");
    options.setObjectForKey("'" + _updateContainerID + "'", "update");
    options.setObjectForKey("'get'", "method");
View Full Code Here

  @SuppressWarnings({ "rawtypes", "unchecked" })
  public NSDictionary createAjaxOptions() {
    NSMutableArray ajaxOptionsArray = new NSMutableArray();

    // PROTOTYPE OPTIONS
    ajaxOptionsArray.addObject(new AjaxOption("grid", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("handle", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("invert", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("limit", AjaxOption.DICTIONARY));
    ajaxOptionsArray.addObject(new AjaxOption("modifiers", AjaxOption.DICTIONARY));
    ajaxOptionsArray.addObject(new AjaxOption("snap", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("style", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("unit", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("preventDefault", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("stopPropagation", AjaxOption.BOOLEAN));
   
    ajaxOptionsArray.addObject(new AjaxOption("container", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("droppables", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("precalculate", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("includeMargins", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("checkDroppables", AjaxOption.BOOLEAN));
   
    ajaxOptionsArray.addObject(new AjaxOption("onBeforeStart", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onStart", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onSnap", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onCancel", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onComplete", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onDrag", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onDrop", AjaxOption.SCRIPT));

    ajaxOptionsArray.addObject(new AjaxOption("onEnter", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onLeave", AjaxOption.SCRIPT));

    ajaxOptionsArray.addObject(new AjaxOption("ghost", Boolean.FALSE, AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("useSpinner", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("spinnerTarget", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("spinnerOptions", AjaxOption.DICTIONARY));

    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, this);
   
    return options;
 
View Full Code Here

  @SuppressWarnings({ "rawtypes", "unchecked" })
  public NSMutableDictionary createAjaxOptions(WOComponent component) {

    NSMutableArray ajaxOptionsArray = new NSMutableArray();
    ajaxOptionsArray.addObject(new AjaxOption("onCancel", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onComplete", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onException", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onFailure", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onRequest", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onSuccess", AjaxOption.FUNCTION_2));
    ajaxOptionsArray.addObject(new AjaxOption("evalScripts", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("async", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("useSpinner", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("spinnerTarget", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("spinnerOptions", AjaxOption.DICTIONARY));

    String name = nameInContext(component.context(), component);
    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations());
    MTAjaxSubmitButton.fillInAjaxOptions(this, component, name, options);
    return options;   
View Full Code Here

 

  @SuppressWarnings({ "unchecked", "rawtypes" })
  public NSDictionary createAjaxOptions() {
    NSMutableArray ajaxOptionsArray = new NSMutableArray();
    ajaxOptionsArray.addObject(new AjaxOption("clone", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("constrain", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("handle", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("onComplete", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onSort", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onStart", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("opacity", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("revert", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("snap", AjaxOption.NUMBER));
    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, this);
    return options;
 
View Full Code Here

  @Override
  @SuppressWarnings("rawtypes")
  public NSDictionary createAjaxOptions(WOComponent component) {

    NSMutableArray<AjaxOption> ajaxOptionsArray = new NSMutableArray<AjaxOption>();
    ajaxOptionsArray.addObject(new AjaxOption("method", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("frequency", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("initialDelay", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("delay", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("limit", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("encoding", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("emulation", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("headers", AjaxOption.ARRAY));
    ajaxOptionsArray.addObject(new AjaxOption("isSuccess", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("evalScripts", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("evalResponse", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("urlEncoded", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("async", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("noCache", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("onRequest", AjaxOption.FUNCTION));
    ajaxOptionsArray.addObject(new AjaxOption("onCancel", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onComplete", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("onSuccess", AjaxOption.FUNCTION_2));
    ajaxOptionsArray.addObject(new AjaxOption("onFailure", AjaxOption.FUNCTION_1));
    ajaxOptionsArray.addObject(new AjaxOption("onException", AjaxOption.FUNCTION_2));
    ajaxOptionsArray.addObject(new AjaxOption("useSpinner", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("spinnerTarget", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("spinnerOptions", AjaxOption.DICTIONARY));

    NSMutableDictionary<String, String> options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations());
    options.setObjectForKey("'get'", "method");
    if (options.objectForKey("evalScripts") == null) {
      options.setObjectForKey("true", "evalScripts");
View Full Code Here

TOP

Related Classes of er.ajax.AjaxOption$Type

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.