本文整理匯總了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;
}