本文整理汇总了Java中org.xwalk.core.XWalkNavigationHistory.getItemAt方法的典型用法代码示例。如果您正苦于以下问题:Java XWalkNavigationHistory.getItemAt方法的具体用法?Java XWalkNavigationHistory.getItemAt怎么用?Java XWalkNavigationHistory.getItemAt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.xwalk.core.XWalkNavigationHistory
的用法示例。
在下文中一共展示了XWalkNavigationHistory.getItemAt方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: printBackForwardList
import org.xwalk.core.XWalkNavigationHistory; //导入方法依赖的package包/类
public void printBackForwardList() {
XWalkNavigationHistory currentList = this.webview.getNavigationHistory();
int currentSize = currentList.size();
LOG.d(TAG, "My URL is " + webview.getUrl());
LOG.d(TAG, "navigation history:");
for(int i = 0; i < currentSize; ++i)
{
XWalkNavigationItem item = currentList.getItemAt(i);
String url = item.getUrl();
LOG.d(TAG, "The URL at index: " + Integer.toString(i) + " is " + url );
}
}
示例2: startOfHistory
import org.xwalk.core.XWalkNavigationHistory; //导入方法依赖的package包/类
public boolean startOfHistory()
{
XWalkNavigationHistory currentList = this.webview.getNavigationHistory();
XWalkNavigationItem item = currentList.getItemAt(0);
if( item!=null){ // Null-fence in case they haven't called loadUrl yet (CB-2458)
String url = item.getUrl();
String currentUrl = this.webview.getUrl();
LOG.d(TAG, "The current URL is: " + currentUrl);
LOG.d(TAG, "The URL at item 0 is: " + url);
return currentUrl.equals(url);
}
return false;
}
示例3: printBackForwardList
import org.xwalk.core.XWalkNavigationHistory; //导入方法依赖的package包/类
public void printBackForwardList() {
XWalkNavigationHistory currentList = this.getNavigationHistory();
int currentSize = currentList.size();
for(int i = 0; i < currentSize; ++i)
{
XWalkNavigationItem item = currentList.getItemAt(i);
String url = item.getUrl();
LOG.d(TAG, "The URL at index: " + Integer.toString(i) + " is " + url );
}
}
示例4: startOfHistory
import org.xwalk.core.XWalkNavigationHistory; //导入方法依赖的package包/类
public boolean startOfHistory()
{
XWalkNavigationHistory currentList = this.getNavigationHistory();
XWalkNavigationItem item = currentList.getItemAt(0);
if( item!=null){ // Null-fence in case they haven't called loadUrl yet (CB-2458)
String url = item.getUrl();
String currentUrl = this.getUrl();
LOG.d(TAG, "The current URL is: " + currentUrl);
LOG.d(TAG, "The URL at item 0 is: " + url);
return currentUrl.equals(url);
}
return false;
}