T - the type of values in the field, which might not be the same type
as that of the data source if converters are usedcom.vaadin.ui.Field. It is provided for compatibility
and migration purposes. As of 8.0, new field components should
extend AbstractField instead.@Deprecated public interface Field<T> extends Component.Focusable, BufferedValidatable, Property<T>, Property.ValueChangeNotifier, Property.ValueChangeListener, Property.Editor
AbstractField base class.
The Field interface inherits the Component superinterface and also
the Property interface to have a value for the field.| Modifier and Type | Interface and Description |
|---|---|
static class |
Field.ValueChangeEvent
Deprecated.
As of 8.0, replaced by
Field.ValueChangeEvent. |
Component.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitBuffered.SourceExceptionProperty.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.ViewerSIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
Clears the value of the field.
|
String |
getRequiredError()
Deprecated.
Gets the error message that is to be displayed if a required field is
empty.
|
boolean |
isEmpty()
Deprecated.
Is the field empty?
In general, "empty" state is same as null.
|
boolean |
isRequired()
Deprecated.
Is this field required.
|
void |
setRequired(boolean required)
Deprecated.
Sets the field required.
|
void |
setRequiredError(String requiredMessage)
Deprecated.
Sets the error message to be displayed if a required field is empty.
|
focus, getTabIndex, setTabIndexaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedisInvalidCommitted, setInvalidCommittedcommit, discard, isBuffered, isModified, setBufferedaddValidator, getValidators, isInvalidAllowed, isValid, removeAllValidators, removeValidator, setInvalidAllowed, validategetType, getValue, isReadOnly, setReadOnly, setValueaddListener, addValueChangeListener, removeListener, removeValueChangeListenervalueChangegetPropertyDataSource, setPropertyDataSourceboolean isRequired()
true if the field is required,otherwise
false.void setRequired(boolean required)
required - Is the field required.void setRequiredError(String requiredMessage)
requiredMessage - Error message.String getRequiredError()
boolean isEmpty()
void clear()
The field value is typically reset to the initial value of the field.
Calling isEmpty() on a cleared field must always returns true.
Copyright © 2019 Vaadin Ltd. All rights reserved.