congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Composite.removePaintListener
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.eclipse/org.eclipse.wst.xsd.ui

public void dispose()
{
  if (composite != null && ! composite.isDisposed() && painter != null)
    composite.removePaintListener(painter);
  
  super.dispose();
}
origin: BiglySoftware/BiglyBT

@Override
public void dispose() {
  if (composite != null && !composite.isDisposed()) {
    composite.removePaintListener(this);
    composite.removeMouseListener(this);
    composite.removeMouseMoveListener(this);
    composite.removeMouseTrackListener(this);
  }
  if (disposeListeners != null) {
    for (Iterator iter = disposeListeners.iterator(); iter.hasNext();) {
      TableCellDisposeListener listener = (TableCellDisposeListener) iter.next();
      try {
        listener.dispose(this);
      } catch (Throwable e) {
        Debug.out(e);
      }
    }
    disposeListeners = null;
  }
  tableColumn.invokeCellDisposeListeners(this);
  tableColumn.invalidateCells();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

protected void highlight(final Composite parent, final Label labelControl, final Combo comboBox, final int color) {
  Object data= labelControl.getData();
  if (data == null) {
    if (color != HIGHLIGHT_NONE) {
      PaintListener painter= new HighlightPainter(parent, labelControl, comboBox, color);
      parent.addPaintListener(painter);
      labelControl.setData(painter);
    } else {
      return;
    }
  } else {
    if (color == HIGHLIGHT_NONE) {
      parent.removePaintListener((PaintListener) data);
      labelControl.setData(null);
    } else if (color != ((HighlightPainter) data).fColor){
      ((HighlightPainter) data).fColor= color;
    } else {
      return;
    }
  }
  
  parent.redraw();
}

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

private void removeCompositeListeners(Composite c) {
  if (!c.isDisposed()) {
    printRemoveListener(c, "PAINT"); //$NON-NLS-1$
    c.removePaintListener(paintListener);
    printRemoveListener(c, "MOUSETRACK"); //$NON-NLS-1$
    c.removeMouseTrackListener(mouseTrackListener);
    printRemoveListener(c, "SWT.MenuDetect"); //$NON-NLS-1$
    c.removeListener(SWT.MenuDetect, compositeListener);
    printRemoveListener(c, "SWT.MouseDown"); //$NON-NLS-1$
    c.removeListener(SWT.MouseDown, compositeListener);
    printRemoveListener(c, "SWT.MouseDoubleClick"); //$NON-NLS-1$
    c.removeListener(SWT.MouseDoubleClick, compositeListener);
  }
}
origin: org.eclipse.pde/org.eclipse.pde.ui

  parent.removePaintListener((PaintListener) data);
  labelControl.setData(null);
} else if (color != ((HighlightPainter) data).fColor){
origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui

private void removeCompositeListeners(Composite c) {
 if(!c.isDisposed()) {
  printRemoveListener(c, "PAINT"); //$NON-NLS-1$
  c.removePaintListener(paintListener);
  printRemoveListener(c, "MOUSETRACK"); //$NON-NLS-1$
  c.removeMouseTrackListener(mouseTrackListener);
  printRemoveListener(c, "SWT.MenuDetect"); //$NON-NLS-1$
  c.removeListener(SWT.MenuDetect, compositeListener);
  printRemoveListener(c, "SWT.MouseDown"); //$NON-NLS-1$
  c.removeListener(SWT.MouseDown, compositeListener);
  printRemoveListener(c, "SWT.MouseDoubleClick"); //$NON-NLS-1$
  c.removeListener(SWT.MouseDoubleClick, compositeListener);
 }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

private void removeCompositeListeners(Composite c) {
  if (!c.isDisposed()) {
    printRemoveListener(c, "PAINT"); //$NON-NLS-1$
    c.removePaintListener(paintListener);
    printRemoveListener(c, "MOUSETRACK"); //$NON-NLS-1$
    c.removeMouseTrackListener(mouseTrackListener);
    printRemoveListener(c, "SWT.MenuDetect"); //$NON-NLS-1$
    c.removeListener(SWT.MenuDetect, compositeListener);
    printRemoveListener(c, "SWT.MouseDown"); //$NON-NLS-1$
    c.removeListener(SWT.MouseDown, compositeListener);
    printRemoveListener(c, "SWT.MouseDoubleClick"); //$NON-NLS-1$
    c.removeListener(SWT.MouseDoubleClick, compositeListener);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  @Override
  public void paintControl(PaintEvent e) {
    if (((GridData) fLabelControl.getLayoutData()).exclude) {
      fParent.removePaintListener(this);
      fLabelControl.setData(null);
      return;
    }
    
    int GAP= 7;
    int ARROW= 3;
    Rectangle l= fLabelControl.getBounds();
    Point c= fComboBox.getLocation();
    
    e.gc.setForeground(e.display.getSystemColor(fColor));
    int x2= c.x - GAP;
    int y= l.y + l.height / 2 + 1;
    
    e.gc.drawLine(l.x + l.width + GAP, y, x2, y);
    e.gc.drawLine(x2 - ARROW, y - ARROW, x2, y);
    e.gc.drawLine(x2 - ARROW, y + ARROW, x2, y);
  }
}
org.eclipse.swt.widgetsCompositeremovePaintListener

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

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Reference (javax.naming)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now