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

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

Best Java code snippets using org.eclipse.swt.widgets.Composite.addControlListener (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: pentaho/pentaho-kettle

canvas.setLayoutData( fdCanvas );
metricsComposite.addControlListener( new ControlAdapter() {
 public void controlResized( ControlEvent event ) {
  updateGraph();
origin: pentaho/pentaho-kettle

canvas.setLayoutData( fdCanvas );
metricsComposite.addControlListener( new ControlAdapter() {
 public void controlResized( ControlEvent event ) {
  updateGraph();
origin: pentaho/pentaho-kettle

canvas.setLayoutData( fdCanvas );
perfComposite.addControlListener( new ControlAdapter() {
 public void controlResized( ControlEvent event ) {
  updateGraph();
origin: pentaho/pentaho-kettle

widget.addControlListener( new ControlAdapter() {
 @Override
 public void controlResized( ControlEvent arg0 ) {
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private void addResizeListener(Composite parent) {
  parent.addControlListener(new ControlListener() {
    @Override
    public void controlMoved(ControlEvent e) {
    }
    @Override
    public void controlResized(ControlEvent e) {
      computeOrientation();
    }
  });
}
origin: org.eclipse/org.eclipse.jdt.ui

private void addResizeListener(Composite parent) {
  parent.addControlListener(new ControlListener() {
    public void controlMoved(ControlEvent e) {
    }
    public void controlResized(ControlEvent e) {
      computeOrientation();
    }
  });
}
origin: org.eclipse/org.eclipse.jdt.ui

private void addResizeListener(Composite parent) {
  parent.addControlListener(new ControlListener() {
    public void controlMoved(ControlEvent e) {
    }
    public void controlResized(ControlEvent e) {
      if (getViewLayout() == VIEW_LAYOUT_AUTOMATIC && !fInComputeLayout) {
        setViewLayout(VIEW_LAYOUT_AUTOMATIC);
      }
    }
  });
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private void addResizeListener(Composite parent) {
  parent.addControlListener(new ControlListener() {
    @Override
    public void controlMoved(ControlEvent e) {
    }
    @Override
    public void controlResized(ControlEvent e) {
      int viewLayout= getViewLayout();
      if ((viewLayout == VIEW_LAYOUT_AUTOMATIC || viewLayout == -1) && !fInComputeLayout) {
        setViewLayout(VIEW_LAYOUT_AUTOMATIC);
      }
    }
  });
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private void addResizeListener(Composite parent) {
  parent.addControlListener(new ControlListener() {
    @Override
    public void controlMoved(ControlEvent e) {
    }
    @Override
    public void controlResized(ControlEvent e) {
      computeOrientation();
    }
  });
}
origin: com.eclipsesource.tabris/tabris

private void addResizeListener( final Composite facade ) {
 composite.addControlListener( new ControlListener() {
  @Override
  public void controlResized( ControlEvent e ) {
   layoutFacade( facade );
  }
  @Override
  public void controlMoved( ControlEvent e ) {
   layoutFacade( facade );
  }
 } );
}
origin: cbeust/testng-eclipse

private void addResizeListener(Composite parent) {
 parent.addControlListener(new ControlListener() {
  public void controlMoved(ControlEvent e) {
  }
  public void controlResized(ControlEvent e) {
   computeOrientation();
  }
 });
}
origin: org.eclipse.platform/org.eclipse.debug.ui

private void addResizeListener(Composite parent) {
  parent.addControlListener(new ControlListener() {
    @Override
    public void controlMoved(ControlEvent e) {
    }
    @Override
    public void controlResized(ControlEvent e) {
      if (IDebugPreferenceConstants.VARIABLES_DETAIL_PANE_AUTO.equals(fCurrentDetailPaneOrientation)) {
        setDetailPaneOrientation(IDebugPreferenceConstants.VARIABLES_DETAIL_PANE_AUTO);
      }
    }
  });
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private void addResizeListener(Composite parent) {
  parent.addControlListener(new ControlListener() {
    @Override
    public void controlMoved(ControlEvent e) {
    }
    @Override
    public void controlResized(ControlEvent e) {
      int viewLayout= getViewLayout();
      if ((viewLayout == VIEW_LAYOUT_AUTOMATIC || viewLayout == -1) && !fInComputeLayout) {
        setViewLayout(VIEW_LAYOUT_AUTOMATIC);
      }
    }
  });
}
origin: org.eclipse.platform/org.eclipse.swt.examples

/**
 * Creates the tab folder page.
 *
 * @param tabFolder org.eclipse.swt.widgets.TabFolder
 * @return the new page for the tab folder
 */
@Override
Composite createTabFolderPage (TabFolder tabFolder) {
  super.createTabFolderPage (tabFolder);
  /*
   * Add a resize listener to the tabFolderPage so that
   * if the user types into the example widget to change
   * its preferred size, and then resizes the shell, we
   * recalculate the preferred size correctly.
   */
  tabFolderPage.addControlListener(ControlListener.controlResizedAdapter(e -> setExampleWidgetSize ()));
  return tabFolderPage;
}
origin: org.eclipse.platform/org.eclipse.swt.examples

/**
 * Creates the tab folder page.
 *
 * @param tabFolder org.eclipse.swt.widgets.TabFolder
 * @return the new page for the tab folder
 */
@Override
Composite createTabFolderPage (TabFolder tabFolder) {
  super.createTabFolderPage (tabFolder);
  /*
   * Add a resize listener to the tabFolderPage so that
   * if the user types into the example widget to change
   * its preferred size, and then resizes the shell, we
   * recalculate the preferred size correctly.
   */
  tabFolderPage.addControlListener(ControlListener.controlResizedAdapter(e -> setExampleWidgetSize ()));
  return tabFolderPage;
}
origin: org.eclipse.platform/org.eclipse.swt.examples

/**
 * Creates the tab folder page.
 *
 * @param tabFolder org.eclipse.swt.widgets.TabFolder
 * @return the new page for the tab folder
 */
@Override
Composite createTabFolderPage (TabFolder tabFolder) {
  super.createTabFolderPage (tabFolder);
  /*
   * Add a resize listener to the tabFolderPage so that
   * if the user types into the example widget to change
   * its preferred size, and then resizes the shell, we
   * recalculate the preferred size correctly.
   */
  tabFolderPage.addControlListener(ControlListener.controlResizedAdapter(e ->	setExampleWidgetSize ()));
  return tabFolderPage;
}
origin: org.eclipse.platform/org.eclipse.swt.examples

/**
 * Creates the tab folder page.
 *
 * @param tabFolder org.eclipse.swt.widgets.TabFolder
 * @return the new page for the tab folder
 */
@Override
Composite createTabFolderPage (TabFolder tabFolder) {
  super.createTabFolderPage (tabFolder);
  /*
   * Add a resize listener to the tabFolderPage so that
   * if the user types into the example widget to change
   * its preferred size, and then resizes the shell, we
   * recalculate the preferred size correctly.
   */
  tabFolderPage.addControlListener(ControlListener.controlResizedAdapter(e ->	setExampleWidgetSize ()));
  return tabFolderPage;
}
origin: org.eclipse.platform/org.eclipse.swt.examples

/**
 * Creates the tab folder page.
 *
 * @param tabFolder org.eclipse.swt.widgets.TabFolder
 * @return the new page for the tab folder
 */
@Override
Composite createTabFolderPage (TabFolder tabFolder) {
  super.createTabFolderPage (tabFolder);
  /*
   * Add a resize listener to the tabFolderPage so that
   * if the user types into the example widget to change
   * its preferred size, and then resizes the shell, we
   * recalculate the preferred size correctly.
   */
  tabFolderPage.addControlListener(ControlListener.controlResizedAdapter(e ->	setExampleWidgetSize ()));
  return tabFolderPage;
}
origin: org.eclipse.platform/org.eclipse.swt.examples

/**
 * Creates the tab folder page.
 *
 * @param tabFolder org.eclipse.swt.widgets.TabFolder
 * @return the new page for the tab folder
 */
@Override
Composite createTabFolderPage (TabFolder tabFolder) {
  super.createTabFolderPage (tabFolder);
  /*
   * Add a resize listener to the tabFolderPage so that
   * if the user types into the example widget to change
   * its preferred size, and then resizes the shell, we
   * recalculate the preferred size correctly.
   */
  tabFolderPage.addControlListener(ControlListener.controlResizedAdapter(e ->	setExampleWidgetSize ()));
  return tabFolderPage;
}
origin: stackoverflow.com

 @Override
protected void createFormContent(IManagedForm managedForm) {
  // set the form's body's layout to GridLayout
  final Composite body = managedForm.getForm().getBody();
  body.setLayout(new GridLayout());

  // create the composite which should not have the scrollbar and set its layout data
  // to GridData with width and height hints equal to the size of the form's body
  final Composite notScrolledComposite = managedForm.getToolkit().createComposite(body);
  final GridData gdata = GridDataFactory.fillDefaults()
      .grab(true, true)
      .hint(body.getClientArea().width, body.getClientArea().height)
      .create();
  notScrolledComposite.setLayoutData(gdata);

  // add resize listener so the composite's width and height hints are updates when
  // the form's body resizes
  body.addControlListener(new ControlAdapter() {
    @Override
    public void controlResized(ControlEvent e) {
      super.controlResized(e);
      gdata.widthHint = body.getClientArea().width;
      gdata.heightHint = body.getClientArea().height;
      notScrolledComposite.layout(true);
    }
  });
}
org.eclipse.swt.widgetsCompositeaddControlListener

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