public void setClickHandler(final Command clickHandler) { button.addEventListener("click", (e) -> clickHandler.execute()); }
public void addIcon(final String... classes) { final HTMLElement span = (HTMLElement) document.createElement("span"); addClass(span, classes); button.appendChild(span); }
private void doUnfocus() { unfloatLabel(); labelElement.style().remove(focusColor.getStyle()); formControl.style().remove("fc-" + focusColor.getStyle()); removeLeftAddonColor(focusColor); buttonElement.asElement().blur(); this.focused = false; }
private void doUnfocus() { unfloatLabel(); labelElement.style().remove(focusColor.getStyle()); formControl.style().remove("fc-" + focusColor.getStyle()); removeLeftAddonColor(focusColor); buttonElement.asElement().blur(); this.focused = false; }
public void setClickHandler(final Command clickHandler) { button.addEventListener("click", (e) -> clickHandler.execute()); }
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; } } }
public void addIcon(final String... classes) { final HTMLElement span = (HTMLElement) document.createElement("span"); addClass(span, classes); button.appendChild(span); }
public static Alert create() { Alert alert = new Alert(); alert.closeButton.addEventListener("click", e -> alert.asElement().remove()); return alert; }
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; } } }
public static Alert create() { Alert alert = new Alert(); alert.closeButton.addEventListener("click", e -> alert.asElement().remove()); return alert; }
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; }
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; }