Package com.flowingcode.addons.ycalendar
Class YearMonthField
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.AbstractField<C,T>
com.vaadin.flow.component.AbstractSinglePropertyField<YearMonthField,YearMonth>
com.flowingcode.addons.ycalendar.YearMonthField
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,HasEnabled,HasStyle,HasTheme,HasValue<AbstractField.ComponentValueChangeEvent<YearMonthField,,YearMonth>, YearMonth> HasValueAndElement<AbstractField.ComponentValueChangeEvent<YearMonthField,,YearMonth>, YearMonth> Serializable
@Tag("fc-year-month-field")
@JsModule("./fc-year-month-field/fc-year-month-field.js")
public class YearMonthField
extends AbstractSinglePropertyField<YearMonthField,YearMonth>
implements HasTheme
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.AbstractField
AbstractField.ComponentValueChangeEvent<C extends Component,V extends Object> Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue
HasValue.ValueChangeEvent<V extends Object>, HasValue.ValueChangeListener<E extends HasValue.ValueChangeEvent<?>> -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new YearMonthField initializing its value to the current year and month. -
Method Summary
Methods inherited from class com.vaadin.flow.component.AbstractSinglePropertyField
getSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEventMethods inherited from class com.vaadin.flow.component.AbstractField
addValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, setValue, valueEqualsMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.HasValue
clear, getOptionalValueMethods inherited from interface com.vaadin.flow.component.HasValueAndElement
isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible
-
Constructor Details
-
YearMonthField
public YearMonthField()Constructs a new YearMonthField initializing its value to the current year and month.
-
-
Method Details
-
setI18n
Sets the i18n object.- Parameters:
i18n- the DatepickerI18n object used to initialize i18n
-
setMin
Sets the minimum year/month in the field.- Parameters:
min- the minimum year/month that is allowed to be selected, ornullto remove any minimum constraints
-
getMin
Gets the minimum year/month in the field.- Returns:
- the minimum year/month that is allowed to be selected, or
nullif there's no minimum
-
setMax
Sets the maximum year/month in the field.- Parameters:
max- the maximum year/month that is allowed to be selected, ornullto remove any maximum constraints
-
getMax
Gets the maximum year/month in the field.- Returns:
- the maximum year/month that is allowed to be selected, or
nullif there's no maximum
-