本文整理了Java中org.eclipse.swt.widgets.Text.getBackground()
方法的一些代码示例,展示了Text.getBackground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.getBackground()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Text
类名称:Text
方法名:getBackground
暂无
代码示例来源:origin: org.eclipse.scout.sdk.s2e/org.eclipse.scout.sdk.s2e.nls
/**
* @return
* @see org.eclipse.swt.widgets.Control#getBackground()
*/
public Color getBackground() {
return m_text.getBackground();
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void paintControl(PaintEvent arg0) {
Color current_bg = textWidget.getBackground();
if (!current_bg.equals(existing_bg)) {
existing_bg = current_bg;
cBubble.redraw();
}
}
});
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
int length = errorText.getText().length();
red = new Color(null, 255, 0, 0);
StyleRange style = new StyleRange(0, length, red, targetNamespaceText.getBackground());
errorText.setStyleRange(style);
return;
代码示例来源:origin: org.eclipse/org.eclipse.ui.navigator
textEditorParent.setBackground(textEditor.getBackground());
textEditor.addListener(SWT.Modify, new Listener() {
public void handleEvent(Event e) {
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
int length = errorText.getText().length();
red = new Color(null, 255, 0, 0);
StyleRange style = new StyleRange(0, length, red, schemaLocationText.getBackground());
errorText.setStyleRange(style);
代码示例来源:origin: org.eclipse/org.eclipse.wst.server.ui
textEditorParent.setBackground(textEditor.getBackground());
textEditor.addListener(SWT.Modify, new Listener() {
public void handleEvent(Event e) {
代码示例来源:origin: BiglySoftware/BiglyBT
Color background = text.getBackground();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
textEditorParent.setBackground(textEditor.getBackground());
textEditor.addListener(SWT.Modify, e -> {
Point textSize = textEditor.computeSize(SWT.DEFAULT,
代码示例来源:origin: BiglySoftware/BiglyBT
e.gc.setBackground(Colors.getSystemColor(e.display, SWT.COLOR_LIST_BACKGROUND));
} else {
e.gc.setBackground(textWidget.getBackground());
内容来源于网络,如有侵权,请联系作者删除!