Class TocSidebar
- java.lang.Object
-
- org.devacfr.maven.skins.reflow.model.Component
-
- org.devacfr.maven.skins.reflow.model.BsComponent
-
- org.devacfr.maven.skins.reflow.model.Toc<TocSidebar>
-
- org.devacfr.maven.skins.reflow.model.TocSidebar
-
public class TocSidebar extends Toc<TocSidebar>
- Since:
- 2.0
- Author:
- devacfr
-
-
Constructor Summary
Constructors Constructor Description TocSidebar(ISkinConfig config)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLevel()booleanisAutoExpandable()Gets the indicating whether is auto-expanded.booleanisExpanded()Gets the indicating whether is expanded.booleanisFixed()Gets the indicating whether is fixed.protected TocSidebarwithAutoExpandable(boolean autoExpandable)Sets the indicating whether is auto-expanded.protected TocSidebarwithExpanded(boolean expanded)Sets the indicating whether is expanded.protected TocSidebarwithFixed(boolean fixed)Sets the indicating whether is fixed.protected TocSidebarwithLevel(int level)Sets the level limit 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
-
TocSidebar
public TocSidebar(@Nonnull ISkinConfig config)
Default constructor.- Parameters:
config- a config (can not benull).
-
-
Method Detail
-
isFixed
public boolean isFixed()
Gets the indicating whether is fixed.- Returns:
- Returns
trueif is fixed, otherwisefalse.
-
withFixed
protected TocSidebar withFixed(boolean fixed)
Sets the indicating whether is fixed.- Parameters:
fixed-trueis fixed.- Returns:
- Returns the fluent instance.
-
isExpanded
public boolean isExpanded()
Gets the indicating whether is expanded.- Returns:
- Returns
trueif is expanded, otherwisefalse.
-
withExpanded
protected TocSidebar withExpanded(boolean expanded)
Sets the indicating whether is expanded.- Parameters:
expanded-trueis expanded.- Returns:
- Returns the fluent instance.
-
isAutoExpandable
public boolean isAutoExpandable()
Gets the indicating whether is auto-expanded.- Returns:
- Returns
trueif is expanded, otherwisefalse.
-
withAutoExpandable
protected TocSidebar withAutoExpandable(boolean autoExpandable)
Sets the indicating whether is auto-expanded.- Parameters:
autoExpandable-trueis auto-expanded.- Returns:
- Returns the fluent instance.
-
getLevel
public int getLevel()
- Returns:
- Returns the level limit to display.
-
withLevel
protected TocSidebar withLevel(int level)
Sets the level limit to display- Parameters:
level- the level to use.- Returns:
- Returns the fluent instance.
-
-