@Tag(value="input") public class Input extends AbstractSinglePropertyField<Input,String> implements Focusable<Input>, HasSize, HasStyle
<input> element.AbstractField.ComponentValueChangeEvent<C extends Component,V>BlurNotifier.BlurEvent<C extends Component>FocusNotifier.FocusEvent<C extends Component>HasValue.ValueChangeEvent<V>, HasValue.ValueChangeListener<E extends HasValue.ValueChangeEvent<?>>| Constructor and Description |
|---|
Input()
Creates a new input without any specific type.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getPlaceholder()
Gets the placeholder text.
|
String |
getType()
Gets the type of this input.
|
void |
setPlaceholder(String placeholder)
Sets the placeholder text that is shown if the input is empty.
|
void |
setType(String type)
Sets the type of this input.
|
hasValidValue, setPresentationValue, setSynchronizedEventaddValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, setValue, valueEqualsaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitblur, focus, getTabIndex, setTabIndexaddBlurListeneraddFocusListenerisEnabled, setEnabledgetElementgetHeight, getWidth, setHeight, setSizeFull, setSizeUndefined, setWidthaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameisReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisibleclear, getOptionalValueaddAttachListeneraddDetachListenerpublic void setPlaceholder(String placeholder)
placeholder - the placeholder text to set, or null to remove
the placeholderpublic Optional<String> getPlaceholder()
setPlaceholder(String)public void setType(String type)
type - the type, not nullpublic String getType()
Copyright © 2018. All rights reserved.