@Templated public abstract class NullableValueElement<T> extends Object implements com.google.gwt.user.client.TakesValue<Optional<T>>
| Modifier and Type | Field and Description |
|---|---|
protected Function<String,T> |
valueConverter |
protected elemental2.dom.HTMLInputElement |
valueInput |
| Constructor and Description |
|---|
NullableValueElement() |
| Modifier and Type | Method and Description |
|---|---|
Optional<T> |
getValue() |
elemental2.dom.HTMLInputElement |
getValueInput() |
void |
onHasValueCheckboxUpdate(elemental2.dom.Event e) |
void |
onValueChange(elemental2.dom.Event e) |
boolean |
reportValidity() |
void |
setup(T value,
String labelText) |
void |
setValue(Optional<T> value) |
@Inject @DataField(value="value") protected elemental2.dom.HTMLInputElement valueInput
@EventHandler(value="has-value-checkbox")
public void onHasValueCheckboxUpdate(@ForEvent(value="change")
elemental2.dom.Event e)
@EventHandler(value="value")
public void onValueChange(@ForEvent(value="change")
elemental2.dom.Event e)
public boolean reportValidity()
public elemental2.dom.HTMLInputElement getValueInput()
Copyright © 2017–2019 JBoss by Red Hat. All rights reserved.