Class TocTopBar
- java.lang.Object
-
- org.devacfr.maven.skins.reflow.model.Component
-
- org.devacfr.maven.skins.reflow.model.BsComponent
-
- org.devacfr.maven.skins.reflow.model.Toc<TocTopBar>
-
- org.devacfr.maven.skins.reflow.model.TocTopBar
-
-
Constructor Summary
Constructors Constructor Description TocTopBar(ISkinConfig config)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumberItems()booleanisFlatten()Gets the indicating whether is flatten.protected TocTopBarwithFlatten(boolean flatten)Sets the indicating whether is flatten.protected TocTopBarwithNumberItems(int numberItems)Sets the number of items to display.-
Methods inherited from class org.devacfr.maven.skins.reflow.model.Toc
createSidebar, createToc, createTopBar, getTocItems, getType, isEnabled, onPreRender, self, toString, withEnabled
-
Methods inherited from class org.devacfr.maven.skins.reflow.model.BsComponent
getBackground, getCssClass, getTheme, setBackground, setTheme
-
Methods inherited from class org.devacfr.maven.skins.reflow.model.Component
addChildren, addCssOptions, getCssOptions, setCssClass
-
-
-
-
Constructor Detail
-
TocTopBar
public TocTopBar(@Nonnull ISkinConfig config)
Default constructor.- Parameters:
config- a config (can not benull).
-
-
Method Detail
-
isFlatten
public boolean isFlatten()
Gets the indicating whether is flatten.- Returns:
- Returns
trueif is flatten, otherwisefalse.
-
withFlatten
protected TocTopBar withFlatten(boolean flatten)
Sets the indicating whether is flatten.- Parameters:
flatten-trueto flat.- Returns:
- Returns the fluent instance.
-
getNumberItems
public int getNumberItems()
- Returns:
- Returns the number of items to display.
-
withNumberItems
protected TocTopBar withNumberItems(int numberItems)
Sets the number of items to display.- Parameters:
numberItems- -1 or the number of items to display- Returns:
- Returns the fluent instance.
-
-