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

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


        object.setStyleName( this.styleName );
        Logger.getAnonymousLogger().log( Level.SPAM,  "Current style: "+ object.getStyleName(), null );
    }
   
    public void resolve(Object source) {
        UIObject object = (UIObject) source;
        String previousStyle = (String) this.previousStyles.get(source);
        if( previousStyle != null ){
            GWT.log( "Reverting to style:" + previousStyle, null  );
            object.setStyleName( previousStyle );
            GWT.log( object.toString(), null  );
            this.previousStyles.remove( source );
        }
    }
View Full Code Here


      if (actual == null || !UIObject.class.isInstance(actual)) {
         return;
      }

      UIObject object = (UIObject) actual;

      boolean visible = false;
      visible = WidgetUtils.isWidgetVisible(object);
      if (visible && object instanceof Widget) {
         Widget w = (Widget) object;
         visible = w.isAttached();
      }
      assertThat(visible).overridingErrorMessage("%s [%s] should not be visible", prefix(),
               object.getClass().getSimpleName()).isFalse();
   }
View Full Code Here

               object.getClass().getSimpleName()).isFalse();
   }

   @CsvMethod
   public void isVisible(String... identifier) {
      UIObject uiObject = object(identifier).ofType(UIObject.class);

      assertThat(uiObject).withPrefix(prefix()).isVisible();

      if (!GwtConfig.get().getModuleRunner().canDispatchEventsOnDetachedWidgets()
               && Widget.class.isInstance(uiObject)) {
View Full Code Here

   }

   @PatchMethod
   static Element resolve(Element maybePotential) {
      if (isPotential(maybePotential)) {
         UIObject o = JavaScriptObjects.getObject(maybePotential, POTENTIALELEMENT_UIOBJECT);
         GwtReflectionUtils.callPrivateMethod(o, "resolvePotentialElement");

         return JavaScriptObjects.getObject(maybePotential, POTENTIALELEMENT_WRAPPED_ELEMENT);

      } else {
View Full Code Here

public class GwtMockitoWidgetBaseClassesTest {

  @Test
  public void testUiObjects() throws Exception {
    invokeAllAccessibleMethods(new Widget() {});
    invokeAllAccessibleMethods(new UIObject() {});
    invokeAllAccessibleMethods(new Composite() {});
  }
View Full Code Here

TOP

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

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.