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

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

Best Java code snippets using org.eclipse.swt.widgets.Composite.getHorizontalBar (Showing top 14 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.swt.cocoa.macosx/x86_64

/**
* Creates a ControlEditor for the specified Composite.
*
* @param parent the Composite above which this editor will be displayed
*
*/
public ControlEditor (Composite parent) {
  this.parent = parent;

  controlListener = new Listener() {
    public void handleEvent(Event e) {
      layout ();
    }
  };
  for (int i=0; i<EVENTS.length; i++) {
    parent.addListener (EVENTS [i], controlListener);
  }
  
  scrollbarListener = new Listener() {
    public void handleEvent(Event e) {
      scroll (e);
    }
  };            
  ScrollBar hBar = parent.getHorizontalBar ();
  if (hBar != null) hBar.addListener (SWT.Selection, scrollbarListener);
  ScrollBar vBar = parent.getVerticalBar ();
  if (vBar != null) vBar.addListener (SWT.Selection, scrollbarListener);
}
Rectangle computeBounds () {
origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Creates a ControlEditor for the specified Composite.
 *
 * @param parent the Composite above which this editor will be displayed
 */
public ControlEditor( Composite parent ) {
 this.parent = parent;
 controlListener = new Listener() {
  public void handleEvent( Event e ) {
   layout();
  }
 };
 for( int i = 0; i < EVENTS.length; i++ ) {
  parent.addListener( EVENTS[ i ], controlListener );
 }
 scrollbarListener = new Listener() {
  public void handleEvent( Event e ) {
   scroll( e );
  }
 };
 ScrollBar hBar = parent.getHorizontalBar();
 ScrollBar vBar = parent.getVerticalBar();
 if( hBar != null ) {
  hBar.addListener( SWT.Selection, scrollbarListener );
 }
 if( vBar != null ) {
  vBar.addListener( SWT.Selection, scrollbarListener );
 }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

ScrollBar hBar = parent.getHorizontalBar ();
if (hBar != null) hBar.addListener (SWT.Selection, scrollbarListener);
ScrollBar vBar = parent.getVerticalBar ();
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

ScrollBar hBar = parent.getHorizontalBar ();
if (hBar != null) hBar.addListener (SWT.Selection, scrollbarListener);
ScrollBar vBar = parent.getVerticalBar ();
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

ScrollBar hBar = parent.getHorizontalBar ();
if (hBar != null) hBar.addListener (SWT.Selection, scrollbarListener);
ScrollBar vBar = parent.getVerticalBar ();
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

ScrollBar hBar = parent.getHorizontalBar ();
if (hBar != null) hBar.addListener (SWT.Selection, scrollbarListener);
ScrollBar vBar = parent.getVerticalBar ();
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

/**
 * Removes all associations between the Editor and the underlying composite.  The
 * composite and the editor Control are <b>not</b> disposed.
 */
public void dispose () {
  if (parent != null && !parent.isDisposed()) {
    for (int i=0; i<EVENTS.length; i++) {
      parent.removeListener (EVENTS [i], controlListener);
    }
    ScrollBar hBar = parent.getHorizontalBar ();
    if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
    ScrollBar vBar = parent.getVerticalBar ();
    if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
  }

  parent = null;
  editor = null;
  hadFocus = false;
  controlListener = null;
  scrollbarListener = null;
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

/**
 * Removes all associations between the Editor and the underlying composite.  The
 * composite and the editor Control are <b>not</b> disposed.
 */
public void dispose () {
  if (parent != null && !parent.isDisposed()) {
    for (int i=0; i<EVENTS.length; i++) {
      parent.removeListener (EVENTS [i], controlListener);
    }
    ScrollBar hBar = parent.getHorizontalBar ();
    if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
    ScrollBar vBar = parent.getVerticalBar ();
    if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
  }

  parent = null;
  editor = null;
  hadFocus = false;
  controlListener = null;
  scrollbarListener = null;
}
/**
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/**
 * Removes all associations between the Editor and the underlying composite.  The
 * composite and the editor Control are <b>not</b> disposed.
 */
public void dispose () {
  if (parent != null && !parent.isDisposed()) {
    for (int i=0; i<EVENTS.length; i++) {
      parent.removeListener (EVENTS [i], controlListener);
    }
    ScrollBar hBar = parent.getHorizontalBar ();
    if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
    ScrollBar vBar = parent.getVerticalBar ();
    if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
  }

  parent = null;
  editor = null;
  hadFocus = false;
  controlListener = null;
  scrollbarListener = null;
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

/**
 * Removes all associations between the Editor and the underlying composite.  The
 * composite and the editor Control are <b>not</b> disposed.
 */
public void dispose () {
  if (parent != null && !parent.isDisposed()) {
    for (int i=0; i<EVENTS.length; i++) {
      parent.removeListener (EVENTS [i], controlListener);
    }
    ScrollBar hBar = parent.getHorizontalBar ();
    if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
    ScrollBar vBar = parent.getVerticalBar ();
    if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
  }

  parent = null;
  editor = null;
  hadFocus = false;
  controlListener = null;
  scrollbarListener = null;
}
/**
origin: org.eclipse.swt.cocoa.macosx/x86_64

/**
 * Removes all associations between the Editor and the underlying composite.  The
 * composite and the editor Control are <b>not</b> disposed.
 */
public void dispose () {
  if (parent != null && !parent.isDisposed()) {
    for (int i=0; i<EVENTS.length; i++) {
      parent.removeListener (EVENTS [i], controlListener);
    }
    ScrollBar hBar = parent.getHorizontalBar ();
    if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
    ScrollBar vBar = parent.getVerticalBar ();
    if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
  }
  
  parent = null;
  editor = null;
  hadFocus = false;
  controlListener = null;
  scrollbarListener = null;
}
/**
origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Removes all associations between the Editor and the underlying composite.
 * The composite and the editor Control are <b>not</b> disposed.
 */
public void dispose() {
 if( parent != null && !parent.isDisposed() ) {
  for( int i = 0; i < EVENTS.length; i++ ) {
   parent.removeListener( EVENTS[ i ], controlListener );
  }
  ScrollBar hBar = parent.getHorizontalBar();
  ScrollBar vBar = parent.getVerticalBar();
  if( hBar != null ) {
   hBar.removeListener( SWT.Selection, scrollbarListener );
  }
  if( vBar != null ) {
   vBar.removeListener( SWT.Selection, scrollbarListener );
  }
 }
 parent = null;
 editor = null;
 hadFocus = false;
 controlListener = null;
 scrollbarListener = null;
}
origin: stackoverflow.com

final ScrollBar hBar = tablecontainer.getHorizontalBar();
    vBar.addListener(SWT.Selection, new Listener() {
      @Override
origin: BiglySoftware/BiglyBT

hBar = cTable.getHorizontalBar();
if (hBar != null) {
  hBar.setValues(0, 0, 0, 10, 10, 100);
org.eclipse.swt.widgetsCompositegetHorizontalBar

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

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • notifyDataSetChanged (ArrayAdapter)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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