trait Loc[T] extends AnyRef
A menu location
- Alphabetic
- By Inheritance
- Loc
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type LocRewrite = Box[PartialFunction[RewriteRequest, (RewriteResponse, Box[T])]]
- type SnippetTest = PartialFunction[(String, Box[T]), (NodeSeq) => NodeSeq]
A
PartialFunctionthat maps a snippet name, and an optionalLocvalue, in aTuple2, to a snippet function (NodeSeq=>NodeSeq).
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- lazy val _foundStatelessCalc: (Box[CalcStateless], Box[CalcParamStateless[T]])
The cached Loc params
The cached Loc params
- Attributes
- protected
- lazy val _frozenStateless: Boolean
A lazy val used to track statelessness for non-dev mode.
A lazy val used to track statelessness for non-dev mode. By default, it calls calcStateless().
- Attributes
- protected
- def _testAccess: Either[Boolean, Box[() => LiftResponse]]
- Attributes
- protected
- def allParams: List[AnyLocParam]
- def appendQueryParameters(in: String, what: Box[T]): String
- Attributes
- protected
- def appendQueryParams(what: T)(nodeSeq: NodeSeq): NodeSeq
- Attributes
- protected
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def breadCrumbs: List[Loc[_]]
- def buildKidMenuItems(kids: Seq[Menu]): List[MenuItem]
- def buildMenu: CompleteMenu
- lazy val cacheCssClassForMenuItem: Box[() => String]
By default, this lazy val looks for the MenuCssClass LocParam and uses it.
By default, this lazy val looks for the MenuCssClass LocParam and uses it.
- Attributes
- protected
- def calcDefaultHref: String
Calculate HREF to this item using currentValue
- def calcHidden(kids: List[MenuItem]): Boolean
- Attributes
- protected
- def calcHref(in: T): String
Given a value calculate the HREF to this item
- lazy val calcSnippets: SnippetTest
The snippets provided by
LocParams - def calcStateless(): Boolean
The method to calculate if this Loc is stateless.
The method to calculate if this Loc is stateless. By default looks for the Loc.Stateless Param
- Attributes
- protected
- def calcTemplate: Box[NodeSeq]
This method can be overridden to provide a template for this Loc
- def childValues: List[T]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createDefaultLink: Option[NodeSeq]
- def createLink(in: T): Option[NodeSeq]
- def cssClassForMenuItem: Box[String]
When the menu item is displayed, what CSS class do we add to the node?
- def currentValue: Box[T]
The current value of the cell: overrideValue or requestValue.is or defaultValue oe paramValue
- def defaultRequestValue: Box[T]
Override this if the default request value should be something other than Empty
Override this if the default request value should be something other than Empty
- Attributes
- protected
- def doesMatch_?(req: Req): Boolean
- def earlyResponse: Box[LiftResponse]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def findStatelessCalc: (Box[CalcStateless], Box[CalcParamStateless[T]])
Find the stateless calculation Loc params
Find the stateless calculation Loc params
- Attributes
- protected
- def foundStatelessCalc: (Box[CalcStateless], Box[CalcParamStateless[T]])
- Attributes
- protected
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hidden: Boolean
- def hideIfNoKids_?: Boolean
- def inGroup_?(group: String): Boolean
- def init(): Unit
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def linkText: Box[NodeSeq]
The title of the location given the current value associated with this Loc
- def linkText(in: T): NodeSeq
The link text to be displayed for a value of type T
- def menu: Menu
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def overrideValue: Box[T]
- def paramTemplate: Box[NodeSeq]
The first Loc.Template or Loc.ValueTemplate in the param list.
- lazy val paramTitle: Box[(T) => NodeSeq]
The first Loc.Title in the param list.
- def paramValue: Box[T]
The value of the Loc based on params (either Loc.Value or Loc.CalcValue)
- def placeHolder_?: Boolean
- def queryParameters(what: Box[T]): List[(String, String)]
Calculate the Query parameters
- def reqCalcStateless(): Boolean
run the stateless calculation
run the stateless calculation
- Attributes
- protected
- def rewrite: LocRewrite
- def rewritePF: Box[RewritePF]
- def siteMap: SiteMap
- def snippet(name: String): Box[(NodeSeq) => NodeSeq]
Look up a snippet by name, taking into account the current
Locvalue. - def snippets: SnippetTest
The snippets defined by the
Locclass itself, as opposed to those provided by itsLocParams. - def stateless_?: Boolean
Is the Loc marked as Stateless (this will force rendering of the page into stateless mode)
- def supplementalKidMenuItems: List[MenuItem]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def template: Box[NodeSeq]
The template assocaited with this Loc, if any.
The template assocaited with this Loc, if any. Any Loc.Template or Loc.ValueTemplate parameter will take precedence over a value returned by the calcTemplate method.
- def testAccess: Either[Boolean, Box[() => LiftResponse]]
- def title: NodeSeq
The title of the location given the current value associated with this Loc.
The title of the location given the current value associated with this Loc. If no current value is available, this will use the name of this Loc as the title.
- def title(in: T): NodeSeq
The title to be displayed for the value associated with this Loc.
The title to be displayed for the value associated with this Loc. Any Loc.Title parameter will take precedence over the value returned by the linkText method.
- def toString(): String
- Definition Classes
- Loc → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object accessTestRes extends RequestVar[Either[Boolean, Box[() => LiftResponse]]]
- Attributes
- protected
- object requestValue extends RequestVar[Box[T]]