Constructor and Description |
---|
TocTopBar(ISkinConfig config)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumberItems() |
boolean |
isFlatten()
Gets the indicating whether is flatten.
|
protected TocTopBar |
withFlatten(boolean flatten)
Sets the indicating whether is flatten.
|
protected TocTopBar |
withNumberItems(int numberItems)
Sets the number of items to display.
|
createSidebar, createToc, createTopBar, getTocItems, getType, isEnabled, onPreRender, self, toString, withEnabled
getBackground, getCssClass, getTheme, setBackground, setTheme
addChildren, addCssOptions, getBodyContent, getCssOptions, getHtmlTool, setCssClass
public TocTopBar(@Nonnull ISkinConfig config)
config
- a config (can not be null
).public boolean isFlatten()
true
if is flatten, otherwise false
.protected TocTopBar withFlatten(boolean flatten)
flatten
- true
to flat.public int getNumberItems()
protected TocTopBar withNumberItems(int numberItems)
numberItems
- -1 or the number of items to displayCopyright © 2012–2023 Friederich Christophe. All rights reserved.