public class UIDateTextBox extends com.vaadin.ui.PopupDateField implements UIComponent, UIComponentWithInputPrompt, UIField, UIComponentWithHints2
com.vaadin.ui.DateField.UnparsableDateStringcom.vaadin.ui.AbstractField.FocusShortcut, com.vaadin.ui.AbstractField.ReadOnlyStatusChangeEventcom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenercom.vaadin.server.Sizeable.Unitcom.vaadin.ui.Field.ValueChangeEventcom.vaadin.data.Buffered.SourceExceptioncom.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.Transactional<T>, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewer| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasInvalidDateString
Flag set to true if the date string entered by the user is invalid.
|
| Constructor and Description |
|---|
UIDateTextBox(UIComponentData componentData) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyHint(String hintName,
Variant<Object> newValue,
Variant<Object> oldValue)
Applies the given hint to this component.
|
void |
changeVariables(Object source,
Map<String,Object> variables) |
UIComponentData |
getComponentData()
Returns the component definition (LSPS RecordHolder instance which is
subtype of "ui::Component") associated with this Vaadin component.
|
protected com.vaadin.shared.ui.datefield.Resolution |
getResolutionFor(List<String> formatPatterns)
Computes the required resolution for the used format pattern.
|
protected com.vaadin.shared.ui.datefield.Resolution |
getResolutionFor(String formatPattern) |
com.vaadin.ui.AbstractComponent |
getWidget()
Returns the Vaadin widget which implements the UI part of this component.
|
protected Date |
handleUnparsableDateString(String dateString) |
void |
refresh()
This method is called from LSPS rendering engine.
|
void |
setDateFormat(String formatPattern) |
String |
toString() |
boolean |
unapplyHint(String hintName,
Variant<Object> oldValue)
The hint has been removed from the hint map.
|
protected void |
updateResolutionFor(List<String> formatPatterns)
Sets the required resolution for the used format pattern.
|
void |
validate() |
getAssistiveText, getInputPrompt, getState, getState, isTextFieldEnabled, paintContent, setAssistiveText, setInputPrompt, setTextFieldEnabledaddBlurListener, addFocusListener, addListener, addListener, discard, fireValueChange, getDateFormat, getDateOutOfRangeMessage, getParseErrorMessage, getRangeEnd, getRangeStart, getResolution, getTimeZone, getType, isLenient, isShowISOWeekNumbers, readDesign, removeBlurListener, removeFocusListener, removeListener, removeListener, setDateOutOfRangeMessage, setInternalValue, setLenient, setParseErrorMessage, setRangeEnd, setRangeStart, setResolution, setShowISOWeekNumbers, setTimeZone, setValue, shouldHideErrors, 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, 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, waitgetInputPrompt, setInputPromptisRequired, setRequiredaddListener, 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, setErrorHandlerprotected boolean hasInvalidDateString
public UIDateTextBox(UIComponentData componentData)
componentData - public void setDateFormat(String formatPattern)
setDateFormat in class com.vaadin.ui.DateFieldprotected void updateResolutionFor(List<String> formatPatterns)
setDateFormat(String).formatPatterns - all format patterns accepted by this date text box. Never null, may be empty if only the default locale format is to be used. In such case,
the Resolution.DAY is applied.protected com.vaadin.shared.ui.datefield.Resolution getResolutionFor(List<String> formatPatterns)
formatPatterns - all format patterns accepted by this date text box. Never null, may be empty if only the default locale format is to be used. In such case,
the Resolution.DAY is returned.protected com.vaadin.shared.ui.datefield.Resolution getResolutionFor(String formatPattern)
public void refresh()
UIComponentUIComponentData.getHints().refresh in interface UIComponentpublic void changeVariables(Object source, Map<String,Object> variables)
changeVariables in interface com.vaadin.server.VariableOwnerchangeVariables in class com.vaadin.ui.DateFieldprotected Date handleUnparsableDateString(String dateString) throws com.vaadin.data.util.converter.Converter.ConversionException
handleUnparsableDateString in class com.vaadin.ui.DateFieldcom.vaadin.data.util.converter.Converter.ConversionExceptionpublic void validate()
throws com.vaadin.data.Validator.InvalidValueException
validate in interface com.vaadin.data.Validatablevalidate in class com.vaadin.ui.DateFieldcom.vaadin.data.Validator.InvalidValueExceptionpublic UIComponentData getComponentData()
UIComponentgetComponentData in interface UIComponentpublic com.vaadin.ui.AbstractComponent getWidget()
UIComponentgetWidget in interface UIComponentpublic boolean applyHint(String hintName, Variant<Object> newValue, Variant<Object> oldValue)
UIComponentWithHints2applyHint in interface UIComponentWithHints2hintName - the hint name, not null.newValue - variant containing the new hint value, never null, may contain null value.oldValue - variant containing the previous hint value, never null, may contain null value if the hint was missing or the old value was null.public boolean unapplyHint(String hintName, Variant<Object> oldValue)
UIComponentWithHints2unapplyHint in interface UIComponentWithHints2hintName - the the hint name, not null.oldValue - variant containing the previous hint value, never null, may contain null value if the old value was null.Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.