public class UIDateTextBox extends com.vaadin.ui.PopupDateField implements UIComponent, UIComponentWithInputPrompt, UIField, UIComponentWithHints2
com.vaadin.ui.DateField.UnparsableDateString
com.vaadin.ui.AbstractField.FocusShortcut, com.vaadin.ui.AbstractField.ReadOnlyStatusChangeEvent
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
com.vaadin.server.Sizeable.Unit
com.vaadin.ui.Field.ValueChangeEvent
com.vaadin.data.Buffered.SourceException
com.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, setTextFieldEnabled
addBlurListener, 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, writeDesign
addListener, 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, valueChange
addContextClickListener, 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, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getInputPrompt, setInputPrompt
isRequired, setRequired
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected boolean hasInvalidDateString
public UIDateTextBox(UIComponentData componentData)
componentData
- public void setDateFormat(String formatPattern)
setDateFormat
in class com.vaadin.ui.DateField
protected 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()
UIComponent
UIComponentData.getHints()
.refresh
in interface UIComponent
public void changeVariables(Object source, Map<String,Object> variables)
changeVariables
in interface com.vaadin.server.VariableOwner
changeVariables
in class com.vaadin.ui.DateField
protected Date handleUnparsableDateString(String dateString) throws com.vaadin.data.util.converter.Converter.ConversionException
handleUnparsableDateString
in class com.vaadin.ui.DateField
com.vaadin.data.util.converter.Converter.ConversionException
public void validate() throws com.vaadin.data.Validator.InvalidValueException
validate
in interface com.vaadin.data.Validatable
validate
in class com.vaadin.ui.DateField
com.vaadin.data.Validator.InvalidValueException
public UIComponentData getComponentData()
UIComponent
getComponentData
in interface UIComponent
public com.vaadin.ui.AbstractComponent getWidget()
UIComponent
getWidget
in interface UIComponent
public boolean applyHint(String hintName, Variant<Object> newValue, Variant<Object> oldValue)
UIComponentWithHints2
applyHint
in interface UIComponentWithHints2
hintName
- 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)
UIComponentWithHints2
unapplyHint
in interface UIComponentWithHints2
hintName
- 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.