super.appendToResponse(response, context);
}
@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;