Class SwitcherDef.View
java.lang.Object
org.apache.juneau.console.freemarker.SwitcherDef.View
- All Implemented Interfaces:
Handled<SwitcherDef.View>
- Enclosing class:
- SwitcherDef
One view of a switcher.
Example:
-
Method Summary
Modifier and TypeMethodDescriptionStacks the cards vertically in this view, with the card gap between them.initialSection(String sectionId) Returns the element's model block.self()Returns this builder.
-
Method Details
-
modelBlock
Description copied from interface:HandledReturns the element's model block.- Specified by:
modelBlockin interfaceHandled<SwitcherDef.View>- Returns:
- The block; never
null .
-
self
Description copied from interface:HandledReturns this builder.- Specified by:
selfin interfaceHandled<SwitcherDef.View>- Returns:
- This object.
-
section
- Parameters:
card- The only card of the view, in the default section. @return This object.
-
section
- Parameters:
sectionId- The section id. @param sectionLabel The section tab label. @param card The section's card. @return This object.
-
section
public SwitcherDef.View section(String sectionId, String sectionLabel, CardSpec card, Consumer<SwitcherDef.Section> config) - Parameters:
sectionId- The section id. @param sectionLabel The section tab label. @param card The section's card. @param config Fills in the section's model block. @return This object.
-
cards
Stacks the cards vertically in this view, with the card gap between them.- Parameters:
cards- The cards, two or more.- Returns:
- This object.
-
initialSection
- Parameters:
sectionId- The section shown first when nothing else decides. @return This object.
-