com.vaadin.ui
Interface Field<T>
- All Superinterfaces:
- Buffered, BufferedValidatable, ClientConnector, Component, Component.Focusable, com.vaadin.shared.Connector, Property<T>, Property.Editor, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer, java.io.Serializable, Sizeable, Validatable
- All Known Implementing Classes:
- AbstractField, AbstractSelect, AbstractTextField, CheckBox, ComboBox, CustomField, DateField, Form, InlineDateField, ListSelect, NativeSelect, OptionGroup, PasswordField, PopupDateField, ProgressBar, ProgressIndicator, RichTextArea, Select, Slider, Table, TextArea, TextField, Tree, TreeTable, TwinColSelect
public interface Field<T>
- extends Component, BufferedValidatable, Property<T>, Property.ValueChangeNotifier, Property.ValueChangeListener, Property.Editor, Component.Focusable
Field interface is implemented by all classes (field components) that have a
value that the user can change through the user interface.
Field components are built upon the framework defined in the Field interface
and the com.vaadin.AbstractField base class.
The Field interface inherits the Component
superinterface and also the com.vaadin.ui.Property interface to have
a value for the field.
- Author:
- Vaadin Ltd., IT Mill Ltd.
|
Nested Class Summary |
static class |
Field.ValueChangeEvent
An Event object specifying the Field whose value has been
changed. |
|
Method Summary |
java.lang.String |
getRequiredError()
Gets the error message that is to be displayed if a required field is
empty. |
boolean |
isRequired()
Is this field required. |
void |
setRequired(boolean required)
Sets the field required. |
void |
setRequiredError(java.lang.String requiredMessage)
Sets the error message to be displayed if a required field is empty. |
| Methods inherited from interface com.vaadin.ui.Component |
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible |
| Methods inherited from interface com.vaadin.server.ClientConnector |
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
| Methods inherited from interface com.vaadin.shared.Connector |
getConnectorId |
| Methods inherited from interface com.vaadin.server.Sizeable |
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined |
isRequired
boolean isRequired()
- Is this field required.
Required fields must filled by the user.
- Returns:
true if the field is required,otherwise
false.- Since:
- 3.1
setRequired
void setRequired(boolean required)
- Sets the field required. Required fields must filled by the user.
- Parameters:
required - Is the field required.- Since:
- 3.1
setRequiredError
void setRequiredError(java.lang.String requiredMessage)
- Sets the error message to be displayed if a required field is empty.
- Parameters:
requiredMessage - Error message.- Since:
- 5.2.6
getRequiredError
java.lang.String getRequiredError()
- Gets the error message that is to be displayed if a required field is
empty.
- Returns:
- Error message.
- Since:
- 5.2.6
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.