当前位置: 首页>>代码示例>>Java>>正文


Java AQUtility.invokeHandler方法代码示例

本文整理汇总了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();
}
 
开发者ID:libit,项目名称:lr_dialer,代码行数:16,代码来源:AbstractAQuery.java

示例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();
}
 
开发者ID:libit,项目名称:lr_dialer,代码行数:15,代码来源:AbstractAQuery.java

示例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();
}
 
开发者ID:libit,项目名称:lr_dialer,代码行数:37,代码来源:AbstractAjaxCallback.java

示例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();
}
 
开发者ID:bblue000,项目名称:ExoPlayerDemo,代码行数:16,代码来源:AbstractAQuery.java

示例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();
}
 
开发者ID:bblue000,项目名称:ExoPlayerDemo,代码行数:15,代码来源:AbstractAQuery.java

示例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();
    }
 
开发者ID:bblue000,项目名称:ExoPlayerDemo,代码行数:35,代码来源:AbstractAjaxCallback.java

示例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);
	}
 
开发者ID:rdmwfs,项目名称:dobroreader-mod,代码行数:32,代码来源:DobroImageViewer.java

示例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();
}
 
开发者ID:libit,项目名称:lr_dialer,代码行数:18,代码来源:AbstractAQuery.java

示例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);
}
 
开发者ID:libit,项目名称:lr_dialer,代码行数:16,代码来源:AbstractAQuery.java

示例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();
}
 
开发者ID:bblue000,项目名称:ExoPlayerDemo,代码行数:19,代码来源:AbstractAQuery.java

示例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);
}
 
开发者ID:bblue000,项目名称:ExoPlayerDemo,代码行数:16,代码来源:AbstractAQuery.java


注:本文中的com.androidquery.util.AQUtility.invokeHandler方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。