Class FullCalendarI18n
java.lang.Object
io.jmix.fullcalendarflowui.component.FullCalendarI18n
- All Implemented Interfaces:
Serializable
The internationalization properties for
FullCalendar
component.- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncombine
(FullCalendarI18n i18n) Creates new i18n object from current instance and copies non-null properties from the provided object to the new one.void
setAllDayText
(String allDayText) Sets the all-day text.void
setCloseHint
(String closeHint) Sets the hint for the close button in the popover when you click the "more" link.void
setDayOfYear
(Integer dayOfYear) The rule how to define the first week of the year.void
setDirection
(FullCalendarI18n.Direction direction) Sets the direction in which text should be written and read.void
setEventHint
(String eventHint) Sets for list display modes' non-visible table header the name of the column with event names.void
setFirstDayOfWeek
(DayOfWeek dayOfWeek) Sets the first day of week.void
setMoreLinkHint
(String moreLinkHint) Sets the "more" link hint.void
setMoreLinkText
(String moreLinkText) Sets the "more" link text.void
setNavLinkHint
(String navLinkHint) Sets the hint text of navigation links.void
setNoEventsText
(String noEventsText) Sets text that will be shown when no events are displayed in list display modes, e.gCalendarDisplayModes.LIST_DAY
.void
setTimeHint
(String timeHint) Sets for list display modes' non-visible table header the name of the column with days and times.void
setWeekTextLong
(String weekTextLong) Sets the long name of the week.withAllDayText
(String allDayText) Sets the all-day text.withCloseHint
(String closeHint) Sets the hint for close button.withDayOfYear
(Integer dayOfYear) Sets the count of days that should be at least presented in the week to consider it as a first week of the year.withDirection
(FullCalendarI18n.Direction direction) Sets a direction.withEventHint
(String eventHint) Sets for list display modes' non-visible table header the name of the column with event names.withFirstDayOfWeek
(DayOfWeek dayOfWeek) Sets the first day of week.withMoreLinkHint
(String moreLinkHint) Sets the "more" link hint text.withMoreLinkText
(String moreLinkText) Sets the "more" link text.withNavLinkHint
(String navLinkHint) Sets the hint text of navigation links.withNoEventsText
(String noEventsText) Sets text that will be shown when no events are displayed.withTimeHint
(String timeHint) Sets the time hint text.withWeekTextLong
(String weekTextLong) Sets the long name of the week.
-
Field Details
-
direction
-
firstDayOfWeek
-
dayOfYear
-
weekTextLong
-
allDayText
-
moreLinkText
-
noEventsText
-
closeHint
-
eventHint
-
timeHint
-
moreLinkHint
-
-
Constructor Details
-
FullCalendarI18n
public FullCalendarI18n()
-
-
Method Details
-
getDirection
- Returns:
- the direction in which text should be written and read or
null
if not set
-
setDirection
Sets the direction in which text should be written and read.FullCalendar
also respects the direction ofUI.setDirection(com.vaadin.flow.component.Direction)
.- Parameters:
direction
- the direction to set
-
withDirection
Sets a direction. SeesetDirection(Direction)
.- Parameters:
direction
- the direction to set- Returns:
- current instance of i18n
-
getFirstDayOfWeek
- Returns:
- the first day of week or
null
if not set
-
setFirstDayOfWeek
Sets the first day of week. The default value is taken from locale.The order of days is the following: 0 - Sunday, 1 - Monday, etc.
- Parameters:
dayOfWeek
- the first day of week
-
withFirstDayOfWeek
Sets the first day of week. SeesetFirstDayOfWeek(DayOfWeek)
.- Parameters:
dayOfWeek
- the first day of week- Returns:
- current instance of i18n
-
getDayOfYear
- Returns:
- count of the days or
null
if not set
-
setDayOfYear
The rule how to define the first week of the year. For instance, if the first day of the week is1
and the day of year equals to4
, it means that the week that containsJan 4th
is the first week of the year.The default value is taken from locale.
- Parameters:
dayOfYear
- count of the days
-
withDayOfYear
Sets the count of days that should be at least presented in the week to consider it as a first week of the year. SeesetDayOfYear(Integer)
.- Parameters:
dayOfYear
- count of the days- Returns:
- current instance of i18n
-
getWeekTextLong
- Returns:
- the long name of the week or
null
if not set
-
setWeekTextLong
Sets the long name of the week.- Parameters:
weekTextLong
- the long name of the week
-
withWeekTextLong
Sets the long name of the week. SeesetWeekTextLong(String)
.- Parameters:
weekTextLong
- the long name of the week- Returns:
- current instance of i18n
-
getAllDayText
- Returns:
- the all-day text or
null
if not set
-
setAllDayText
Sets the all-day text. The text is visible in time-grid display modes.- Parameters:
allDayText
- the all-day text
-
withAllDayText
Sets the all-day text. SeesetAllDayText(String)
.- Parameters:
allDayText
- the all-day text- Returns:
- current instance of i18n
-
getMoreLinkText
- Returns:
- the "more" link text or
null
if not set
-
setMoreLinkText
Sets the "more" link text. The provided text can be a JavaScript Template string. This template takes thecount
parameter, for instance:setMoreLinkText("+${count} event(s)");
It also takes a string definition of JavaScript function that takescount
as a parameter. For instance:setMoreLinkText( """ function (count) { return `See +${count} event` + (count === 1 ? '' : 's'); } """)
- Parameters:
moreLinkText
- the "more" link text
-
withMoreLinkText
Sets the "more" link text. SeesetMoreLinkText(String)
.- Parameters:
moreLinkText
- the "more" link text- Returns:
- current instance of i18n
-
getNoEventsText
- Returns:
- text that is shown when no events are displayed or
null
if not set
-
setNoEventsText
Sets text that will be shown when no events are displayed in list display modes, e.gCalendarDisplayModes.LIST_DAY
.- Parameters:
noEventsText
- the text to set
-
withNoEventsText
Sets text that will be shown when no events are displayed. SeesetNoEventsText(String)
.- Parameters:
noEventsText
- the text to set- Returns:
- current instance of i18n
-
getCloseHint
- Returns:
- the hint for close button or
null
if not set
-
setCloseHint
Sets the hint for the close button in the popover when you click the "more" link.- Parameters:
closeHint
- the close hint text
-
withCloseHint
Sets the hint for close button. SeesetCloseHint(String)
.- Parameters:
closeHint
- the close hint text- Returns:
- current instance of i18n
-
getEventHint
- Returns:
- the event hint
-
setEventHint
Sets for list display modes' non-visible table header the name of the column with event names.- Parameters:
eventHint
- the event hint text
-
withEventHint
Sets for list display modes' non-visible table header the name of the column with event names. SeesetEventHint(String)
.- Parameters:
eventHint
- the even hint text- Returns:
- current instance of i18n
-
getTimeHint
- Returns:
- the time hint text or
null
if not set
-
setTimeHint
Sets for list display modes' non-visible table header the name of the column with days and times.- Parameters:
timeHint
- the time hint text
-
withTimeHint
Sets the time hint text. SeesetTimeHint(String)
.- Parameters:
timeHint
- the time hint text- Returns:
- current instance of i18n
-
getMoreLinkHint
- Returns:
- the "more" link hint text or
null
if not set
-
setMoreLinkHint
Sets the "more" link hint. The provided text can be a JavaScript Template string. This template takes thecount
parameter that has Number type, for instance:setMoreLinkHint("Show ${count} more event${count === 1 ? '' : 's'}");
It also takes a string definition of JavaScript function that takescount
as a parameter. For instance:setMoreLinkHint( """ function (count) { return `Show ${count} more event${count === 1 ? '' : 's'}`; } """)
- Parameters:
moreLinkHint
- the "more" link hint text
-
withMoreLinkHint
Sets the "more" link hint text. SeesetMoreLinkHint(String)
.- Parameters:
moreLinkHint
- the "more" link hint text- Returns:
- current instance of i18n
-
combine
Creates new i18n object from current instance and copies non-null properties from the provided object to the new one.- Parameters:
i18n
- object to copy non-null properties- Returns:
- new i18n object
-