本文整理了Java中org.eclipse.swt.browser.Browser.isForwardEnabled()
方法的一些代码示例,展示了Browser.isForwardEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Browser.isForwardEnabled()
方法的具体详情如下:
包路径:org.eclipse.swt.browser.Browser
类名称:Browser
方法名:isForwardEnabled
[英]Returns true
if the receiver can navigate to the next session history item, and false
otherwise.
[中]如果接收者可以导航到下一个会话历史记录项,则返回true
,否则返回false
。
代码示例来源:origin: pentaho/pentaho-kettle
private void setForwardBackEnable() {
setBackEnable( wBrowser.isBackEnabled() );
setForwardEnable( wBrowser.isForwardEnabled() );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void changed( LocationEvent event ) {
Browser browser = (Browser) event.widget;
if ( back != null ) {
back.setDisabled( !browser.isBackEnabled() );
forward.setDisabled( !browser.isForwardEnabled() );
location.setValue( browser.getUrl() );
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
@Override
public void completed(ProgressEvent event) {
if (progressBar != null) progressBar.setSelection(0);
busy = false;
index = 0;
if (canvas != null) {
itemBack.setEnabled(browser.isBackEnabled());
itemForward.setEnabled(browser.isForwardEnabled());
canvas.redraw();
}
}
});
代码示例来源:origin: openaudible/openaudible
@Override
public void completed(ProgressEvent event) {
if (progressBar != null)
progressBar.setSelection(0);
busy = false;
index = 0;
if (canvas != null) {
itemBack.setEnabled(browser.isBackEnabled());
itemForward.setEnabled(browser.isForwardEnabled());
canvas.redraw();
}
}
});
代码示例来源:origin: org.codehaus.openxma/xmartserver
/**
* Activates and deactivates the buttons
* @param finished true if the webpage was fuly loaded, otherwise false.
* Determine by ProgressListener
* @since version_number
* @author S3460
*/
private void activateButtons(boolean finished){
if(showButtons){
webCommandBackward.setEnabled(swtBrowser.isBackEnabled());
webCommandForward.setEnabled(swtBrowser.isForwardEnabled());
webCommandStop.setEnabled(!finished);
webCommandPrint.setEnabled(finished);
}
}
代码示例来源:origin: org.codehaus.openxma/xmartclient
/**
* Activates and deactivates the buttons
* @param finished true if the webpage was fuly loaded, otherwise false.
* Determine by ProgressListener
* @since version_number
* @author S3460
*/
private void activateButtons(boolean finished){
if(showButtons){
webCommandBackward.setEnabled(swtBrowser.isBackEnabled());
webCommandForward.setEnabled(swtBrowser.isForwardEnabled());
webCommandStop.setEnabled(!finished);
webCommandPrint.setEnabled(finished);
}
}
代码示例来源:origin: org.xworker/xworker_swt
@Override
public void completed(ProgressEvent arg0) {
if(SwtUtils.isRWT()) {
backToolItem.setEnabled(true);
forwardToolItem.setEnabled(true);
}else {
backToolItem.setEnabled(browser.isBackEnabled());
forwardToolItem.setEnabled(browser.isForwardEnabled());
}
}
};
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
@Override
protected void updateNavigationActionsState() {
if (getModel().isDynamic()) {
forwardAction.setEnabled(history.canNavigateForward());
backAction.setEnabled(history.canNavigateBackward());
return;
}
// in static html intro, use browser history.
forwardAction.setEnabled(browser.isForwardEnabled());
backAction.setEnabled(browser.isBackEnabled());
}
代码示例来源:origin: org.xworker/xworker_swt
}else {
backToolItem.setEnabled(browser.isBackEnabled());
forwardToolItem.setEnabled(browser.isForwardEnabled());
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
itemForward.setEnabled(browser.isForwardEnabled());
Listener listener = event -> {
ToolItem item = (ToolItem)event.widget;
代码示例来源:origin: openaudible/openaudible
itemForward.setEnabled(browser.isForwardEnabled());
Listener listener = event -> {
ToolItem item = (ToolItem) event.widget;
内容来源于网络,如有侵权,请联系作者删除!