Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AUTO - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Format
-
Alias for
Format.RELATIVE(the upstream default). - AUTO - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Tense
-
Past or future is decided from the target instant.
C
- clear() - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Clears the target datetime: removes the
datetimeattribute and the component renders as empty. - com.flowingcode.vaadin.addons.relativetime - package com.flowingcode.vaadin.addons.relativetime
D
- DATETIME - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Format
-
Absolute formatted date-time.
- DateTimePartStyle - Enum Class in com.flowingcode.vaadin.addons.relativetime
-
Values for the
Intl.DateTimeFormatdate-part attributes (year,month,day,hour,minute,second,weekday). - DAY - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Precision
- DURATION - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Format
-
Duration breakdown ("3d 4h", "1m 5s").
E
- ELAPSED - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Format
-
Elapsed-time style.
F
- Format - Enum Class in com.flowingcode.vaadin.addons.relativetime
-
Values for the
formatattribute on<relative-time>. - FormatStyle - Enum Class in com.flowingcode.vaadin.addons.relativetime
-
Values for the
format-styleattribute on<relative-time>. - FUTURE - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Tense
-
Force future phrasing ("in 3 days").
G
- getDateTime() - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Returns the last instant applied via any of the
setDateTimeoverloads, normalised to UTC.
H
L
- LONG - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.DateTimePartStyle
-
Long ("Monday", "Tuesday").
- LONG - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.FormatStyle
-
Long phrasing ("3 days ago").
- LONG - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.TimeZoneName
-
Localised name ("Pacific Daylight Time").
- LONG_GENERIC - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.TimeZoneName
-
Generic non-location ("Pacific Time").
- LONG_OFFSET - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.TimeZoneName
-
Localised offset ("GMT-08:00").
M
- MICRO - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Format
-
Compact single-unit form ("3d", "5h", "2m").
- MINUTE - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Precision
- MONTH - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Precision
N
- NARROW - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.DateTimePartStyle
-
Narrow ("M", "T").
- NARROW - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.FormatStyle
-
Narrow phrasing ("3d ago").
- NUMERIC - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.DateTimePartStyle
-
Numeric ("1", "2", "12").
P
- PAST - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Tense
-
Force past phrasing ("3 days ago").
- Precision - Enum Class in com.flowingcode.vaadin.addons.relativetime
-
Values for the
precisionattribute on<relative-time>.
R
- RELATIVE - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Format
-
Relative phrase ("3 days ago").
- RelativeTime - Class in com.flowingcode.vaadin.addons.relativetime
-
Renders a date/time as a human-readable relative string ("4 hours ago", "in 2 weeks") that updates in the browser as time passes and is shown in the viewer's local time.
- RelativeTime() - Constructor for class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Creates an empty component.
- RelativeTime(Instant) - Constructor for class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Creates a component bound to the given instant.
- RelativeTime(LocalDate) - Constructor for class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Creates a component bound to midnight of the given date, in the server's
default zone. - RelativeTime(LocalDateTime) - Constructor for class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Creates a component bound to the given local date-time, interpreted in the server's
default zone. - RelativeTime(OffsetDateTime) - Constructor for class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Creates a component bound to the given offset date-time.
- RelativeTime(ZonedDateTime) - Constructor for class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Creates a component bound to the given zoned date-time.
S
- SECOND - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Precision
- setDateTime(Instant) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the target instant.
- setDateTime(LocalDate) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the target to midnight of the given date, in the server's
default zone. - setDateTime(LocalDateTime) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the target as a
LocalDateTime, interpreted in the server'sdefault zone. - setDateTime(OffsetDateTime) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the target as an
OffsetDateTime. - setDateTime(ZonedDateTime) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the target as a
ZonedDateTime. - setDay(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
dayattribute. - setFormat(Format) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
- setFormatStyle(FormatStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
format-styleattribute. - setHour(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
hourattribute. - setLocale(Locale) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
langattribute from aLocale(rendered as a BCP 47 language tag). - setMinute(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
minuteattribute. - setMonth(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
monthattribute. - setNoTitle(boolean) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
When
true, adds theno-titleattribute, suppressing the automatic absolute-date tooltip. - setPrecision(Precision) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
precisionattribute (defaultsecond). - setPrefix(String) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
prefixattribute (default"on"), the word prepended to absolute dates when the relative-format threshold is crossed. - setSecond(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
secondattribute. - setTense(Tense) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
tenseattribute (defaultauto). - setThreshold(Duration) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
thresholdattribute as an ISO-8601 duration (P30D,PT24H). - setTimeZone(ZoneId) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
time-zoneattribute from aZoneId(e.g. - setTimeZoneName(TimeZoneName) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
time-zone-nameattribute, controlling whether and how the time-zone name is appended in absolute-date output. - setWeekday(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
weekdayattribute. - setYear(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Sets the
yearattribute. - SHORT - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.DateTimePartStyle
-
Short ("Mon", "Tue").
- SHORT - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.FormatStyle
-
Short phrasing ("3 days ago" with abbreviations where the locale supports it).
- SHORT - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.TimeZoneName
-
Localised abbreviation ("PDT").
- SHORT_GENERIC - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.TimeZoneName
-
Generic non-location ("PT").
- SHORT_OFFSET - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.TimeZoneName
-
Localised offset ("GMT-8").
T
- Tense - Enum Class in com.flowingcode.vaadin.addons.relativetime
-
Values for the
tenseattribute on<relative-time>. - TimeZoneName - Enum Class in com.flowingcode.vaadin.addons.relativetime
-
Values for the
time-zone-nameattribute on<relative-time>. - TWO_DIGIT - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.DateTimePartStyle
-
Two-digit, zero-padded ("01", "12").
V
- valueOf(String) - Static method in enum class com.flowingcode.vaadin.addons.relativetime.DateTimePartStyle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.flowingcode.vaadin.addons.relativetime.Format
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.flowingcode.vaadin.addons.relativetime.FormatStyle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.flowingcode.vaadin.addons.relativetime.Precision
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.flowingcode.vaadin.addons.relativetime.Tense
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.flowingcode.vaadin.addons.relativetime.TimeZoneName
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.flowingcode.vaadin.addons.relativetime.DateTimePartStyle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.flowingcode.vaadin.addons.relativetime.Format
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.flowingcode.vaadin.addons.relativetime.FormatStyle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.flowingcode.vaadin.addons.relativetime.Precision
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.flowingcode.vaadin.addons.relativetime.Tense
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.flowingcode.vaadin.addons.relativetime.TimeZoneName
-
Returns an array containing the constants of this enum class, in the order they are declared.
Y
A C D E F G H L M N P R S T V YAll Classes and Interfaces|All Packages|Serialized Form