public class CubaTimeField
extends com.vaadin.ui.AbstractField<java.time.LocalTime>
Modifier and Type | Class and Description |
---|---|
protected class |
CubaTimeField.AbstractTextFieldFocusAndBlurRpcImpl |
protected class |
CubaTimeField.AbstractTextFieldServerRpcImpl |
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 |
placeholder |
protected java.lang.String |
timeFormat |
protected java.time.LocalTime |
value |
Constructor and Description |
---|
CubaTimeField() |
Modifier and Type | Method and Description |
---|---|
protected java.time.LocalTime |
applyResolutionToValue(java.time.LocalTime value) |
protected void |
doSetValue(java.time.LocalTime value) |
protected java.lang.String |
formatValue(java.time.LocalTime value) |
protected java.time.format.DateTimeFormatter |
getDateTimeFormatter() |
com.haulmont.cuba.web.widgets.client.timefield.TimeResolution |
getResolution() |
protected java.lang.String |
getResolutionFormat(com.haulmont.cuba.web.widgets.client.timefield.TimeResolution resolution) |
protected java.util.stream.Stream<com.haulmont.cuba.web.widgets.client.timefield.TimeResolution> |
getResolutionsHigherOrEqualTo(com.haulmont.cuba.web.widgets.client.timefield.TimeResolution resolution) |
protected com.haulmont.cuba.web.widgets.client.timefield.CubaTimeFieldState |
getState() |
protected com.haulmont.cuba.web.widgets.client.timefield.CubaTimeFieldState |
getState(boolean markAsDirty) |
java.lang.String |
getTimeFormat() |
java.time.LocalTime |
getValue() |
boolean |
isCaptionManagedByLayout() |
protected java.time.LocalTime |
parseValue(java.lang.String text) |
void |
setCaptionManagedByLayout(boolean captionManagedByLayout) |
void |
setResolution(com.haulmont.cuba.web.widgets.client.timefield.TimeResolution resolution) |
void |
setTimeFormat(java.lang.String timeFormat) |
protected boolean |
setValue(java.time.LocalTime value,
boolean userOriginated) |
protected void |
updateResolution() |
protected void |
updateTimeFormat() |
addValueChangeListener, createValueChange, focus, getCustomAttributes, getTabIndex, isDifferentValue, isReadOnly, isRequiredIndicatorVisible, readDesign, setReadOnly, setRequiredIndicatorVisible, setTabIndex, setValue, writeDesign
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, 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, setLocale, 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, getDefaultValidator, 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, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected java.lang.String placeholder
protected java.lang.String timeFormat
protected java.time.LocalTime value
protected com.haulmont.cuba.web.widgets.client.timefield.CubaTimeFieldState getState()
getState
in class com.vaadin.ui.AbstractField<java.time.LocalTime>
protected com.haulmont.cuba.web.widgets.client.timefield.CubaTimeFieldState getState(boolean markAsDirty)
getState
in class com.vaadin.ui.AbstractField<java.time.LocalTime>
protected boolean setValue(java.time.LocalTime value, boolean userOriginated)
setValue
in class com.vaadin.ui.AbstractField<java.time.LocalTime>
protected void doSetValue(java.time.LocalTime value)
doSetValue
in class com.vaadin.ui.AbstractField<java.time.LocalTime>
protected java.time.LocalTime applyResolutionToValue(java.time.LocalTime value)
public java.time.LocalTime getValue()
public java.lang.String getTimeFormat()
public void setTimeFormat(java.lang.String timeFormat)
protected void updateTimeFormat()
public com.haulmont.cuba.web.widgets.client.timefield.TimeResolution getResolution()
public void setResolution(com.haulmont.cuba.web.widgets.client.timefield.TimeResolution resolution)
protected void updateResolution()
protected java.util.stream.Stream<com.haulmont.cuba.web.widgets.client.timefield.TimeResolution> getResolutionsHigherOrEqualTo(com.haulmont.cuba.web.widgets.client.timefield.TimeResolution resolution)
protected java.lang.String getResolutionFormat(com.haulmont.cuba.web.widgets.client.timefield.TimeResolution resolution)
protected java.time.LocalTime parseValue(java.lang.String text)
protected java.lang.String formatValue(java.time.LocalTime value)
protected java.time.format.DateTimeFormatter getDateTimeFormatter()
public boolean isCaptionManagedByLayout()
public void setCaptionManagedByLayout(boolean captionManagedByLayout)