public class CubaDateField
extends com.vaadin.ui.DateField
implements com.vaadin.event.Action.Container
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.data.HasValue.ValueChangeEvent<V>, com.vaadin.data.HasValue.ValueChangeListener<V>
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, 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
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
dateString |
Constructor and Description |
---|
CubaDateField() |
Modifier and Type | Method and Description |
---|---|
void |
addActionHandler(com.vaadin.event.Action.Handler actionHandler) |
protected com.haulmont.cuba.web.widgets.client.datefield.CubaDateFieldState |
getState() |
protected com.haulmont.cuba.web.widgets.client.datefield.CubaDateFieldState |
getState(boolean markAsDirty) |
protected com.vaadin.data.Result<java.time.LocalDate> |
handleUnparsableDateString(java.lang.String dateString) |
boolean |
isAutofill() |
boolean |
isCaptionManagedByLayout() |
protected boolean |
isValueInRange(java.time.LocalDate value) |
void |
removeActionHandler(com.vaadin.event.Action.Handler actionHandler) |
void |
setAutofill(boolean autofill) |
void |
setCaptionManagedByLayout(boolean captionManagedByLayout) |
void |
setDateFormat(java.lang.String dateFormat) |
void |
setResolution(com.vaadin.shared.ui.datefield.DateResolution resolution) |
protected void |
updateInternal(java.lang.String newDateString,
java.util.Map<java.lang.String,java.lang.Integer> resolutions) |
getAssistiveText, getPlaceholder, isTextFieldEnabled, setAssistiveText, setPlaceholder, setTextFieldEnabled
adjustToResolution, buildDate, convertFromDate, convertToDate, formatDate, getDatePart, getRangeValidator, toType
addBlurListener, addFocusListener, afterDate, beforeClientResponse, convertFromDateString, convertToDateString, doSetValue, getAssistiveLabel, getDateFormat, getDateOutOfRangeMessage, getDateStyle, getDateStyles, getDefaultValidator, getDefaultValue, getParseErrorMessage, getRangeEnd, getRangeStart, getResolution, getResolutions, getValue, getZoneId, isLenient, isPreventInvalidInput, isShowISOWeekNumbers, readDesign, reconstructDateFromFields, setAssistiveLabel, setDateOutOfRangeMessage, setDateStyle, setDaylightSavingTimeRange, setDefaultValue, setLenient, setLocale, setParseErrorMessage, setPreventInvalidInput, setRangeEnd, setRangeStart, setShowISOWeekNumbers, setValue, setZoneId, writeDesign
addValueChangeListener, createValueChange, focus, getCustomAttributes, getTabIndex, isDifferentValue, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible, setTabIndex, setValue
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCubaId, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setCubaId, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredError, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
clear, getEmptyValue, getOptionalValue, isEmpty
addListener, addStyleName, addStyleNames, attach, getCaption, getCubaId, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setCubaId, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected com.haulmont.cuba.web.widgets.client.datefield.CubaDateFieldState getState()
getState
in class com.vaadin.ui.DateField
protected com.haulmont.cuba.web.widgets.client.datefield.CubaDateFieldState getState(boolean markAsDirty)
getState
in class com.vaadin.ui.DateField
public void setDateFormat(java.lang.String dateFormat)
setDateFormat
in class com.vaadin.ui.AbstractDateField<java.time.LocalDate,com.vaadin.shared.ui.datefield.DateResolution>
protected void updateInternal(java.lang.String newDateString, java.util.Map<java.lang.String,java.lang.Integer> resolutions)
updateInternal
in class com.vaadin.ui.AbstractDateField<java.time.LocalDate,com.vaadin.shared.ui.datefield.DateResolution>
protected boolean isValueInRange(java.time.LocalDate value)
isValueInRange
in class com.vaadin.ui.AbstractDateField<java.time.LocalDate,com.vaadin.shared.ui.datefield.DateResolution>
protected com.vaadin.data.Result<java.time.LocalDate> handleUnparsableDateString(java.lang.String dateString)
handleUnparsableDateString
in class com.vaadin.ui.AbstractLocalDateField
public void setResolution(com.vaadin.shared.ui.datefield.DateResolution resolution)
setResolution
in class com.vaadin.ui.AbstractDateField<java.time.LocalDate,com.vaadin.shared.ui.datefield.DateResolution>
public void addActionHandler(com.vaadin.event.Action.Handler actionHandler)
addActionHandler
in interface com.vaadin.event.Action.Container
public void removeActionHandler(com.vaadin.event.Action.Handler actionHandler)
removeActionHandler
in interface com.vaadin.event.Action.Container
public boolean isCaptionManagedByLayout()
public void setCaptionManagedByLayout(boolean captionManagedByLayout)
public void setAutofill(boolean autofill)
public boolean isAutofill()