T - field typepublic class FieldLayout<T> extends HorizontalLayout implements Field<T>
HorizontalLayout that also exposes an internally wrapped Field. This is useful when you
have an existing Field and want to display it differently and/or with additional Components
but still need it to function as a Field from a data perspective.
The layout is initially empty; use HorizontalLayout.addComponent() to add content.
Field.ValueChangeEventBuffered.SourceExceptionProperty.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.ViewerComponent.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitLayout.AlignmentHandler, Layout.MarginHandler, Layout.SpacingHandlerHasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener| Modifier and Type | Field and Description |
|---|---|
protected Field<T> |
field |
ALIGNMENT_DEFAULT, componentsDESIGN_ATTR_PLAIN_TEXTSIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS| Constructor and Description |
|---|
FieldLayout(Field<T> field)
Constructor.
|
getStateaddComponent, addComponent, addComponentAsFirst, addLayoutClickListener, addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, getState, isSpacing, iterator, readDesign, removeComponent, removeLayoutClickListener, removeListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesignreadMargin, writeMarginaddComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResourceclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdgetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedaddComponents, addListener, addListener, getComponentIterator, moveComponentsFrom, removeAllComponents, removeListener, removeListenerforEach, spliteratoraddComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListenerpublic String getRequiredError()
getRequiredError in interface Field<T>public void setRequiredError(String requiredError)
setRequiredError in interface Field<T>public boolean isRequired()
isRequired in interface Field<T>public void setRequired(boolean required)
setRequired in interface Field<T>public void focus()
focus in interface Component.Focusablefocus in class AbstractComponentpublic int getTabIndex()
getTabIndex in interface Component.Focusablepublic void setTabIndex(int index)
setTabIndex in interface Component.Focusablepublic boolean isInvalidCommitted()
isInvalidCommitted in interface BufferedValidatablepublic void setInvalidCommitted(boolean invalidCommitted)
setInvalidCommitted in interface BufferedValidatablepublic void commit()
throws Buffered.SourceException
commit in interface BufferedBuffered.SourceExceptionpublic void discard()
throws Buffered.SourceException
discard in interface BufferedBuffered.SourceExceptionpublic void setBuffered(boolean buffered)
setBuffered in interface Bufferedpublic boolean isBuffered()
isBuffered in interface Bufferedpublic boolean isModified()
isModified in interface Bufferedpublic void addValidator(Validator validator)
addValidator in interface Validatablepublic void removeValidator(Validator validator)
removeValidator in interface Validatablepublic void removeAllValidators()
removeAllValidators in interface Validatablepublic Collection<Validator> getValidators()
getValidators in interface Validatablepublic boolean isValid()
isValid in interface Validatablepublic void validate()
throws Validator.InvalidValueException
validate in interface ValidatableValidator.InvalidValueExceptionpublic boolean isInvalidAllowed()
isInvalidAllowed in interface Validatablepublic void setInvalidAllowed(boolean invalidAllowed)
setInvalidAllowed in interface Validatablepublic boolean isReadOnly()
isReadOnly in interface Property<T>isReadOnly in interface ComponentisReadOnly in class AbstractComponentpublic void setReadOnly(boolean readOnly)
setReadOnly in interface Property<T>setReadOnly in interface ComponentsetReadOnly in class AbstractComponentpublic void addValueChangeListener(Property.ValueChangeListener listener)
addValueChangeListener in interface Property.ValueChangeNotifierpublic void removeValueChangeListener(Property.ValueChangeListener listener)
removeValueChangeListener in interface Property.ValueChangeNotifierpublic void addListener(Property.ValueChangeListener listener)
addListener in interface Property.ValueChangeNotifierpublic void removeListener(Property.ValueChangeListener listener)
removeListener in interface Property.ValueChangeNotifierpublic void valueChange(Property.ValueChangeEvent event)
valueChange in interface Property.ValueChangeListenerpublic void setPropertyDataSource(Property newDataSource)
setPropertyDataSource in interface Property.Viewerpublic Property getPropertyDataSource()
getPropertyDataSource in interface Property.ViewerCopyright © 2017. All rights reserved.