public interface Field extends DatasourceComponent, Component.HasCaption, Component.HasValue, Component.Editable, Component.BelongToFrame, Component.Validatable, Component.HasIcon
Modifier and Type | Interface and Description |
---|---|
static interface |
Field.Validator
Field validator.
Validators are invoked when Validatable#validate() is called. |
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
void |
addValidator(Field.Validator validator)
Add
Field.Validator instance. |
java.lang.String |
getRequiredMessage() |
java.util.Collection<Field.Validator> |
getValidators() |
boolean |
isRequired() |
void |
removeValidator(Field.Validator validator) |
void |
setRequired(boolean required) |
void |
setRequiredMessage(java.lang.String msg)
A message that will be displayed to user if the field is required but has null value
|
getDatasource, getMetaProperty, getMetaPropertyPath, setDatasource
addListener, addValueChangeListener, getValue, removeListener, removeValueChangeListener, setValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getCaption, getDescription, setCaption, setDescription
isValid, isValidateOnCommit, validate
getIcon, setIcon
boolean isRequired()
void setRequired(boolean required)
void setRequiredMessage(java.lang.String msg)
java.lang.String getRequiredMessage()
void addValidator(Field.Validator validator)
Field.Validator
instance.void removeValidator(Field.Validator validator)
java.util.Collection<Field.Validator> getValidators()