Examples of UIObject


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

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

      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

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

               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

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

   }

   @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

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

public class GwtMockitoWidgetBaseClassesTest {

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

Examples of org.andrewberman.ui.ifaces.UIObject

     */
    for (int i = delegates.size() - 1; i >= 0; i--)
    {
      if (e.isConsumed())
        break;
      UIObject ui = (UIObject) delegates.get(i);
      if (ui == FocusManager.instance.getFocusedObject())
        continue;
      ui.mouseEvent(e, screen, model);
    }
  }
View Full Code Here

Examples of org.andrewberman.ui.ifaces.UIObject

     */
    for (int i = delegates.size() - 1; i >= 0; i--)
    {
      if (e.isConsumed())
        break;
      UIObject ui = (UIObject) delegates.get(i);
      if (ui == FocusManager.instance.getFocusedObject())
        continue;
      ui.keyEvent(e);
    }
    /*
     * Lastly, dispatch to the tool manager if not consumed.
     */
    if (!e.isConsumed())
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIObject

import javax.faces.context.FacesContext;
import java.io.IOException;

public class ObjectRenderer extends LayoutComponentRendererBase {
  public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
    UIObject object = (UIObject) component;
    TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);

    writer.startElement(HtmlElements.IFRAME, object);
    writer.writeAttribute(HtmlAttributes.FRAMEBORDER, "0", false);
    writer.writeIdAttribute(object.getClientId(facesContext));
    writer.writeNameAttribute(object.getClientId(facesContext));
    HtmlRendererUtils.writeDataAttributes(facesContext, writer, object);
    final String src = object.getSrc();
    if (src != null) {
      writer.writeAttribute(HtmlAttributes.SRC, src, true);
    } else {
      writer.writeAttribute(HtmlAttributes.SRC, ResourceManagerUtils.getBlankPage(facesContext), false);
    }
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIObject

import javax.faces.context.FacesContext;
import java.io.IOException;

public class ObjectRenderer extends LayoutComponentRendererBase {
  public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
    UIObject object = (UIObject) component;
    TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);

    writer.startElement(HtmlElements.IFRAME, object);
    writer.writeAttribute(HtmlAttributes.FRAMEBORDER, "0", false);
    writer.writeIdAttribute(object.getClientId(facesContext));
    writer.writeNameAttribute(object.getClientId(facesContext));
    Object src = object.getSrc();
    if (src != null) {
      writer.writeAttribute(HtmlAttributes.SRC, String.valueOf(src), true);
    } else {
      writer.writeAttribute(HtmlAttributes.SRC, ResourceManagerUtils.getBlankPage(facesContext), false);
    }
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIObject

  }

  @Override
  protected void setProperties(final UIComponent uiComponent) {
    super.setProperties(uiComponent);
    final UIObject component = (UIObject) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (markup != null) {
      if (!markup.isLiteralText()) {
        component.setValueExpression("markup", markup);
      } else {
        component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
      }
    }
    if (src != null) {
      component.setValueExpression("src", src);
    }

  }
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.