public class InlineDateTimeField extends AbstractLocalDateTimeField
AbstractLocalDateTimeField
,
DateTimeField
,
Serialized FormHasValue.ValueChangeEvent<V>, HasValue.ValueChangeListener<V>
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
Sizeable.Unit
DESIGN_ATTR_PLAIN_TEXT
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
Constructor and Description |
---|
InlineDateTimeField()
Constructs an empty
InlineDateTimeField with no caption. |
InlineDateTimeField(HasValue.ValueChangeListener<LocalDateTime> valueChangeListener)
Constructs a new
InlineDateTimeField with a value change
listener. |
InlineDateTimeField(String caption)
Constructs an empty
InlineDateTimeField with caption. |
InlineDateTimeField(String caption,
HasValue.ValueChangeListener<LocalDateTime> valueChangeListener)
Constructs a new
InlineDateTimeField with the given caption and a
value change listener. |
InlineDateTimeField(String caption,
LocalDateTime value)
Constructs a new
InlineDateTimeField with the given caption
and initial text contents. |
InlineDateTimeField(String caption,
LocalDateTime value,
HasValue.ValueChangeListener<LocalDateTime> valueChangeListener)
Constructs a new
InlineDateTimeField with the given caption,
initial text contents and a value change listener. |
Modifier and Type | Method and Description |
---|---|
protected InlineDateTimeFieldState |
getState()
Returns the shared state bean with information to be sent from the server
to the client.
|
protected InlineDateTimeFieldState |
getState(boolean markAsDirty)
Returns the shared state for this connector.
|
buildDate, convertFromDate, convertToDate, formatDate, getDatePart, getRangeValidator
addBlurListener, addFocusListener, beforeClientResponse, doSetValue, getDateFormat, getDateOutOfRangeMessage, getDateStyle, getDateStyles, getDefaultValidator, getDefaultValue, getParseErrorMessage, getRangeEnd, getRangeStart, getResolution, getValue, getZoneId, handleUnparsableDateString, isLenient, isShowISOWeekNumbers, readDesign, reconstructDateFromFields, setDateFormat, setDateOutOfRangeMessage, setDateStyle, setDefaultValue, setLenient, setLocale, setParseErrorMessage, setRangeEnd, setRangeStart, setResolution, setShowISOWeekNumbers, setValue, setZoneId, writeDesign
addValueChangeListener, createValueChange, focus, getCustomAttributes, getTabIndex, isDifferentValue, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible, setTabIndex, setValue
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, 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, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined
addAttachListener, 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, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
clear, getEmptyValue, getOptionalValue, isEmpty
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
public InlineDateTimeField()
InlineDateTimeField
with no caption.public InlineDateTimeField(String caption, LocalDateTime value)
InlineDateTimeField
with the given caption
and initial text contents.caption
- the caption String
for the editor.value
- the LocalDate value.public InlineDateTimeField(String caption)
InlineDateTimeField
with caption.caption
- the caption of the datefield.public InlineDateTimeField(HasValue.ValueChangeListener<LocalDateTime> valueChangeListener)
InlineDateTimeField
with a value change
listener.
The listener is called when the value of this InlineDateTimeField
is changed either by the user or programmatically.
valueChangeListener
- the value change listener, not null
public InlineDateTimeField(String caption, HasValue.ValueChangeListener<LocalDateTime> valueChangeListener)
InlineDateTimeField
with the given caption and a
value change listener.
The listener is called when the value of this InlineDateTimeField
is changed either by the user or programmatically.
caption
- the caption for the fieldvalueChangeListener
- the value change listener, not null
public InlineDateTimeField(String caption, LocalDateTime value, HasValue.ValueChangeListener<LocalDateTime> valueChangeListener)
InlineDateTimeField
with the given caption,
initial text contents and a value change listener.
The listener is called when the value of this InlineDateTimeField
is changed either by the user or programmatically.
caption
- the caption for the fieldvalue
- the value for the field, not null
valueChangeListener
- the value change listener, not null
protected InlineDateTimeFieldState getState()
AbstractComponent
getState
in class AbstractLocalDateTimeField
protected InlineDateTimeFieldState getState(boolean markAsDirty)
AbstractClientConnector
getState
in class AbstractLocalDateTimeField
markAsDirty
- true if the connector should automatically be marked dirty,
false otherwiseAbstractClientConnector.getState()
Copyright © 2018 Vaadin Ltd. All rights reserved.