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

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


      Object widgetValue =
          Convert.toWidgetValue(widget, propertyTypes.get(property).getType(), newValue, converters.get(property));
      hv.setValue(widgetValue);
    }
    else if (widget instanceof HasText) {
      HasText ht = (HasText) widget;
      Object widgetValue =
          Convert
              .toWidgetValue(String.class, propertyTypes.get(property).getType(), newValue, converters.get(property));
      ht.setText((String) widgetValue);
    }

    knownValues.put(property, newValue);
    PropertyChangeEvent<P> event = new PropertyChangeEvent<P>(proxy, property, oldValue, newValue);
    propertyChangeHandlerSupport.notifyHandlers(event);
View Full Code Here


        Object widgetValue =
            Convert.toWidgetValue(widget, propertyTypes.get(property).getType(), newValue, converter);
        hv.setValue(widgetValue);
      }
      else if (widget instanceof HasText) {
        HasText ht = (HasText) widget;
        Object widgetValue =
            Convert
                .toWidgetValue(String.class, propertyTypes.get(property).getType(), newValue, converter);
        ht.setText((String) widgetValue);
      }
    }

    firePropertyChangeEvent(property, oldValue, newValue);
  }
View Full Code Here

        Object widgetValue =
            Convert.toWidgetValue(widget, propertyTypes.get(property).getType(), newValue, converter);
        hv.setValue(widgetValue);
      }
      else if (widget instanceof HasText) {
        HasText ht = (HasText) widget;
        Object widgetValue =
            Convert.toWidgetValue(String.class, propertyTypes.get(property).getType(), newValue, converter);
        ht.setText((String) widgetValue);
      }
    }

    firePropertyChangeEvent(property, oldValue, newValue);
  }
View Full Code Here

  @Test
  public void testSetNameWithFakes() {
    GwtMockito.useProviderForType(HasText.class, new FakeProvider<HasText>() {
      @Override
      public HasText getFake(Class<?> type) {
        return new HasText() {
          private String text;

          @Override
          public void setText(String text) {
            this.text = text;
View Full Code Here

    // If we don't want to use mocks, we can instead provide fake
    // implementations to be created. Normally you would do this in setUp.
    GwtMockito.useProviderForType(HasText.class, new FakeProvider<HasText>() {
      @Override
      public HasText getFake(Class<?> type) {
        return new HasText() {
          private String text;

          @Override
          public void setText(String text) {
            this.text = text;
View Full Code Here

TOP

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

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.