Class TocTopBar


  • public class TocTopBar
    extends Toc<TocTopBar>
    Since:
    2.0
    Author:
    devacfr
    • Constructor Detail

      • TocTopBar

        public TocTopBar​(@Nonnull
                         ISkinConfig config)
        Default constructor.
        Parameters:
        config - a config (can not be null).
    • Method Detail

      • isFlatten

        public boolean isFlatten()
        Gets the indicating whether is flatten.
        Returns:
        Returns true if is flatten, otherwise false.
      • withFlatten

        protected TocTopBar withFlatten​(boolean flatten)
        Sets the indicating whether is flatten.
        Parameters:
        flatten - true to 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.