Exemplo n.º 1
0
 /// <summary>
 /// Caches the records in the prefetch and stripes them with their server-side
 /// index.
 /// </summary>
 /// <param name="records"><p>The records to cache</p>
 /// </param>
 /// <param name="The"><p>associated operation</p>
 /// </param>
 private void cachePage(JsArray<Ext.data.Model> records, Operation The){}
Exemplo n.º 2
0
 /// <summary>
 /// Fires before a prefetch occurs. Return false to cancel.
 /// </summary>
 /// <param name="this">
 /// </param>
 /// <param name="operation"><p>The associated operation</p>
 /// </param>
 /// <param name="eOpts"><p>The options object passed to <see cref="Ext.util.Observable.addListener">Ext.util.Observable.addListener</see>.</p>
 /// </param>
 public void beforeprefetch(Ext.data.Store @this, Operation operation, object eOpts){}
Exemplo n.º 3
0
 /// <summary>
 /// Fires whenever records have been prefetched
 /// </summary>
 /// <param name="this">
 /// </param>
 /// <param name="records"><p>An array of records.</p>
 /// </param>
 /// <param name="successful"><p>True if the operation was successful.</p>
 /// </param>
 /// <param name="operation"><p>The associated operation</p>
 /// </param>
 /// <param name="eOpts"><p>The options object passed to <see cref="Ext.util.Observable.addListener">Ext.util.Observable.addListener</see>.</p>
 /// </param>
 public void prefetch(Ext.data.Store @this, JsArray<Ext.data.Model> records, bool successful, Operation operation, object eOpts){}
 /// <summary>
 /// Caches the records in the prefetch and stripes them with their server-side
 /// index.
 /// @private
 /// @param {Ext.data.Model[]} records The records to cache
 /// @param {Ext.data.Operation} The associated operation
 /// </summary>
 public void cacheRecords(object records, Operation operation){}
Exemplo n.º 5
0
 /// <summary>
 /// Called after the configured proxy completes a prefetch operation.
 /// </summary>
 /// <param name="operation"><p>The operation that completed</p>
 /// </param>
 private void onProxyPrefetch(Operation operation){}
 /// <summary>
 /// In ServerProxy subclasses, the {@link #create}, {@link #read}, {@link #update} and {@link #destroy} methods all
 /// pass through to doRequest. Each ServerProxy subclass must implement the doRequest method - see {@link
 /// Ext.data.proxy.JsonP} and {@link Ext.data.proxy.Ajax} for examples. This method carries the same signature as
 /// each of the methods that delegate to it.
 /// *
 /// @param {Ext.data.Operation} operation The Ext.data.Operation object
 /// @param {Function} callback The callback function to call when the Operation has completed
 /// @param {Object} scope The scope in which to execute the callback
 /// </summary>
 public void doRequest(Operation operation, JsAction callback, object scope){}
 /// <summary>
 /// Sets up an exception on the operation
 /// @private
 /// @param {Ext.data.Operation} operation The operation
 /// @param {Object} response The response
 /// </summary>
 public void setException(Operation operation, object response){}
 /// <summary>
 /// Reads data from the configured {@link #data} object. Uses the Proxy's {@link #reader}, if present.
 /// @param {Ext.data.Operation} operation The read Operation
 /// @param {Function} callback The callback to call when reading has completed
 /// @param {Object} scope The scope to call the callback function in
 /// </summary>
 public void read(Operation operation, JsAction callback, object scope){}
 /// <summary>
 /// Creates and returns an Ext.data.Request object based on the options passed by the {@link Ext.data.Store Store}
 /// that this Proxy is attached to.
 /// @param {Ext.data.Operation} operation The {@link Ext.data.Operation Operation} object to execute
 /// @return {Ext.data.Request} The request object
 /// </summary>
 public Request buildRequest(Operation operation){return null;}
Exemplo n.º 10
0
 /// <summary>
 /// Updates any records when a write is returned from the server.
 /// @private
 /// @param {Ext.data.Model[]} records The array of updated records
 /// @param {Ext.data.Operation} operation The operation that just completed
 /// @param {Boolean} success True if the operation was successful
 /// </summary>
 public void onUpdateRecords(object records, Operation operation, bool success){}
Exemplo n.º 11
0
 /// <summary>
 /// @private
 /// Creates and returns the function that is called when the request has completed. The returned function
 /// should accept a Response object, which contains the response to be read by the configured Reader.
 /// The third argument is the callback that should be called after the request has been completed and the Reader has decoded
 /// the response. This callback will typically be the callback passed by a store, e.g. in proxy.read(operation, theCallback, scope)
 /// theCallback refers to the callback argument received by this function.
 /// See {@link #doRequest} for details.
 /// @param {Ext.data.Request} request The Request object
 /// @param {Ext.data.Operation} operation The Operation being executed
 /// @param {Function} callback The callback function to be called when the request completes. This is usually the callback
 /// passed to doRequest
 /// @param {Object} scope The scope in which to execute the callback function
 /// @return {Function} The callback function
 /// </summary>
 public JsAction createRequestCallback(Request request, Operation operation, JsAction callback, object scope){return null;}
Exemplo n.º 12
0
 /// <summary>
 /// Removes any records when a write is returned from the server.
 /// @private
 /// @param {Ext.data.Model[]} records The array of removed records
 /// @param {Ext.data.Operation} operation The operation that just completed
 /// @param {Boolean} success True if the operation was successful
 /// </summary>
 public void onDestroyRecords(object records, Operation operation, bool success){}
Exemplo n.º 13
0
 /// <summary>
 /// Called after the configured proxy completes a prefetch operation.
 /// @private
 /// @param {Ext.data.Operation} operation The operation that completed
 /// </summary>
 public void onProxyPrefetch(Operation operation){}
 /// <summary>
 /// Removes any records when a write is returned from the server.
 /// </summary>
 /// <param name="records"><p>The array of removed records</p>
 /// </param>
 /// <param name="operation"><p>The operation that just completed</p>
 /// </param>
 /// <param name="success"><p>True if the operation was successful</p>
 /// </param>
 private void onDestroyRecords(JsArray<Ext.data.Model> records, Operation operation, bool success){}
 /// <summary>
 /// Fires whenever a successful write has been made via the configured Proxy
 /// </summary>
 /// <param name="store"><p>This Store</p>
 /// </param>
 /// <param name="operation"><p>The <see cref="Ext.data.Operation">Operation</see> object that was used in
 /// the write</p>
 /// </param>
 /// <param name="eOpts"><p>The options object passed to <see cref="Ext.util.Observable.addListener">Ext.util.Observable.addListener</see>.</p>
 /// </param>
 public void write(Ext.data.Store store, Operation operation, object eOpts){}
 /// <summary>
 /// Fires before a request is made for a new data object. If the beforeload handler returns false the load
 /// action will be canceled.
 /// </summary>
 /// <param name="store"><p>This Store</p>
 /// </param>
 /// <param name="operation"><p>The <see cref="Ext.data.Operation">Ext.data.Operation</see> object that will be passed to the Proxy to
 /// load the Store</p>
 /// </param>
 /// <param name="eOpts"><p>The options object passed to <see cref="Ext.util.Observable.addListener">Ext.util.Observable.addListener</see>.</p>
 /// </param>
 public void beforeload(Ext.data.Store store, Operation operation, object eOpts){}