Index

A C D E F G H L M N P R S T V Y 
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 datetime attribute 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.DateTimeFormat date-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 format attribute on <relative-time>.
FormatStyle - Enum Class in com.flowingcode.vaadin.addons.relativetime
Values for the format-style attribute 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 setDateTime overloads, normalised to UTC.

H

HOUR - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Precision
 

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 precision attribute 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's default 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 day attribute.
setFormat(Format) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the format attribute (default auto, which is an alias for Format.RELATIVE).
setFormatStyle(FormatStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the format-style attribute.
setHour(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the hour attribute.
setLocale(Locale) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the lang attribute from a Locale (rendered as a BCP 47 language tag).
setMinute(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the minute attribute.
setMonth(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the month attribute.
setNoTitle(boolean) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
When true, adds the no-title attribute, suppressing the automatic absolute-date tooltip.
setPrecision(Precision) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the precision attribute (default second).
setPrefix(String) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the prefix attribute (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 second attribute.
setTense(Tense) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the tense attribute (default auto).
setThreshold(Duration) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the threshold attribute as an ISO-8601 duration (P30D, PT24H).
setTimeZone(ZoneId) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the time-zone attribute from a ZoneId (e.g.
setTimeZoneName(TimeZoneName) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the time-zone-name attribute, 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 weekday attribute.
setYear(DateTimePartStyle) - Method in class com.flowingcode.vaadin.addons.relativetime.RelativeTime
Sets the year attribute.
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 tense attribute on <relative-time>.
TimeZoneName - Enum Class in com.flowingcode.vaadin.addons.relativetime
Values for the time-zone-name attribute 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

YEAR - Enum constant in enum class com.flowingcode.vaadin.addons.relativetime.Precision
 
A C D E F G H L M N P R S T V Y 
All Classes and Interfaces|All Packages|Serialized Form