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

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


            tr.add(a);

            final TableCell nameCell = tr.newTableDataCell();
            nameCell.addStyleName("name");
            final TextBox tb = new TextBox();
            tb.addChangeListener(new ChangeListener() {
                public void onChange(final Widget sender) {
                    final TextBox tb = (TextBox)sender;
                    person.setName(tb.getText());
                }
            });
View Full Code Here


                }
               
            });
        }
       
        this.base.addChangeListener(new ChangeListener() {
            public void onChange(Widget sender) {
               
                changes.firePropertyChange("value", old, getValue() );
                old = (String) getValue();
                changeListeners.fireChange(instance);
View Full Code Here

                }
               
            });
        }
       
        this.base.addChangeListener(new ChangeListener() {
            public void onChange(Widget sender) {
               
                changes.firePropertyChange("value", old, getValue() );
                old = (String) getValue();
                changeListeners.fireChange(instance);
View Full Code Here

                public void onClick(Widget sender) {
                    update();
                }
            });
        this.base.addChangeListener(
            new ChangeListener() {
                public void onChange(Widget sender) {
                    update();
                }

                // foo!
View Full Code Here

        return false;
    }

    private void fireChangeListeners() {
        for (Iterator<ChangeListener> it = this.changeListeners.iterator(); it.hasNext();) {
            ChangeListener l = it.next();
            l.onChange(this);
        }

        if (this.getAction() != null) {
            this.getAction()
                .execute(this);
View Full Code Here

        this.watched = watched;
    }

    @Override
    protected void initListener() {
        this.listener = new ChangeListener() {
                    public void onChange(Widget sender) {
                        update();
                    }
                };
        this.watched.addChangeListener(listener);
View Full Code Here

    final TextBox yearsToDisplayField = new TextBox();

    startYearField.setText("1950");
    yearsToDisplayField.setText("100");

    startYearField.addChangeListener(new ChangeListener() {
      public void onChange(Widget sender) {
        // TODO pending resolution of GWT issue #3233
        // startYearField.addValueChangeHandler(new ValueChangeHandler<String>()
        // {
        // public void onValueChange(ValueChangeEvent<String> event) {
        try {
          // datePicker.setStartYear(Integer.parseInt(event.getValue()));
          datePicker.setStartYear(Integer.parseInt(startYearField.getValue()));
        } catch (NumberFormatException e) {
        
          Log.warning("Invalid number:" + startYearField.getValue());
        }
      }
    });

    yearsToDisplayField.addChangeListener(new ChangeListener() {
      public void onChange(Widget sender) {
        // TODO pending resolution of GWT issue #3233
        // yearsToDisplayField.addValueChangeHandler(new
        // ValueChangeHandler<String>() {
        // public void onValueChange(ValueChangeEvent<String> event) {
View Full Code Here

        "<h2>A very boring demo showing the speed difference of using bulk loading tables.</h2>"));
    panel.add(new Label("Number of rows"));
    final TextBox rows = new TextBox();
    panel.add(rows);
    rows.setText(numRows + "");
    rows.addChangeListener(new ChangeListener() {
      public void onChange(Widget sender) {
        numRows = Integer.parseInt(rows.getText().trim());
      }
    });

    panel.add(new Label("Number of columns"));
    final TextBox columns = new TextBox();
    panel.add(columns);
    columns.addChangeListener(new ChangeListener() {

      public void onChange(Widget sender) {
        numColumns = Integer.parseInt(columns.getText());
      }
    });
View Full Code Here

  private Widget createOptionsPanel() {
    // Populate a list box containing all issues
    for (AbstractIssue issue : issues) {
      issueList.addItem(issue.getHeadline());
    }
    issueList.addChangeListener(new ChangeListener() {
      public void onChange(Widget sender) {
        refreshIssue();
      }
    });
View Full Code Here

    panel.setSpacing(8);
    panel.add(this.fInputLabel);
    panel.add(this.fInputTextArea);

    this.fConverterTypeCombo.setVisibleItemCount(1);
    this.fConverterTypeCombo.addChangeListener(new ChangeListener() {
      public void onChange(Widget sender) {
        int index = fConverterTypeCombo.getSelectedIndex();
        if (index >= 0) {
          if (index <= WIKI_INDEX) {
            fConvertType = CONVERTER_TYPES[index];
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.