Packages

c

laika.ast

NavigationBuilderContext

case class NavigationBuilderContext(refPath: Path = Root, itemStyles: Set[String] = Set(), maxLevels: Int = Int.MaxValue, currentLevel: Int = 1, excludeSections: Boolean = false, excludeSelf: Boolean = false) extends Product with Serializable

The context of a navigation builder that can get passed down in recursive calls to the various types that have an asNavigationItem method.

refPath

the path of document from which this document will be linked (for creating a corresponding relative path)

itemStyles

the styles to assign to each navigation item as a render hint

maxLevels

the number of levels of sub-trees, documents or sections to create navigation info for

currentLevel

the current level of the navigation tree being built

excludeSections

indicates whether the recursion should exclude sections of documents even when maxLevels has not been reached yet

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NavigationBuilderContext
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new NavigationBuilderContext(refPath: Path = Root, itemStyles: Set[String] = Set(), maxLevels: Int = Int.MaxValue, currentLevel: Int = 1, excludeSections: Boolean = false, excludeSelf: Boolean = false)

    refPath

    the path of document from which this document will be linked (for creating a corresponding relative path)

    itemStyles

    the styles to assign to each navigation item as a render hint

    maxLevels

    the number of levels of sub-trees, documents or sections to create navigation info for

    currentLevel

    the current level of the navigation tree being built

    excludeSections

    indicates whether the recursion should exclude sections of documents even when maxLevels has not been reached yet

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. val currentLevel: Int
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. val excludeSections: Boolean
  9. val excludeSelf: Boolean
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. val isComplete: Boolean
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val itemStyles: Set[String]
  15. val maxLevels: Int
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def newNavigationItem(title: SpanSequence, target: Path, children: Seq[NavigationItem], targetFormats: TargetFormats): NavigationItem
  18. def newNavigationItem(title: SpanSequence, target: Option[DocumentNavigation], children: Seq[NavigationItem], targetFormats: TargetFormats): NavigationItem
  19. lazy val nextLevel: NavigationBuilderContext
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def productElementNames: Iterator[String]
    Definition Classes
    Product
  23. val refPath: Path
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped