Package org.eclipse.swt.widgets

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


        endPeriodText.setEnabled(true);
        data = new GridData();
        data.widthHint = 80;
        endPeriodText.setLayoutData(data);

        combo.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                setPeriod(combo.getSelectionIndex());
                if (combo.getSelectionIndex() == 0) {
                    periodLabel.setEnabled(true);
                    atLabel.setEnabled(true);
View Full Code Here


        endPeriodText = new DateText(composite, SWT.SINGLE | SWT.BORDER);
        endPeriodText.setValue(today.getDate());
        endPeriodText.setEnabled(true);

        combo.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                if (combo.getSelectionIndex() == 0) {
                    periodLabel.setEnabled(true);
                    startPeriodText.setEnabled(true);
                    atLabel.setEnabled(true);
View Full Code Here

        GridData data = new GridData(GridData.FILL);
        data.widthHint = 180;
        paymentTypeCombo.setLayoutData(data);
       
        Combo combo = paymentTypeCombo.getCombo();
        combo.addListener(SWT.Modify, new Listener(){
          public void handleEvent(Event arg0) {
            if(paymentTypeCombo.getCombo().getText().equals("Cheque")){
              incomingTotalText.setEditable(false);
            } else {
              incomingTotalText.setEditable(true);
View Full Code Here

        for ( int i = 0; i < factTypes.length; i++ ) {
            factsCombo.add( factTypes[i] );
        }
        factsCombo.select( 0 );

        factsCombo.addListener( SWT.Selection,
                                new Listener() {
                                    public void handleEvent(Event event) {
                                        if ( factsCombo.getSelectionIndex() == 0 ) {
                                            return;
                                        }
View Full Code Here

        for ( int i = 0; i < conditionalElements.length; i++ ) {
            conditionalsCombo.add( conditionalElements[i] );
        }
        conditionalsCombo.select( 0 );

        conditionalsCombo.addListener( SWT.Selection,
                                       new Listener() {
                                           public void handleEvent(Event event) {
                                               if ( conditionalsCombo.getSelectionIndex() == 0 ) {
                                                   return;
                                               }
View Full Code Here

                dslCombo.add( sen.toString() );
            }

            dslCombo.select( 0 );

            dslCombo.addListener( SWT.Selection,
                                  new Listener() {
                                      public void handleEvent(Event event) {
                                          if ( dslCombo.getSelectionIndex() == 0 ) {
                                              return;
                                          }
View Full Code Here

            String attr = (String) iterator.next();
            combo.add( attr );
        }
        combo.select( 0 );

        combo.addListener( SWT.Selection,
                           new Listener() {
                               public void handleEvent(Event event) {
                                   if ( combo.getSelectionIndex() == 0 ) {
                                       return;
                                   }
View Full Code Here

        for ( int i = 0; i < fields.length; i++ ) {
            combo.add( fields[i] );
        }
        combo.select( 0 );

        combo.addListener( SWT.Selection,
                           new Listener() {
                               public void handleEvent(Event event) {
                                   if ( combo.getSelectionIndex() == 0 ) {
                                       return;
                                   }
View Full Code Here

                       CompositeFieldConstraint.COMPOSITE_TYPE_AND );
        combo.setData( "Any of (Or)",
                       CompositeFieldConstraint.COMPOSITE_TYPE_OR );
        combo.select( 0 );

        combo.addListener( SWT.Selection,
                           new Listener() {
                               public void handleEvent(Event event) {
                                   if ( combo.getSelectionIndex() == 0 ) {
                                       return;
                                   }
View Full Code Here

                            CompositeFieldConstraint.COMPOSITE_TYPE_AND );
        composites.setData( "Any of (Or)",
                            CompositeFieldConstraint.COMPOSITE_TYPE_OR );
        composites.select( 0 );

        composites.addListener( SWT.Selection,
                                new Listener() {
                                    public void handleEvent(Event event) {
                                        if ( composites.getSelectionIndex() == 0 ) {
                                            return;
                                        }
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.