Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite.computeSize()


     * Refresh the scroll bar area.
     * @param scroller the scroller.
     */
    private void refresh(ScrolledComposite scroller) {
        Composite scrollable = (Composite)scroller.getContent();
        scrollable.setSize(scrollable.computeSize(SWT.DEFAULT, SWT.DEFAULT));
        scrollable.layout();
        scroller.setMinSize(scroller.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    }

    public String getSuccessCriteria() {
View Full Code Here


   
    createIdentitySection(rightPane, toolkit);
    createServiceSection(servicePane, toolkit);
   
    leftScrolled.setMinSize(servicePane.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    rightScrolled.setMinSize(rightPane.computeSize(SWT.DEFAULT, SWT.DEFAULT));
  }
 
  /** ********************************************************************** */

  private Section createIdentitySection(Composite parent, FormToolkit toolkit) {
View Full Code Here

                }
            });
            button.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        }
        clientArea.layout(true, true);
        scrolledComposite.setMinHeight(clientArea.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);

        return composite;
    }

}
View Full Code Here

                public void widgetSelected(SelectionEvent e)
                {
                    int count = Integer.parseInt(addMoreButton.getData("rowCount").toString());
                    createARowForCreatingHeadersBinding(composite, ++count);
                    addMoreButton.setData("rowCount", count);
                    scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
                    composite.layout();
                    _form.layout();
                }
            });
         
View Full Code Here

                    composite.layout();
                    _form.layout();
                }
            });
         
        scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
        composite.layout();
    }
   
    /**
     * Adds a row for adding a binding for Headers Exchange. Used by the method, which creates the customized
View Full Code Here

  protected void setErrorMessage(String msg) {
    errorMessageUI.setText(msg);
    Composite shell = errorMessageUI.getParent();
    while (!(shell instanceof Shell))
      shell = shell.getParent();
    shell.setSize(shell.computeSize(-1, -1));
  }

  // subclasses override, and often use super.handleEvent to call this
  public void handleEvent(Event event) {
    if (okButton != null// may be null if handler called from
View Full Code Here

    firstCtrl = GUI.instance.createAtomWidgets(Person.atomData, inScrollComposite, null, this, null, viewData);
    GUI.instance.createAtomWidgets(Person.atomDataNotes, inScrollComposite, null, this, null, viewData);
    GUI.instance.createAtomWidgets(Person.atomDataSources, inScrollComposite, null, this, null, viewData);

    scrolledData.setContent(inScrollComposite);
    int width = Math.max(660, inScrollComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).x);
    int height = inScrollComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).y + 5;
    inScrollComposite.setSize(width, height);
  }

  /**
 
View Full Code Here

    GUI.instance.createAtomWidgets(Person.atomDataNotes, inScrollComposite, null, this, null, viewData);
    GUI.instance.createAtomWidgets(Person.atomDataSources, inScrollComposite, null, this, null, viewData);

    scrolledData.setContent(inScrollComposite);
    int width = Math.max(660, inScrollComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).x);
    int height = inScrollComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).y + 5;
    inScrollComposite.setSize(width, height);
  }

  /**
   * Shell sichtbar machen.
View Full Code Here

    // Widgets erzeugen, zum Editieren.
    GUI.instance.createAtomWidgets(RelationshipPartners.atomDataPartner, inScrollComposite, Relationship.PARTNERS,
        null, this, viewData);

    scrolledData.setContent(inScrollComposite);
    inScrollComposite.setSize(660, inScrollComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).y + 5);
  }

  /**
   * Shell sichtbar machen.
   */
 
View Full Code Here

    secondaryItem2.setControl(secondaryComposite2);

    final ExpandItem secondaryItem3 = new ExpandItem(secondaryExpandBar,
        SWT.NONE, 0);
    secondaryItem3.setText("Secondary item 3");
    secondaryItem3.setHeight(secondaryComposite3.computeSize(SWT.DEFAULT,
        SWT.DEFAULT).y);
    secondaryItem3.setControl(secondaryComposite3);

    /**
     * Fin ExpandBar secondaire
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.