本文整理汇总了Java中com.androidquery.util.AQUtility.invokeHandler方法的典型用法代码示例。如果您正苦于以下问题:Java AQUtility.invokeHandler方法的具体用法?Java AQUtility.invokeHandler怎么用?Java AQUtility.invokeHandler使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.androidquery.util.AQUtility
的用法示例。
在下文中一共展示了AQUtility.invokeHandler方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: overridePendingTransition5
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
/**
* Call the overridePendingTransition of the activity. Only applies when device API is 5+.
*
* @param enterAnim the enter animation
* @param exitAnim the exit animation
* @return self
*/
public T overridePendingTransition5(int enterAnim, int exitAnim)
{
if (act != null)
{
AQUtility.invokeHandler(act, "overridePendingTransition", false, false, PENDING_TRANSITION_SIG, enterAnim, exitAnim);
}
return self();
}
示例2: setOverScrollMode9
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
/**
* Call the setOverScrollMode of the view. Only applies when device API is 9+.
*
* @param mode AQuery.OVER_SCROLL_ALWAYS, AQuery.OVER_SCROLL_ALWAYS, AQuery.OVER_SCROLL_IF_CONTENT_SCROLLS
* @return self
*/
public T setOverScrollMode9(int mode)
{
if (view instanceof AbsListView)
{
AQUtility.invokeHandler(view, "setOverScrollMode", false, false, OVER_SCROLL_SIG, mode);
}
return self();
}
示例3: callback
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
void callback()
{
showProgress(false);
completed = true;
if (isActive())
{
if (callback != null)
{
Object handler = getHandler();
Class<?>[] AJAX_SIG = {String.class, type, AjaxStatus.class};
AQUtility.invokeHandler(handler, callback, true, true, AJAX_SIG, DEFAULT_SIG, url, result, status);
}
else
{
try
{
callback(url, result, status);
}
catch (Exception e)
{
AQUtility.report(e);
}
}
}
else
{
skip(url, result, status);
}
filePut();
if (!blocked)
{
status.close();
}
wake();
AQUtility.debugNotify();
}
示例4: overridePendingTransition5
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
/**
* Call the overridePendingTransition of the activity. Only applies when device API is 5+.
*
* @param enterAnim the enter animation
* @param exitAnim the exit animation
* @return self
*/
public T overridePendingTransition5(int enterAnim, int exitAnim){
if(act != null){
AQUtility.invokeHandler(act, "overridePendingTransition", false, false, PENDING_TRANSITION_SIG, enterAnim, exitAnim);
}
return self();
}
示例5: setOverScrollMode9
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
/**
* Call the setOverScrollMode of the view. Only applies when device API is 9+.
*
* @param mode AQuery.OVER_SCROLL_ALWAYS, AQuery.OVER_SCROLL_ALWAYS, AQuery.OVER_SCROLL_IF_CONTENT_SCROLLS
* @return self
*/
public T setOverScrollMode9(int mode){
if(view instanceof AbsListView){
AQUtility.invokeHandler(view, "setOverScrollMode", false, false, OVER_SCROLL_SIG, mode);
}
return self();
}
示例6: callback
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
void callback() {
showProgress(false);
completed = true;
if (isActive()) {
if (callback != null) {
Object handler = getHandler();
Class<?>[] AJAX_SIG = {String.class, type, AjaxStatus.class};
AQUtility.invokeHandler(handler, callback, true, true, AJAX_SIG, DEFAULT_SIG, url, result, status);
} else {
try {
callback(url, result, status);
} catch (Exception e) {
AQUtility.report(e);
}
}
} else {
skip(url, result, status);
}
filePut();
if (!blocked) {
status.close();
}
wake();
AQUtility.debugNotify();
}
示例7: onCreate
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
// getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
// WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.web_runtime);
file_url = getIntent().getStringExtra("file");
save_to = getIntent().getStringExtra("save_to");
v = (WebView) findViewById(R.id.webview);
pb = (ProgressBar) findViewById(R.id.loadingbar);
splash = (ImageView)findViewById(R.id.spoon_preview);
ImageLoader.getInstance().displayImage(getIntent().getStringExtra("preview"), splash);
SharedPreferences prefs = DobroApplication.getApplicationStatic().getDefaultPrefs();
wi = new WebImage(v, true, false, /*0x000000FF Integer.parseInt(prefs.getString("img_viewer_bg_color1", "000000FF"),16)*/Color.parseColor(prefs.getString("img_viewer_bg_color1", "#FF000000"))); //TODO: background color from settings
v.setWebChromeClient(new WebChromeClient() {
public void onProgressChanged(WebView view, int progress)
{
// pb.setProgress(progress);
// pb.setVisibility(View.VISIBLE);
if(progress == 100) {
wi.done(wi.wv);
splash.setVisibility(View.GONE);
}
}
});
AQUtility.invokeHandler(v, "setLayerType", false, false, LAYER_TYPE_SIG, LAYER_TYPE_SOFTWARE, null);
super.onCreate(savedInstanceState);
}
示例8: setLayerType11
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
/**
* Call the setLayerType of the view. Only applies when device API is 11+.
* <p/>
* Type must be AQuery.LAYER_TYPE_SOFTWARE or AQuery.LAYER_TYPE_HARDWARE.
*
* @param type the type
* @param paint the paint
* @return self
*/
public T setLayerType11(int type, Paint paint)
{
if (view != null)
{
AQUtility.invokeHandler(view, "setLayerType", false, false, LAYER_TYPE_SIG, type, paint);
}
return self();
}
示例9: invoke
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
/**
* Invoke the method on the current view.
*
* @param method The name of the method
* @param sig The signature of the method
* @param params Input parameters
* @return object The returning object of the method. Null if no such method or return void.
*/
public Object invoke(String method, Class<?>[] sig, Object... params)
{
Object handler = view;
if (handler == null)
handler = act;
return AQUtility.invokeHandler(handler, method, false, false, sig, params);
}
示例10: setLayerType11
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
/**
* Call the setLayerType of the view. Only applies when device API is 11+.
*
* Type must be AQuery.LAYER_TYPE_SOFTWARE or AQuery.LAYER_TYPE_HARDWARE.
*
* @param type the type
* @param paint the paint
* @return self
*/
public T setLayerType11(int type, Paint paint){
if(view != null){
AQUtility.invokeHandler(view, "setLayerType", false, false, LAYER_TYPE_SIG, type, paint);
}
return self();
}
示例11: invoke
import com.androidquery.util.AQUtility; //导入方法依赖的package包/类
/**
* Invoke the method on the current view.
*
* @param method The name of the method
* @param sig The signature of the method
* @param params Input parameters
* @return object The returning object of the method. Null if no such method or return void.
*/
public Object invoke(String method, Class<?>[] sig, Object... params){
Object handler = view;
if(handler == null) handler = act;
return AQUtility.invokeHandler(handler, method, false, false, sig, params);
}