org.eclipse.swt.widgets.Table.setForeground()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中org.eclipse.swt.widgets.Table.setForeground()方法的一些代码示例,展示了Table.setForeground()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setForeground()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:setForeground

Table.setForeground介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

public void setForeground (Color color) {
  super.setForeground(color);
  table.setForeground(color);
}
public void setMenu (Menu menu) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
public void setForeground (Color color) {
  super.setForeground(color);
  table.setForeground(color);
}
@Override

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public void setForeground (Color color) {
  super.setForeground(color);
  table.setForeground(color);
}
@Override

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public void setForeground (Color color) {
  super.setForeground(color);
  table.setForeground(color);
}
@Override

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public void setForeground (Color color) {
  super.setForeground(color);
  table.setForeground(color);
}
@Override

代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.renderers.swt

private void setForegroundColor(Color foreground) {
  fTableViewer.getTable().setForeground(foreground);
  fFilterText.setForeground(foreground);
  fComposite.setForeground(foreground);
}

代码示例来源:origin: org.eclipse.e4.ui.workbench.renderers/swt

private void setForegroundColor(Color foreground) {
  fTableViewer.getTable().setForeground(foreground);
  fFilterText.setForeground(foreground);
  fComposite.setForeground(foreground);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.css.swt

@Override
  public void reset() {
    TableItem tableItem = getTableItem();
    Table parent = tableItem.getParent();

    if (!parent.isDisposed()) {
      parent.setForeground(null);
      parent.setBackground(null);
      CSSSWTFontHelper.restoreDefaultFont(parent);
    }

    tableItem.setForeground(null);
    tableItem.setBackground(null);
    CSSSWTImageHelper.restoreDefaultImage(tableItem);
    tableItem.setFont(null); // in such case the parent's font will be taken
    super.reset();
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

private void deferredCreateContent(Composite parent) {
  fTable= new Table(parent, SWT.SINGLE | SWT.FULL_SELECTION);
  fTable.setLinesVisible(false);
  fTable.setHeaderVisible(false);
  fTable.setForeground(fForegroundColor);
  fTable.setBackground(fBackgroundColor);
  fTable.setFont(JFaceResources.getDialogFont());
  GridData data= new GridData(SWT.BEGINNING, SWT.BEGINNING, true, true);
  fTable.setLayoutData(data);
  final TableViewer viewer= new TableViewer(fTable);
  viewer.setContentProvider(new LinkContentProvider());
  viewer.setLabelProvider(new LinkLabelProvider());
  viewer.setInput(fInput);
  fTable.setSelection(0);
  registerTableListeners();
  getShell().addShellListener(new ShellAdapter() {
    @Override
    public void shellActivated(ShellEvent e) {
      if (viewer.getTable().getSelectionCount() == 0) {
        viewer.getTable().setSelection(0);
      }
      viewer.getTable().setFocus();
    }
  });
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

private void deferredCreateContent(Composite parent) {
  fTable= new Table(parent, SWT.SINGLE | SWT.FULL_SELECTION);
  fTable.setLinesVisible(false);
  fTable.setHeaderVisible(false);
  fTable.setForeground(fForegroundColor);
  fTable.setBackground(fBackgroundColor);
  fTable.setFont(JFaceResources.getDialogFont());
  GridData data= new GridData(SWT.BEGINNING, SWT.BEGINNING, true, true);
  fTable.setLayoutData(data);
  final TableViewer viewer= new TableViewer(fTable);
  viewer.setContentProvider(new LinkContentProvider());
  viewer.setLabelProvider(new LinkLabelProvider());
  viewer.setInput(fInput);
  fTable.setSelection(0);
  registerTableListeners();
  getShell().addShellListener(new ShellAdapter() {
    @Override
    public void shellActivated(ShellEvent e) {
      if (viewer.getTable().getSelectionCount() == 0) {
        viewer.getTable().setSelection(0);
      }
      viewer.getTable().setFocus();
    }
  });
}

代码示例来源:origin: org.eclipse.recommenders.extdoc/rcp

final Table table = new Table(parent, SWT.NONE | SWT.HIDE_SELECTION);
table.setBackground(createColor(COLOR_INFO_BACKGROUND));
table.setForeground(createColor(COLOR_INFO_FOREGROUND));
table.setLayoutData(GridDataFactory.fillDefaults().indent(10, 0).create());

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

if (c == null)
  c= control.getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND);
fContextSelectorTable.setForeground(c);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

if (c == null)
  c= control.getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND);
fContextSelectorTable.setForeground(c);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

fProposalTable.setForeground(c);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

fProposalTable.setForeground(c);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

if (c == null)
  c= control.getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND);
fContextSelectorTable.setForeground(c);

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

fProposalTable.setForeground(foreground);

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

if (c == null)
  c= control.getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND);
fContextSelectorTable.setForeground(c);

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

fProposalTable.setForeground(foreground);

相关文章

Table类方法