Codota Logo
Composite.setForeground
Code IndexAdd Codota to your IDE (free)

How to use
setForeground
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.setForeground (Showing top 20 results out of 315)

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public void setForeground (Color color) {
  super.setForeground(color);
  foreground = color;
  for (int i = 0; i < sashes.length; i++) {
    sashes[i].setForeground(foreground);
  }
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public void setForeground (Color color) {
  super.setForeground(color);
  foreground = color;
  for (int i = 0; i < sashes.length; i++) {
    sashes[i].setForeground(foreground);
  }
}
/**
origin: BiglySoftware/BiglyBT

@Override
public boolean setForegroundToErrorColor() {
  if (isDisposed()) {
    return false;
  }
  composite.setForeground(Colors.colorError);
  return true;
}
origin: org.eclipse.rap/org.eclipse.rap.rwt

@Override
public void setForeground( Color color ) {
 super.setForeground( color );
 foreground = color;
 for( int i = 0; i < sashes.length; i++ ) {
  sashes[ i ].setForeground( foreground );
 }
}
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);
  redraw();
}
/**
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.linux.ppc

@Override
public void setForeground (Color color) {
  super.setForeground(color);
  redraw();
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
public void setForeground (Color color) {
  super.setForeground (color);
  fg = color;
  if (popupCalendar != null) popupCalendar.setForeground (color);
}

origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void setForegroundColor(Color foreground) {
  fContentComposite.setForeground(foreground);
  if (fStatusLabel != null) {
    setStatusLabelColors(foreground, fStatusLabel.getBackground());
  }
}
origin: org.eclipse.swt.cocoa.macosx/x86_64

void setForeground (double /*float*/ [] color) {
  super.setForeground(color);
  int index = getSelectionIndex();
  for (int i = 0; i < itemCount; i++) {
    items[i].updateText(i == index);
  }
}

origin: org.eclipse.platform/org.eclipse.swt.examples

@Override
public void setForeground (Color color) {
  checkWidget ();
  if (color == null) color = display.getSystemColor (SWT.COLOR_LIST_FOREGROUND);
  super.setForeground (color);
}
/**
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.swt.cocoa.macosx/x86_64

public void setForeground (Color color) {
  super.setForeground(color);
  foreground = color;
  if (text != null) text.setForeground(color);
  if (list != null) list.setForeground(color);
  if (arrow != null) arrow.setForeground(color);
}
/**
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.swt.gtk.linux.s390x

@Override
public void setForeground (Color color) {
  super.setForeground(color);
  foreground = color;
  if (text != null) text.setForeground(color);
  if (list != null) list.setForeground(color);
  if (arrow != null) arrow.setForeground(color);
}
/**
origin: org.eclipse.platform/org.eclipse.ui.forms

  private Composite createPage() {
    Composite page = new Composite(pageBook, SWT.NULL);
    page.setBackground(getBackground());
    page.setForeground(getForeground());
    page.setMenu(pageBook.getMenu());
    return page;
  }
}
origin: BiglySoftware/BiglyBT

@Override
public void setForeground(Color color) {
  if (null != label && !label.isDisposed()) {
    label.setForeground(color);
  }
  if (null != content && !content.isDisposed()) {
    content.setForeground(color);
  }
  super.setForeground(color);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms

  private Composite createPage() {
    Composite page = new LayoutComposite(pageBook, SWT.NULL);
    page.setBackground(getBackground());
    page.setForeground(getForeground());
    page.setMenu(pageBook.getMenu());
    return page;
  }
}
org.eclipse.swt.widgetsCompositesetForeground

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now