Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.ControlAdapter


    }
    tableColumnLayout.setColumnData(new TableColumn(table, SWT.NONE),
        new ColumnWeightData(0, maxProviderWidth));
    tableColumnLayout.setColumnData(new TableColumn(table, SWT.NONE),
        new ColumnWeightData(100, 100));
    table.getShell().addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent e) {
        if (!showAllMatches) {
          if (!resized) {
            resized = true;
            e.display.timerExec(100, new Runnable() {
View Full Code Here


    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
            hideTabs();
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
            hideTabs();
View Full Code Here

  private Color borderColor = black;
 
  public CardCanvas(Composite parent, int style) {
    super(parent, style | SWT.BORDER | SWT.NO_REDRAW_RESIZE | SWT.NO_BACKGROUND);
    addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent event) {
        redraw();
      }
    });
    addPaintListener(new PaintListener() {
View Full Code Here

    GridLayoutFactory.fillDefaults().spacing(5, 0).numColumns(19).applyTo(thumbnailsComposite);
    thumbnailsComposite.setBackground(bgColor );

    scrolledComposite.setExpandHorizontal(true);
    scrolledComposite.setExpandVertical(true);
    scrolledComposite.addControlListener(new ControlAdapter() {
      private static final long serialVersionUID = 3338040035822519746L;
      @Override
      public void controlResized(final ControlEvent e) {
        computeScrollAreaSize(scrolledComposite);
      }
View Full Code Here

    final ScrolledComposite sc = new ScrolledComposite(parent, SWT.V_SCROLL);
    final Composite composite = new Composite(sc, SWT.NONE);
    composite.setLayout(new GridLayout());
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    sc.setContent(composite);
    sc.addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent e) {
        Rectangle r = sc.getClientArea();
        sc.setMinSize(composite.computeSize(r.width, SWT.DEFAULT));
      }
    });
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.ControlAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.