Package org.eclipse.swt.widgets

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


  public void addGroupedListener( int eventType, Listener listener )
    throws IllegalArgumentException, IllegalStateException
  {
    whenNull( listener ).throwIllegalArgument( "Listener must not be null" );
    Composite facade = getFacade();
    facade.addListener( eventType, listener );
  }

  /**
   * <p>
   * Removes a {@link Listener} for the defined  eventType.
View Full Code Here


    Composite body = managedForm.getForm().getBody();
    body.setLayout(new GridLayout(1, true));
    FormToolkit toolkit = managedForm.getToolkit();
    managedForm.addPart(new GeneralInformationSectionPart(body, toolkit));
    managedForm.addPart(new DetailsSectionPart(body, toolkit));
    body.addListener(SWT.Paint, new Listener() {
      @Override
      public void handleEvent(Event event) {
        managedForm.getMessageManager().update();
      }
    });
View Full Code Here

    body.setLayout(new GridLayout(1, true));

    FormToolkit toolkit = managedForm.getToolkit();
    managedForm.addPart(new DependenciesSectionPart(body, toolkit));
    body.addListener(SWT.Paint, new Listener() {
      @Override
      public void handleEvent(Event event) {
        managedForm.getMessageManager().update();
      }
    });
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.