congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Element.getAttribute
Code IndexAdd Tabnine 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)

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 getAutoComplete() {
  return getElement().getAttribute(AUTO_COMPLETE);
}
origin: gwtbootstrap3/gwtbootstrap3

/** {@inheritDoc} */
@Override
public String getPlaceholder() {
  return getElement().getAttribute(PLACEHOLDER);
}
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

/**
 * 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: gwtbootstrap/gwt-bootstrap

/**
 * {@inheritDoc}
 */
public String getHref() {
  return getElement().getAttribute("href");
}
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

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JCheckBox (javax.swing)
  • JTable (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now