Package com.google.gwt.user.client

Examples of com.google.gwt.user.client.Element.cast()


      // If no image element has been created yet, create one from the
      // prototype.
      DOM.appendChild(holder, proto.createElement().<Element> cast());
    } else {
      // Otherwise, simply apply the prototype to the existing element.
      proto.applyTo(child.<ImagePrototypeElement> cast());
    }
  }

  private void updateAriaAttributes() {
View Full Code Here


      // If no image element has been created yet, create one from the
      // prototype.
      DOM.appendChild(holder, proto.createElement().<Element> cast());
    } else {
      // Otherwise, simply apply the prototype to the existing element.
      proto.applyTo(child.<ImagePrototypeElement> cast());
    }
  }

  private void updateAriaAttributes() {
View Full Code Here

    public void setImage(AbstractImagePrototype image) {
      Element child = DOM.getFirstChild(this.image);
      if (child == null) {
        DOM.appendChild(this.image, image.createElement().<Element> cast());
      } else {
        image.applyTo(child.<AbstractImagePrototype.ImagePrototypeElement> cast());
      }
    }

    public void setLabel(String label) {
      this.label.setInnerHTML(label);
View Full Code Here

      NodeList<Element> nodes = el().select(checkBoxSelector);
      int index = store.indexOf(m);
      if (index != -1) {
        Element e = nodes.getItem(index);
        if (e != null) {
          ((InputElement) e.cast()).setChecked(checked);
        }
      }
    } else {
      if (checkedPreRender == null) {
        checkedPreRender = new ArrayList<M>();
View Full Code Here

  }

  protected void onTargetMouseOut(MouseOutEvent event) {
    Element source = event.getNativeEvent().getEventTarget().cast();
    Element to = event.getNativeEvent().getRelatedEventTarget().cast();
    if (to == null || !source.isOrHasChild(to.<Element> cast())) {
      onTargetOut(event.getNativeEvent().<Event> cast());
    }
  }

  protected void onTargetMouseOver(MouseOverEvent event) {
View Full Code Here

      // If no image element has been created yet, create one from the
      // prototype.
      DOM.appendChild(holder, proto.createElement().<Element> cast());
    } else {
      // Otherwise, simply apply the prototype to the existing element.
      proto.applyTo(child.<ImagePrototypeElement> cast());
    }
  }

  private void updateAriaAttributes() {
View Full Code Here

      }

      @Override
      public ImagePrototypeElement createElement() {
        Element img = DOM.createImg();
        applyTo(img.<ImagePrototypeElement> cast());
        return img.cast();
      }

      @Override
      public Image createImage() {
View Full Code Here

      @Override
      public ImagePrototypeElement createElement() {
        Element img = DOM.createImg();
        applyTo(img.<ImagePrototypeElement> cast());
        return img.cast();
      }

      @Override
      public Image createImage() {
        // NOTE: This class is only used internally and, therefore only needs
View Full Code Here

      // If no image element has been created yet, create one from the
      // prototype.
      DOM.appendChild(holder, proto.createElement().<Element> cast());
    } else {
      // Otherwise, simply apply the prototype to the existing element.
      proto.applyTo(child.<ImagePrototypeElement> cast());
    }
  }

  private void updateAriaAttributes() {
View Full Code Here

      }

      @Override
      public ImagePrototypeElement createElement() {
        Element img = DOM.createImg();
        applyTo(img.<ImagePrototypeElement>cast());
        return img.cast();
      }

      @Override
      public Image createImage() {
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.