Codota Logo
HTMLButtonElement
Code IndexAdd Codota to your IDE (free)

How to use
HTMLButtonElement
in
elemental2.dom

Best Java code snippets using elemental2.dom.HTMLButtonElement (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.uberfire/uberfire-workbench-client-views-patternfly

public void setClickHandler(final Command clickHandler) {
  button.addEventListener("click",
              (e) -> clickHandler.execute());
}
origin: DominoKit/domino-ui

@Override
public Select<T> unfocus() {
  if (isEnabled() && !isReadOnly()) {
    if (!isAttached()) {
      onAttached(mutationRecord -> buttonElement.asElement().blur());
    } else {
      buttonElement.asElement().focus();
    }
  }
  return this;
}
origin: org.uberfire/uberfire-workbench-client-views-patternfly

public void addIcon(final String... classes) {
  final HTMLElement span = (HTMLElement) document.createElement("span");
  addClass(span,
       classes);
  button.appendChild(span);
}
origin: DominoKit/domino-ui

@Override
public Select<T> focus() {
  if (isEnabled() && !isReadOnly()) {
    if (!isAttached()) {
      onAttached(mutationRecord -> buttonElement.asElement().focus());
    } else {
      buttonElement.asElement().focus();
    }
  }
  return this;
}
origin: org.jresearch.dominokit/domino-ui

private void doUnfocus() {
  unfloatLabel();
  labelElement.style().remove(focusColor.getStyle());
  formControl.style().remove("fc-" + focusColor.getStyle());
  removeLeftAddonColor(focusColor);
  buttonElement.asElement().blur();
  this.focused = false;
}
origin: org.jresearch.dominokit/domino-ui

@Override
public Select<T> focus() {
  if (isEnabled() && !isReadOnly()) {
    if (!isAttached()) {
      onAttached(mutationRecord -> buttonElement.asElement().focus());
    } else {
      buttonElement.asElement().focus();
    }
  }
  return this;
}
origin: DominoKit/domino-ui

private void doUnfocus() {
  unfloatLabel();
  labelElement.style().remove(focusColor.getStyle());
  formControl.style().remove("fc-" + focusColor.getStyle());
  removeLeftAddonColor(focusColor);
  buttonElement.asElement().blur();
  this.focused = false;
}
origin: kiegroup/appformer

public void setClickHandler(final Command clickHandler) {
  button.addEventListener("click",
              (e) -> clickHandler.execute());
}
origin: org.jresearch.dominokit/domino-ui

@Override
public Select<T> unfocus() {
  if (isEnabled() && !isReadOnly()) {
    if (!isAttached()) {
      onAttached(mutationRecord -> buttonElement.asElement().blur());
    } else {
      buttonElement.asElement().focus();
    }
  }
  return this;
}
origin: org.jresearch.dominokit/domino-ui

private void doFocus() {
  if (isEnabled() && !isReadOnly()) {
    floatLabel();
    if (valid) {
      labelElement.style().add(focusColor.getStyle());
      formControl.style().add("fc-" + focusColor.getStyle());
      setLeftAddonColor(focusColor);
      buttonElement.asElement().focus();
      this.focused = true;
    }
  }
}
origin: kiegroup/appformer

public void addIcon(final String... classes) {
  final HTMLElement span = (HTMLElement) document.createElement("span");
  addClass(span,
       classes);
  button.appendChild(span);
}
origin: org.jresearch.dominokit/domino-ui

public static Alert create() {
  Alert alert = new Alert();
  alert.closeButton.addEventListener("click", e -> alert.asElement().remove());
  return alert;
}
origin: DominoKit/domino-ui

private void doFocus() {
  if (isEnabled() && !isReadOnly()) {
    floatLabel();
    if (valid) {
      labelElement.style().add(focusColor.getStyle());
      formControl.style().add("fc-" + focusColor.getStyle());
      setLeftAddonColor(focusColor);
      buttonElement.asElement().focus();
      this.focused = true;
    }
  }
}
origin: DominoKit/domino-ui

public static Alert create() {
  Alert alert = new Alert();
  alert.closeButton.addEventListener("click", e -> alert.asElement().remove());
  return alert;
}
origin: org.jresearch.dominokit/domino-ui

public static Notification create(String message) {
  Notification notification = new Templated_Notification();
  notification.messageSpan.textContent = message;
  notification.style().add(notification.background.getBackground());
  notification.closeButton.addEventListener("click", e -> notification.close());
  return notification;
}
origin: DominoKit/domino-ui

public static Notification create(String message) {
  Notification notification = new Templated_Notification();
  notification.messageSpan.textContent = message;
  notification.style().add(notification.background.getBackground());
  notification.closeButton.addEventListener("click", e -> notification.close());
  return notification;
}
elemental2.domHTMLButtonElement

Most used methods

  • addEventListener
  • blur
  • focus
  • appendChild

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Join (org.hibernate.mapping)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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