Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.ChangeListener


    private TextBox textBoxEditor(final RuleAttribute at) {
        final TextBox box = new TextBox();
        box.setVisibleLength((at.value.length() < 3) ? 3 : at.value.length());
        box.setText(at.value);
        box.addChangeListener(new ChangeListener() {
            public void onChange(Widget w) {
                at.value = box.getText();
            }
        });
View Full Code Here


    private TextBox textBoxEditor(final RuleMetadata rm) {
        final TextBox box = new TextBox();
        box.setVisibleLength((rm.value.length() < 3) ? 3 : rm.value.length());
        box.setText(rm.value);
        box.addChangeListener(new ChangeListener() {
            public void onChange(Widget w) {
                rm.value = box.getText();
            }
        });
View Full Code Here

        if (format == null) {
          newAssetLayout.addAttribute(constants.TypeFormatOfRule(), this.formatChooser );
        } else if ("*".equals(format)) { //NON-NLS
          final TextBox fmt = new TextBox();
          newAssetLayout.addAttribute(constants.FileExtensionTypeFormat(), fmt);
          fmt.addChangeListener(new ChangeListener() {
        public void onChange(Widget w) {
          NewAssetWizard.this.format = fmt.getText();
        }
          });
        }
View Full Code Here

            for (int i = 0; i < availableRules.length; i++) {
                availableRulesBox.addItem(availableRules[i]);
            }
            availableRulesBox.setSelectedIndex(0);
            availableRulesBox.removeChangeListener(ruleSelectionCL);
            ruleSelectionCL = new ChangeListener() {

                public void onChange(Widget w) {
                    t.setText(availableRulesBox.getItemText(availableRulesBox.getSelectedIndex()));
                }
            };

            availableRulesBox.addChangeListener(ruleSelectionCL);
            h.add(availableRulesBox);

        } else {

            final Button showList = new Button(constants.showListButton());
            h.add(showList);
            showList.addClickListener(new ClickListener() {

                public void onClick(Widget w) {
                    h.remove(showList);
                    final Image busy = new Image("images/searching.gif"); //NON-NLS
                    final Label loading = new SmallLabel(constants.loadingList1());
                    h.add(busy);
                    h.add(loading);


                    DeferredCommand.addCommand(new Command() {

                        public void execute() {
                            RepositoryServiceFactory.getService().listRulesInPackage(packageName, new GenericCallback<String[]>() {

                                public void onSuccess(String[] list) {
                                    availableRules = (list);
                                    final ListBox availableRulesBox = new ListBox();
                                    availableRulesBox.addItem(constants.pleaseChoose1());
                                    for (int i = 0; i < list.length; i++) {
                                        availableRulesBox.addItem(list[i]);
                                    }
                                    ruleSelectionCL = new ChangeListener() {

                                        public void onChange(Widget w) {
                                            t.setText(availableRulesBox.getItemText(availableRulesBox.getSelectedIndex()));
                                        }
                                    };
View Full Code Here

    area.setVisibleLines( 8 );

    area.setCharacterWidth( 100 );

    area.setText( this.conf.header );
    area.addChangeListener( new ChangeListener() {
        public void onChange(Widget w) {
             conf.header = area.getText();
        }
    });
View Full Code Here

            hp.add( new SmallLabel( at.attr ) );

            hp.add( removeAttr( at ) );
            final TextBox defaultValue = new TextBox();
            defaultValue.setText( at.defaultValue );
            defaultValue.addChangeListener( new ChangeListener() {
                public void onChange(Widget sender) {
                    at.defaultValue = defaultValue.getText();
                }
            } );
            hp.add( new HTML( "&nbsp;&nbsp;&nbsp;&nbsp;" ) ); //NON-NLS
View Full Code Here

                                                   final TextBox box = new TextBox();
                                                   box.setVisibleLength( 15 );

                                                   list.setSelectedIndex( 0 );

                                                   list.addChangeListener( new ChangeListener() {
                                                       public void onChange(Widget w) {
                                                           AttributeCol attr = new AttributeCol();
                                                           attr.attr = list.getItemText( list.getSelectedIndex() );

                                                           dt.attributeCols.add( attr );
View Full Code Here

        FlexTable layout = new FlexTable();
        layout.setWidget( 0,
                          0,
                          text );

        text.addChangeListener( new ChangeListener() {
            public void onChange(Widget w) {
                data.content = text.getText();
                makeDirty();
            }
        } );
View Full Code Here

                }
                j++;
            }
        }

        box.addChangeListener( new ChangeListener() {
            public void onChange(Widget w) {
                field.expected = box.getItemText( box.getSelectedIndex() );
            }
        } );
View Full Code Here

        final TextBox tb = new TextBox();
        tb.setText( initialValue );
        String m = Format.format( ((Constants) GWT.create( Constants.class )).ValueFor0(),
                                  fieldName );
        tb.setTitle( m );
        tb.addChangeListener( new ChangeListener() {
            public void onChange(Widget w) {
                changed.valueChanged( tb.getText() );
            }
        } );
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.ChangeListener

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.