Uses of Class
com.flowingcode.vaadin.addons.relativetime.RelativeTime
-
Uses of RelativeTime in com.flowingcode.vaadin.addons.relativetime
Methods in com.flowingcode.vaadin.addons.relativetime that return RelativeTimeModifier and TypeMethodDescriptionRelativeTime.clear()Clears the target datetime: removes thedatetimeattribute and the component renders as empty.RelativeTime.setDateTime(Instant datetime) Sets the target instant.RelativeTime.setDateTime(LocalDate date) Sets the target to midnight of the given date, in the server'sdefault zone.RelativeTime.setDateTime(LocalDateTime datetime) Sets the target as aLocalDateTime, interpreted in the server'sdefault zone.RelativeTime.setDateTime(OffsetDateTime datetime) Sets the target as anOffsetDateTime.RelativeTime.setDateTime(ZonedDateTime datetime) Sets the target as aZonedDateTime.RelativeTime.setDay(DateTimePartStyle style) Sets thedayattribute.RelativeTime.setFormatStyle(FormatStyle style) Sets theformat-styleattribute.RelativeTime.setHour(DateTimePartStyle style) Sets thehourattribute.Sets thelangattribute from aLocale(rendered as a BCP 47 language tag).RelativeTime.setMinute(DateTimePartStyle style) Sets theminuteattribute.RelativeTime.setMonth(DateTimePartStyle style) Sets themonthattribute.RelativeTime.setNoTitle(boolean noTitle) Whentrue, adds theno-titleattribute, suppressing the automatic absolute-date tooltip.RelativeTime.setPrecision(Precision precision) Sets theprecisionattribute (defaultsecond).Sets theprefixattribute (default"on"), the word prepended to absolute dates when the relative-format threshold is crossed.RelativeTime.setSecond(DateTimePartStyle style) Sets thesecondattribute.Sets thetenseattribute (defaultauto).RelativeTime.setThreshold(Duration threshold) Sets thethresholdattribute as an ISO-8601 duration (P30D,PT24H).RelativeTime.setTimeZone(ZoneId timeZone) Sets thetime-zoneattribute from aZoneId(e.g.RelativeTime.setTimeZoneName(TimeZoneName value) Sets thetime-zone-nameattribute, controlling whether and how the time-zone name is appended in absolute-date output.RelativeTime.setWeekday(DateTimePartStyle style) Sets theweekdayattribute.RelativeTime.setYear(DateTimePartStyle style) Sets theyearattribute.