public class PopupDateField extends DateField
A date entry component, which displays the actual date selector as a popup.
DateField,
InlineDateField,
Serialized FormDateField.UnparsableDateStringAbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEventComponent.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitField.ValueChangeEventBuffered.SourceExceptionProperty.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.ViewerRESOLUTION_DAY, RESOLUTION_HOUR, RESOLUTION_MIN, RESOLUTION_MONTH, RESOLUTION_SEC, RESOLUTION_YEARDESIGN_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 |
|---|
PopupDateField() |
PopupDateField(Property dataSource) |
PopupDateField(String caption) |
PopupDateField(String caption,
Date value) |
PopupDateField(String caption,
Property dataSource) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAssistiveText()
Get the description that explains the usage of the Widget for users of
assistive devices.
|
String |
getInputPrompt()
Gets the current input prompt.
|
protected PopupDateFieldState |
getState()
Returns the shared state bean with information to be sent from the server
to the client.
|
protected PopupDateFieldState |
getState(boolean markAsDirty)
Returns the shared state for this connector.
|
boolean |
isTextFieldEnabled()
Checks whether the text field is enabled (default) or not.
|
void |
paintContent(PaintTarget target)
Paints the Paintable into a UIDL stream.
|
void |
setAssistiveText(String description)
Set a description that explains the usage of the Widget for users of
assistive devices.
|
void |
setInputPrompt(String inputPrompt)
Sets the input prompt - a textual prompt that is displayed when the field
would otherwise be empty, to prompt the user for input.
|
void |
setTextFieldEnabled(boolean state)
Enables or disables the text field.
|
addBlurListener, addFocusListener, addListener, addListener, changeVariables, discard, fireValueChange, getDateFormat, getDateOutOfRangeMessage, getParseErrorMessage, getRangeEnd, getRangeStart, getResolution, getTimeZone, getType, handleUnparsableDateString, isLenient, isShowISOWeekNumbers, readDesign, removeBlurListener, removeFocusListener, removeListener, removeListener, setDateFormat, setDateOutOfRangeMessage, setInternalValue, setLenient, setParseErrorMessage, setRangeEnd, setRangeStart, setResolution, setShowISOWeekNumbers, setTimeZone, setValue, shouldHideErrors, validate, writeDesignaddListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, attach, beforeClientResponse, clear, commit, detach, fireReadOnlyStatusChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, getValue, isBuffered, isEmpty, isImmediate, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, setValue, toString, validate, valueChangeaddContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getExplicitImmediateValue, 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, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, 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, wait, wait, waitmarkAsDirtyisEnabled, isImmediateaddListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, 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, setWidthUndefinedaddShortcutListener, removeShortcutListenerpublic PopupDateField()
public PopupDateField(Property dataSource) throws IllegalArgumentException
IllegalArgumentExceptionpublic PopupDateField(String caption)
public void paintContent(PaintTarget target) throws PaintException
LegacyComponentPaints the Paintable into a UIDL stream. This method creates the UIDL sequence describing it and outputs it to the given UIDL stream.
It is called when the contents of the component should be painted in response to the component first being shown or having been altered so that its visual representation is changed.
paintContent in interface LegacyComponentpaintContent in class DateFieldtarget - the target UIDL stream where the component should paint itself
to.PaintException - if the paint operation failed.public String getInputPrompt()
setInputPrompt(String)public void setInputPrompt(String inputPrompt)
inputPrompt - protected PopupDateFieldState getState()
AbstractComponentprotected PopupDateFieldState getState(boolean markAsDirty)
AbstractClientConnectorgetState in class DateFieldmarkAsDirty - true if the connector should automatically be marked dirty,
false otherwiseAbstractClientConnector.getState()public boolean isTextFieldEnabled()
setTextFieldEnabled(boolean);public void setTextFieldEnabled(boolean state)
http://dev.vaadin.com/ticket/6790.state - true to enable text field, false to disable it.public void setAssistiveText(String description)
description - String with the descriptionpublic String getAssistiveText()
Copyright © 2023 Vaadin Ltd. All rights reserved.