Codota Logo
Element.getAttribute
Code IndexAdd Codota to your IDE (free)

How to use
getAttribute
method
in
com.google.gwt.user.client.Element

Best Java code snippets using com.google.gwt.user.client.Element.getAttribute (Showing top 20 results out of 315)

  • Common ways to obtain Element
private void myMethod () {
Element e =
  • Codota IconDOM.createDiv()
  • Codota IconDOM.createTR()
  • Codota IconDOM.createTable()
  • Smart code suggestions by Codota
}
origin: kaaproject/kaa

/**
 * Instantiates a new ImageTextButton.
 */
public ImageTextButton(ImageResource imageResource, String text, ClickHandler clickHandler) {
 super();
 if (clickHandler != null) {
  addClickHandler(clickHandler);
 }
 String definedStyles = getElement().getAttribute("style");
 getElement().setAttribute("style", definedStyles + "; vertical-align:middle;");
 this.text = text;
 Element span = DOM.createElement("span");
 span.setInnerText(text);
 DOM.insertChild(getElement(), span, 0);
 Element imageSpan = DOM.createElement("span");
 int spacing;
 if (this.text == null || this.text.trim().equals("")) {
  spacing = 0;
 } else {
  spacing = 16;
 }
 if (imageResource != null) {
  updateImageElementFromImageResource(imageSpan, imageResource, spacing);
 }
 DOM.insertBefore(getElement(), imageSpan, DOM.getFirstChild(getElement()));
}
origin: kaaproject/kaa

 template = GWT.create(Template.class);
String definedStyles = getElement().getAttribute("style");
getElement().setAttribute("style",
  definedStyles + "; vertical-align:middle;");
origin: gwtbootstrap3/gwtbootstrap3

/** {@inheritDoc} */
@Override
public String getPlaceholder() {
  return getElement().getAttribute(PLACEHOLDER);
}
origin: gwtbootstrap3/gwtbootstrap3

/** {@inheritDoc} */
@Override
public String getPlaceholder() {
  return getElement().getAttribute(PLACEHOLDER);
}
origin: gwtbootstrap3/gwtbootstrap3

/** {@inheritDoc} */
@Override
public String getAutoComplete() {
  return getElement().getAttribute(AUTO_COMPLETE);
}
origin: org.gwtbootstrap3/gwtbootstrap3

/** {@inheritDoc} */
@Override
public String getPlaceholder() {
  return getElement().getAttribute(PLACEHOLDER);
}
origin: gwtbootstrap3/gwtbootstrap3

/**
 * Get the attribute name on the UiObject
 *
 * @param attributeName attribute name
 * @return attribute value
 */
public String getAttribute(final String attributeName) {
  return uiObject.getElement().getAttribute(attributeName);
}
origin: org.gwtbootstrap3/gwtbootstrap3

/** {@inheritDoc} */
@Override
public String getPlaceholder() {
  return getElement().getAttribute(PLACEHOLDER);
}
origin: org.gwtbootstrap3/gwtbootstrap3

/**
 * Get the attribute name on the UiObject
 *
 * @param attributeName attribute name
 * @return attribute value
 */
public String getAttribute(final String attributeName) {
  return uiObject.getElement().getAttribute(attributeName);
}
origin: org.gwtbootstrap3/gwtbootstrap3

/** {@inheritDoc} */
@Override
public String getAutoComplete() {
  return getElement().getAttribute(AUTO_COMPLETE);
}
origin: gwtbootstrap/gwt-bootstrap

/**
 * {@inheritDoc}
 */
public String getHref() {
  return getElement().getAttribute("href");
}
origin: gwtbootstrap/gwt-bootstrap

/**
 * Verify if the property "toggle" is set.
 *
 * @return  true: if the data-toggle is equal 'button'
 *          false: otherwise
 */
public boolean isToggle() {
  return getElement().getAttribute(Constants.DATA_TOGGLE).equals("button");
}
origin: GwtMaterialDesign/gwt-material

  @Override
  public String getTarget() {
    return widget.getElement().getAttribute("target");
  }
}
origin: GwtMaterialDesign/gwt-material

@Override
public InputType getType() {
  if (getElement().getAttribute(TYPE) == null || getElement().getAttribute(TYPE).isEmpty()) {
    return null;
  }
  return InputType.valueOf(getElement().getAttribute(TYPE));
}
origin: gwtbootstrap3/gwtbootstrap3

@Override
public InputType getType() {
  if (getElement().getAttribute(TYPE) == null || getElement().getAttribute(TYPE).isEmpty()) { return null; }
  return InputType.valueOf(getElement().getAttribute(TYPE));
}
origin: gwtbootstrap3/gwtbootstrap3

  @Override
  public Toggle getDataToggle() {
    final String toggle = uiObject.getElement().getAttribute(Attributes.DATA_TOGGLE);
    return toggle != null ? Toggle.valueOf(toggle) : null;
  }
}
origin: org.gwtbootstrap3/gwtbootstrap3

  @Override
  public Spy getDataSpy() {
    final String spy = uiObject.getElement().getAttribute(Attributes.DATA_SPY);
    return spy != null ? Spy.valueOf(spy) : null;
  }
}
origin: gwtbootstrap3/gwtbootstrap3

  @Override
  public Spy getDataSpy() {
    final String spy = uiObject.getElement().getAttribute(Attributes.DATA_SPY);
    return spy != null ? Spy.valueOf(spy) : null;
  }
}
origin: org.jboss.ballroom/widgets

  public void execute() {
    String token = LHSNavTreeItem.this.getElement().getAttribute("token");
    framework.getPlaceManager().revealPlaceHierarchy(
        Places.fromString(token)
    );
  }
});
origin: com.github.gwtmaterialdesign/gwt-material-addins

  protected void checkImage(MaterialSideProfile profile) {
    profile.setUrl(URL);
    assertEquals(URL, profile.getUrl());
    assertEquals(RESULT_ATTRIBUTE, profile.getElement().getAttribute("style"));
  }
}
com.google.gwt.user.clientElementgetAttribute

Popular methods of Element

  • getStyle
  • setAttribute
  • appendChild
  • setId
  • getParentElement
  • cast
  • setInnerText
  • getId
  • setInnerHTML
  • addClassName
  • getInnerHTML
  • getFirstChildElement
  • getInnerHTML,
  • getFirstChildElement,
  • getInnerText,
  • getClientWidth,
  • removeChild,
  • getChildCount,
  • getOffsetHeight,
  • removeAttribute,
  • removeClassName

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • startActivity (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • JCheckBox (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now