@Tag(value="fc-year-calendar") @JsModule(value="./fc-year-calendar/fc-year-calendar.js") public class YearCalendar extends AbstractCalendarComponent<YearCalendar> implements com.vaadin.flow.component.HasSize
| Constructor and Description |
|---|
YearCalendar() |
| Modifier and Type | Method and Description |
|---|---|
int |
getYear()
Return the displayed year.
|
void |
refreshAll()
Refresh all the dates that are currently displayed.
|
void |
refreshItem(LocalDate date)
If the year is currently displayed, refresh the given date.
|
void |
setClassNameGenerator(com.vaadin.flow.function.ValueProvider<LocalDate,String> classNameGenerator)
Sets the function that is used for generating CSS class names for rows in this calendar.
|
void |
setReadOnly(boolean readOnly) |
void |
setYear(int year)
Updates the displayed year.
|
addDateSelectedListener, onAttach, setI18naddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic void setYear(int year)
public int getYear()
public void setReadOnly(boolean readOnly)
public void setClassNameGenerator(com.vaadin.flow.function.ValueProvider<LocalDate,String> classNameGenerator)
null from the generator results in no custom class name being set. Multiple
class names can be returned from the generator as space-separated.public void refreshAll()
refreshAll in class AbstractCalendarComponent<YearCalendar>public void refreshItem(LocalDate date)
Copyright © 2021 Flowing Code. All rights reserved.