@@ -313,6 +313,14 @@ public T id(View view){
313
313
return self ();
314
314
}
315
315
316
+
317
+ /**
318
+ * Points the current operating view to the specified view with tag.
319
+ *
320
+ * @param tag
321
+ * @return self
322
+ */
323
+
316
324
public T id (String tag ){
317
325
return id (findView (tag ));
318
326
}
@@ -411,6 +419,12 @@ public T policy(int cachePolicy){
411
419
return self ();
412
420
}
413
421
422
+ /**
423
+ * Apply the proxy info to next ajax request.
424
+ *
425
+ * @param transformer transformer
426
+ * @return self
427
+ */
414
428
public T proxy (String host , int port ){
415
429
proxy = new HttpHost (host , port );
416
430
return self ();
@@ -1833,6 +1847,7 @@ protected void reset(){
1833
1847
policy = CACHE_DEFAULT ;
1834
1848
proxy = null ;
1835
1849
1850
+
1836
1851
}
1837
1852
1838
1853
@@ -1992,6 +2007,17 @@ public <K> T delete(String url, Class<K> type, AjaxCallback<K> callback){
1992
2007
1993
2008
}
1994
2009
2010
+ /**
2011
+ * Ajax HTTP put.
2012
+ *
2013
+ * @param url url
2014
+ * @param contentHeader Content-Type header
2015
+ * @param type reponse type
2016
+ * @param callback callback
2017
+ * @return self
2018
+ *
2019
+ */
2020
+
1995
2021
public <K > T put (String url , String contentHeader , HttpEntity entity , Class <K > type , AjaxCallback <K > callback ){
1996
2022
1997
2023
callback .url (url ).type (type ).method (AQuery .METHOD_PUT ).header ("Content-Type" , contentHeader ).param (AQuery .POST_ENTITY , entity );
@@ -2148,7 +2174,7 @@ public Bitmap getCachedImage(int resId){
2148
2174
/**
2149
2175
* @deprecated As of release 0.21.3, replaced by shouldDelay(int position, View convertView, ViewGroup parent, String url)
2150
2176
*
2151
- * This method is less efficicent and promote file check which could hold up the UI thread.
2177
+ * This method is less efficient and promote file check which could hold up the UI thread.
2152
2178
*
2153
2179
* {@link #shouldDelay(int position, View convertView, ViewGroup parent, String url)}
2154
2180
*/
@@ -2161,7 +2187,7 @@ public Bitmap getCachedImage(int resId){
2161
2187
/**
2162
2188
* @deprecated As of release 0.21.3, replaced by shouldDelay(int position, View convertView, ViewGroup parent, String url)
2163
2189
*
2164
- * This method is less efficicent and promote file check which could hold up the UI thread.
2190
+ * This method is less efficient and promote file check which could hold up the UI thread.
2165
2191
*
2166
2192
* {@link #shouldDelay(int position, View convertView, ViewGroup parent, String url)}
2167
2193
*/
0 commit comments