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


Java ApplicationUtils.showYesNoDialog方法代码示例

本文整理汇总了Java中org.zirco.utils.ApplicationUtils.showYesNoDialog方法的典型用法代码示例。如果您正苦于以下问题:Java ApplicationUtils.showYesNoDialog方法的具体用法?Java ApplicationUtils.showYesNoDialog怎么用?Java ApplicationUtils.showYesNoDialog使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.zirco.utils.ApplicationUtils的用法示例。


在下文中一共展示了ApplicationUtils.showYesNoDialog方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: clearWhiteList

import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
 * Display a confirmation dialog and clear the white list.
 */
private void clearWhiteList() {
	ApplicationUtils.showYesNoDialog(this,
			android.R.drawable.ic_dialog_alert,
			R.string.AdBlockerWhiteListActivity_ClearMessage,
			R.string.Commons_NoUndoMessage,
			new DialogInterface.OnClickListener() {
				@Override
				public void onClick(DialogInterface dialog, int which) {
					dialog.dismiss();
					doClearWhiteList();
				}			
	});      
   }
 
开发者ID:mashiwoo,项目名称:zirco-browser,代码行数:17,代码来源:AdBlockerWhiteListActivity.java

示例2: clearHistory

import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
 * Display confirmation and clear history.
 */
private void clearHistory() {
	ApplicationUtils.showYesNoDialog(this,
			android.R.drawable.ic_dialog_alert,
			R.string.Commons_ClearHistory,
			R.string.Commons_NoUndoMessage,
			new DialogInterface.OnClickListener() {
				@Override
				public void onClick(DialogInterface dialog, int which) {
					dialog.dismiss();
	    			doClearHistory();
				}			
	});
   }
 
开发者ID:mashiwoo,项目名称:zirco-browser,代码行数:17,代码来源:HistoryListActivity.java

示例3: askForRestart

import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
 * Ask user to restart the app. Do it if click on "Yes".
 */
private void askForRestart() {
	ApplicationUtils.showYesNoDialog(this,
			android.R.drawable.ic_dialog_alert,
			R.string.PreferencesActivity_RestartDialogTitle,
			R.string.PreferencesActivity_RestartDialogMessage,
			new DialogInterface.OnClickListener() {

		@Override
		public void onClick(DialogInterface dialog, int which) {
			MainActivity.INSTANCE.restartApplication();				
		}
		
	});
}
 
开发者ID:mashiwoo,项目名称:zirco-browser,代码行数:18,代码来源:PreferencesActivity.java

示例4: clearHistory

import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
 * Display confirmation and clear the history.
 */
private void clearHistory() {
	ApplicationUtils.showYesNoDialog(this,
			android.R.drawable.ic_dialog_alert,
			R.string.Commons_ClearHistory,
			R.string.Commons_NoUndoMessage,
			new DialogInterface.OnClickListener() {
				@Override
				public void onClick(DialogInterface dialog, int which) {
					dialog.dismiss();
	    			doClearHistory();
				}			
	});
}
 
开发者ID:mashiwoo,项目名称:zirco-browser,代码行数:17,代码来源:PreferencesActivity.java

示例5: clearFormData

import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
 * Display confirmation and clear form data.
 */
private void clearFormData() {
	ApplicationUtils.showYesNoDialog(this,
			android.R.drawable.ic_dialog_alert,
			R.string.Commons_ClearFormData,
			R.string.Commons_NoUndoMessage,
			new DialogInterface.OnClickListener() {
				@Override
				public void onClick(DialogInterface dialog, int which) {
					dialog.dismiss();
					doClearFormData();
				}			
	});
}
 
开发者ID:mashiwoo,项目名称:zirco-browser,代码行数:17,代码来源:PreferencesActivity.java

示例6: clearCache

import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
 * Display confirmation and clear the cache.
 */
private void clearCache() {
	ApplicationUtils.showYesNoDialog(this,
			android.R.drawable.ic_dialog_alert,
			R.string.Commons_ClearCache,
			R.string.Commons_NoUndoMessage,
			new DialogInterface.OnClickListener() {
				@Override
				public void onClick(DialogInterface dialog, int which) {
					dialog.dismiss();
					doClearCache();
				}			
	});
}
 
开发者ID:mashiwoo,项目名称:zirco-browser,代码行数:17,代码来源:PreferencesActivity.java

示例7: clearCookies

import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
 * Display confirmation and clear cookies.
 */
private void clearCookies() {
	ApplicationUtils.showYesNoDialog(this,
			android.R.drawable.ic_dialog_alert,
			R.string.Commons_ClearCookies,
			R.string.Commons_NoUndoMessage,
			new DialogInterface.OnClickListener() {
				@Override
				public void onClick(DialogInterface dialog, int which) {
					dialog.dismiss();
					doClearCookies();
				}			
	});
}
 
开发者ID:mashiwoo,项目名称:zirco-browser,代码行数:17,代码来源:PreferencesActivity.java

示例8: exportHistoryBookmarks

import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
 * Ask the user to confirm the export. Launch it if confirmed.
 */
private void exportHistoryBookmarks() {
	ApplicationUtils.showYesNoDialog(this,
			android.R.drawable.ic_dialog_info,
			R.string.Commons_HistoryBookmarksExportSDCardConfirmation,
			R.string.Commons_OperationCanBeLongMessage,
			new DialogInterface.OnClickListener() {
				@Override
				public void onClick(DialogInterface dialog, int which) {
					dialog.dismiss();
					doExportHistoryBookmarks();
				}			
	});
}
 
开发者ID:mashiwoo,项目名称:zirco-browser,代码行数:17,代码来源:PreferencesActivity.java

示例9: clearMobileViewList

import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
 * Display a confirmation dialog and clear the white list.
 */
private void clearMobileViewList() {
	ApplicationUtils.showYesNoDialog(this,
			android.R.drawable.ic_dialog_alert,
			R.string.MobileViewListActivity_ClearMessage,
			R.string.Commons_NoUndoMessage,
			new DialogInterface.OnClickListener() {
				@Override
				public void onClick(DialogInterface dialog, int which) {
					dialog.dismiss();
					doClearMobileViewList();
				}			
	});      
   }
 
开发者ID:mashiwoo,项目名称:zirco-browser,代码行数:17,代码来源:MobileViewListActivity.java

示例10: clearMobileViewList

import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
 * Display a confirmation dialog and clear the white list.
 */
private void clearMobileViewList() {
	ApplicationUtils.showYesNoDialog(this,
			android.R.drawable.ic_dialog_alert,
			R.string.MobileViewListActivity_ClearMessage,
			R.string.Commons_NoUndoMessage,
			new DialogInterface.OnClickListener() {
				@Override
				public void onClick(DialogInterface dialog, int which) {
					dialog.dismiss();
					doClearMobileViewList();
				}			
	}); 
   }
 
开发者ID:TuRanLisp,项目名称:ZicroBrowser,代码行数:17,代码来源:MobileViewListActivity.java


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