Class RangeSection
java.lang.Object
org.apache.juneau.console.freemarker.Section
org.apache.juneau.console.freemarker.RangeSection
A rail section of quick time-range presets, with an optional custom from/to.
Publishes {schemaVersion:1, viewId, options:{range}, start, end} on its filter: topic, where
range is the preset or "custom" and start/end are ISO-8601 UTC instants.
Nd and Nh end at now floored to the minute; ytd starts at January 1, 00:00 UTC.
Example:
RangeSection.
- Since:
- 10.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.console.freemarker.Section
Section.Custom -
Method Summary
Modifier and TypeMethodDescriptioncustom(boolean value) Adds the custom from/to inputs (read as UTC).defaultPreset(String value) Sets the preset used when nothing is restored.Sets the section's legend text.Sets the topic this section owns.static RangeSectionCreates a range section.
-
Method Details
-
quick
Creates a range section.- Parameters:
presets- The quick presets, eachNd,Nhorytd.- Returns:
- A new section.
-
custom
Adds the custom from/to inputs (read as UTC).- Parameters:
value-true to show them.- Returns:
- This object.
-
defaultPreset
Sets the preset used when nothing is restored.- Parameters:
value- One of the presets. Defaults to the first.- Returns:
- This object.
-
publishes
Description copied from class:SectionSets the topic this section owns. -
label
Description copied from class:SectionSets the section's legend text.
-