public class InlineDateField extends AbstractLocalDateField
AbstractLocalDateField,
DateField,
Serialized FormComponent.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitHasValue.ValueChangeEvent<V>, HasValue.ValueChangeListener<V>DESIGN_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 |
|---|
InlineDateField()
Constructs an empty
InlineDateField with no caption. |
InlineDateField(HasValue.ValueChangeListener<LocalDate> valueChangeListener)
Constructs a new
InlineDateField with a value change listener. |
InlineDateField(String caption)
Constructs an empty
InlineDateField with caption. |
InlineDateField(String caption,
HasValue.ValueChangeListener<LocalDate> valueChangeListener)
Constructs a new
InlineDateField with the given caption and a
value change listener. |
InlineDateField(String caption,
LocalDate value)
Constructs a new
InlineDateField with the given caption and
initial text contents. |
InlineDateField(String caption,
LocalDate value,
HasValue.ValueChangeListener<LocalDate> valueChangeListener)
Constructs a new
InlineDateField with the given caption, initial
text contents and a value change listener. |
| Modifier and Type | Method and Description |
|---|---|
protected InlineDateFieldState |
getState()
Returns the shared state bean with information to be sent from the server
to the client.
|
protected InlineDateFieldState |
getState(boolean markAsDirty)
Returns the shared state for this connector.
|
buildDate, convertFromDate, convertToDate, getDatePart, getRangeValidatoraddBlurListener, addFocusListener, changeVariables, doSetValue, fireEvent, getDateFormat, getDateOutOfRangeMessage, getParseErrorMessage, getRangeEnd, getRangeStart, getResolution, getValue, handleUnparsableDateString, isLenient, isShowISOWeekNumbers, paintContent, readDesign, setDateFormat, setDateOutOfRangeMessage, setLenient, setParseErrorMessage, setRangeEnd, setRangeStart, setResolution, setShowISOWeekNumbers, setValue, writeDesignaddValueChangeListener, createValueChange, focus, getCustomAttributes, getTabIndex, isDifferentValue, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible, setTabIndex, setValueaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, 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, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitmarkAsDirtyisEnabledaddListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdgetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedclear, getEmptyValue, getOptionalValue, isEmptypublic InlineDateField()
InlineDateField with no caption.public InlineDateField(String caption, LocalDate value)
InlineDateField with the given caption and
initial text contents.caption - the caption String for the editor.value - the LocalDate value.public InlineDateField(String caption)
InlineDateField with caption.caption - the caption of the datefield.public InlineDateField(HasValue.ValueChangeListener<LocalDate> valueChangeListener)
InlineDateField with a value change listener.
The listener is called when the value of this InlineDateField is
changed either by the user or programmatically.
valueChangeListener - the value change listener, not nullpublic InlineDateField(String caption, HasValue.ValueChangeListener<LocalDate> valueChangeListener)
InlineDateField with the given caption and a
value change listener.
The listener is called when the value of this InlineDateField is
changed either by the user or programmatically.
caption - the caption for the fieldvalueChangeListener - the value change listener, not nullpublic InlineDateField(String caption, LocalDate value, HasValue.ValueChangeListener<LocalDate> valueChangeListener)
InlineDateField with the given caption, initial
text contents and a value change listener.
The listener is called when the value of this InlineDateField is
changed either by the user or programmatically.
caption - the caption for the fieldvalue - the value for the field, not nullvalueChangeListener - the value change listener, not nullprotected InlineDateFieldState getState()
AbstractComponentgetState in class AbstractLocalDateFieldprotected InlineDateFieldState getState(boolean markAsDirty)
AbstractClientConnectorgetState in class AbstractLocalDateFieldmarkAsDirty - true if the connector should automatically be marked dirty,
false otherwiseAbstractClientConnector.getState()Copyright © 2017 Vaadin Ltd. All rights reserved.