本文整理了Java中org.eclipse.swt.browser.Browser.setBackground()
方法的一些代码示例,展示了Browser.setBackground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Browser.setBackground()
方法的具体详情如下:
包路径:org.eclipse.swt.browser.Browser
类名称:Browser
方法名:setBackground
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
@Override
public void setBackgroundColor(Color background) {
super.setBackgroundColor(background);
fBrowser.setBackground(background);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
@Override
public void setBackgroundColor(Color background) {
super.setBackgroundColor(background);
fBrowser.setBackground(background);
}
代码示例来源:origin: org.eclipse/org.eclipse.ltk.ui.refactoring
/**
* Creates a new refactoring descriptor viewer.
*
* @param parent
* the parent control
* @param style
* the style
*/
public RefactoringDescriptorViewer(final Composite parent, final int style) {
Assert.isNotNull(parent);
fBrowser= new Browser(parent, style);
final Display display= parent.getDisplay();
fBrowser.setForeground(display.getSystemColor(SWT.COLOR_LIST_FOREGROUND));
fBrowser.setBackground(display.getSystemColor(SWT.COLOR_LIST_BACKGROUND));
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
@Override
protected void createContent(Composite parent) {
fBrowser= new Browser(parent, SWT.NONE);
fBrowser.setJavascriptEnabled(false);
Display display= getShell().getDisplay();
fBrowser.setForeground(display.getSystemColor(SWT.COLOR_INFO_FOREGROUND));
fBrowser.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
fBrowser.addProgressListener(new ProgressAdapter() {
@Override
public void completed(ProgressEvent event) {
fCompleted= true;
}
});
// Cancel opening of new windows
fBrowser.addOpenWindowListener(event -> event.required= true);
// Replace browser's built-in context menu with none
fBrowser.setMenu(new Menu(getShell(), SWT.NONE));
createTextLayout();
}
代码示例来源:origin: org.eclipse.equinox.p2/ui
browser = new Browser(parent, SWT.NONE);
browser.setUrl(url);
browser.setBackground(parent.getBackground());
Point size = getProvisioningUI().getPolicy().getUpdateDetailsPreferredSize();
if (size != null) {
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
@Override
protected void createContent(Composite parent) {
fBrowser= new Browser(parent, SWT.NONE);
fBrowser.setJavascriptEnabled(false);
Display display= getShell().getDisplay();
fBrowser.setForeground(display.getSystemColor(SWT.COLOR_INFO_FOREGROUND));
fBrowser.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
fBrowser.addProgressListener(new ProgressAdapter() {
@Override
public void completed(ProgressEvent event) {
fCompleted= true;
}
});
fBrowser.addOpenWindowListener(new OpenWindowListener() {
@Override
public void open(WindowEvent event) {
event.required= true; // Cancel opening of new windows
}
});
// Replace browser's built-in context menu with none
fBrowser.setMenu(new Menu(getShell(), SWT.NONE));
createTextLayout();
}
内容来源于网络,如有侵权,请联系作者删除!