本文整理汇总了Java中org.zirco.ui.components.CustomWebView类的典型用法代码示例。如果您正苦于以下问题:Java CustomWebView类的具体用法?Java CustomWebView怎么用?Java CustomWebView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CustomWebView类属于org.zirco.ui.components包,在下文中一共展示了CustomWebView类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: applyPreferences
import org.zirco.ui.components.CustomWebView; //导入依赖的package包/类
/**
* Apply preferences to the current UI objects.
*/
public void applyPreferences() {
// To update to Bubble position.
setToolbarsVisibility(false);
updateSwitchTabsMethod();
for (CustomWebView view : mWebViews) {
view.initializeOptions();
}
}
示例2: addTab
import org.zirco.ui.components.CustomWebView; //导入依赖的package包/类
/**
* Add a new tab.
* @param navigateToHome If True, will load the user home page.
* @param parentIndex The index of the new tab.
*/
private void addTab(boolean navigateToHome, int parentIndex) {
if (mFindDialogVisible) {
closeFindDialog();
}
RelativeLayout view = (RelativeLayout) mInflater.inflate(R.layout.webview, mViewFlipper, false);
mCurrentWebView = (CustomWebView) view.findViewById(R.id.webview);
initializeCurrentWebView();
synchronized (mViewFlipper) {
if (parentIndex != -1) {
mWebViews.add(parentIndex + 1, mCurrentWebView);
mViewFlipper.addView(view, parentIndex + 1);
} else {
mWebViews.add(mCurrentWebView);
mViewFlipper.addView(view);
}
mViewFlipper.setDisplayedChild(mViewFlipper.indexOfChild(view));
}
updateUI();
updatePreviousNextTabViewsVisibility();
mUrlEditText.clearFocus();
if (navigateToHome) {
navigateToHome();
}
}
示例3: run
import org.zirco.ui.components.CustomWebView; //导入依赖的package包/类
@Override
public void run() {
BookmarksProviderWrapper.clearHistoryAndOrBookmarks(getContentResolver(), true, false);
for (CustomWebView webView : Controller.getInstance().getWebViewList()) {
webView.clearHistory();
}
handler.sendEmptyMessage(0);
}
示例4: run
import org.zirco.ui.components.CustomWebView; //导入依赖的package包/类
@Override
public void run() {
// Clear DB History
BookmarksProviderWrapper.clearHistoryAndOrBookmarks(getContentResolver(), true, false);
// Clear WebViews history
for (CustomWebView webView : Controller.getInstance().getWebViewList()) {
webView.clearHistory();
}
handler.sendEmptyMessage(0);
}
示例5: getWebViewList
import org.zirco.ui.components.CustomWebView; //导入依赖的package包/类
/**
* Get the list of current WebViews.
* @return The list of current WebViews.
*/
public List<CustomWebView> getWebViewList() {
return mWebViewList;
}
示例6: setWebViewList
import org.zirco.ui.components.CustomWebView; //导入依赖的package包/类
/**
* Set the list of current WebViews.
* @param list The list of current WebViews.
*/
public void setWebViewList(List<CustomWebView> list) {
mWebViewList = list;
}