LiftScreen

olon.http.LiftScreen

Attributes

Graph
Supertypes
trait Loggable
trait Factory
trait SimpleInjector
trait Injector
class Object
trait Matchable
class Any
Show all

Members list

Type members

Classlikes

protected object AjaxOnDone extends ScreenVar[JsCmd]

What to do when the Screen is done. By default, will do a redirect back to Whence, but you can change this behavior, for example, put up some other Ajax thing or alternatively, remove the form from the screen.

What to do when the Screen is done. By default, will do a redirect back to Whence, but you can change this behavior, for example, put up some other Ajax thing or alternatively, remove the form from the screen.

Attributes

Supertypes
class ScreenVar[JsCmd]
class NonCleanAnyVar[JsCmd]
class AnyVar[JsCmd, NonCleanAnyVar[JsCmd]]
trait AnyVarTrait[JsCmd, NonCleanAnyVar[JsCmd]]
trait HasCalcDefaultValue[JsCmd]
trait PSettableValueHolder[JsCmd]
trait SettableValueHolder
trait Settable
trait PValueHolder[JsCmd]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
AjaxOnDone.type
protected object Ajax_? extends ScreenVar[Boolean]

Attributes

Supertypes
class NonCleanAnyVar[Boolean]
class AnyVar[Boolean, NonCleanAnyVar[Boolean]]
trait AnyVarTrait[Boolean, NonCleanAnyVar[Boolean]]
trait HasCalcDefaultValue[Boolean]
trait PSettableValueHolder[Boolean]
trait SettableValueHolder
trait Settable
trait PValueHolder[Boolean]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
Ajax_?.type
protected object CancelId extends TransientRequestVar[String]

Attributes

Supertypes
trait AnyVarTrait[String, TransientRequestVar[String]]
trait HasCalcDefaultValue[String]
trait PSettableValueHolder[String]
trait SettableValueHolder
trait Settable
trait PValueHolder[String]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
CancelId.type
protected object FormGUID extends ScreenVar[String]

A unique GUID for the form... this allows us to do an Ajax SetHtml to replace the form

A unique GUID for the form... this allows us to do an Ajax SetHtml to replace the form

Attributes

Supertypes
class ScreenVar[String]
class NonCleanAnyVar[String]
class AnyVar[String, NonCleanAnyVar[String]]
trait AnyVarTrait[String, NonCleanAnyVar[String]]
trait HasCalcDefaultValue[String]
trait PSettableValueHolder[String]
trait SettableValueHolder
trait Settable
trait PValueHolder[String]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
FormGUID.type
protected object LocalAction extends TransientRequestVar[String]

Attributes

Supertypes
trait AnyVarTrait[String, TransientRequestVar[String]]
trait HasCalcDefaultValue[String]
trait PSettableValueHolder[String]
trait SettableValueHolder
trait Settable
trait PValueHolder[String]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
protected object LocalActionRef extends RequestVar[String]

Attributes

Supertypes
class AnyVar[String, RequestVar[String]]
trait AnyVarTrait[String, RequestVar[String]]
trait HasCalcDefaultValue[String]
trait PSettableValueHolder[String]
trait SettableValueHolder
trait Settable
trait PValueHolder[String]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
protected object LocalActions extends ScreenVar[AtomicReference[Map[String, () => JsCmd]]]

Attributes

Supertypes
class ScreenVar[AtomicReference[Map[String, () => JsCmd]]]
class NonCleanAnyVar[AtomicReference[Map[String, () => JsCmd]]]
class AnyVar[AtomicReference[Map[String, () => JsCmd]], NonCleanAnyVar[AtomicReference[Map[String, () => JsCmd]]]]
trait AnyVarTrait[AtomicReference[Map[String, () => JsCmd]], NonCleanAnyVar[AtomicReference[Map[String, () => JsCmd]]]]
trait HasCalcDefaultValue[AtomicReference[Map[String, () => JsCmd]]]
trait PSettableValueHolder[AtomicReference[Map[String, () => JsCmd]]]
trait SettableValueHolder
trait Settable
trait PValueHolder[AtomicReference[Map[String, () => JsCmd]]]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
object NextId extends ScreenVar[String]

Attributes

Supertypes
class ScreenVar[String]
class NonCleanAnyVar[String]
class AnyVar[String, NonCleanAnyVar[String]]
trait AnyVarTrait[String, NonCleanAnyVar[String]]
trait HasCalcDefaultValue[String]
trait PSettableValueHolder[String]
trait SettableValueHolder
trait Settable
trait PValueHolder[String]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
NextId.type
protected object PrevSnapshot extends TransientRequestVar[Box[ScreenSnapshot]]

Attributes

Supertypes
trait AnyVarTrait[Box[ScreenSnapshot], TransientRequestVar[Box[ScreenSnapshot]]]
trait HasCalcDefaultValue[Box[ScreenSnapshot]]
trait PSettableValueHolder[Box[ScreenSnapshot]]
trait SettableValueHolder
trait Settable
trait PValueHolder[Box[ScreenSnapshot]]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
protected object Referer extends ScreenVar[String]

Attributes

Supertypes
class ScreenVar[String]
class NonCleanAnyVar[String]
class AnyVar[String, NonCleanAnyVar[String]]
trait AnyVarTrait[String, NonCleanAnyVar[String]]
trait HasCalcDefaultValue[String]
trait PSettableValueHolder[String]
trait SettableValueHolder
trait Settable
trait PValueHolder[String]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
Referer.type
protected object SavedDefaultXml extends ScreenVar[NodeSeq]

Attributes

Supertypes
class NonCleanAnyVar[NodeSeq]
class AnyVar[NodeSeq, NonCleanAnyVar[NodeSeq]]
trait AnyVarTrait[NodeSeq, NonCleanAnyVar[NodeSeq]]
trait HasCalcDefaultValue[NodeSeq]
trait PSettableValueHolder[NodeSeq]
trait SettableValueHolder
trait Settable
trait PValueHolder[NodeSeq]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
protected class ScreenSnapshot(val screenVars: Map[String, (NonCleanAnyVar[_], Any)], val snapshot: Box[ScreenSnapshot]) extends Snapshot

Attributes

Supertypes
trait Snapshot
class Object
trait Matchable
class Any
abstract class ScreenVar[T](dflt: => T) extends NonCleanAnyVar[T]

Keep request-local information around without the nastiness of naming session variables or the type-unsafety of casting the results. RequestVars share their value through the scope of the current HTTP request. They have no value at the beginning of request servicing and their value is discarded at the end of request processing. They are helpful to share values across many snippets.

Keep request-local information around without the nastiness of naming session variables or the type-unsafety of casting the results. RequestVars share their value through the scope of the current HTTP request. They have no value at the beginning of request servicing and their value is discarded at the end of request processing. They are helpful to share values across many snippets.

Value parameters

dflt

- the default value of the session variable

Attributes

Supertypes
class NonCleanAnyVar[T]
class AnyVar[T, NonCleanAnyVar[T]]
trait AnyVarTrait[T, NonCleanAnyVar[T]]
trait HasCalcDefaultValue[T]
trait PSettableValueHolder[T]
trait SettableValueHolder
trait Settable
trait PValueHolder[T]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Known subtypes
object AjaxOnDone
object Ajax_?
object FormGUID
object LocalActions
object NextId
object Referer
Show all
protected object _defaultXml extends TransientRequestVar[NodeSeq]

Holds the template passed via the snippet for the duration of the request

Holds the template passed via the snippet for the duration of the request

Attributes

Supertypes
trait AnyVarTrait[NodeSeq, TransientRequestVar[NodeSeq]]
trait HasCalcDefaultValue[NodeSeq]
trait PSettableValueHolder[NodeSeq]
trait SettableValueHolder
trait Settable
trait PValueHolder[NodeSeq]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type

Inherited classlikes

protected case class AFieldBinding(binding: FieldBinding) extends FilterOrValidate[Nothing]

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Serializable
trait Product
trait Equals
trait FilterOrValidate[Nothing]
class Object
trait Matchable
class Any
Show all
protected case class AFilter[T](f: T => T) extends FilterOrValidate[T]

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Serializable
trait Product
trait Equals
trait FilterOrValidate[T]
class Object
trait Matchable
class Any
Show all
protected case class AVal[T](v: T => List[FieldError]) extends FilterOrValidate[T]

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Serializable
trait Product
trait Equals
trait FilterOrValidate[T]
class Object
trait Matchable
class Any
Show all
sealed protected trait BoxMarker

Attributes

Inherited from:
AbstractScreen
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object BoxMarkerObj
protected object BoxMarkerObj extends BoxMarker

A little hack because => BaseField and => Box[BaseField] have the same method signature

A little hack because => BaseField and => Box[BaseField] have the same method signature

Attributes

Inherited from:
AbstractScreen
Supertypes
trait BoxMarker
class Object
trait Matchable
class Any

Attributes

Inherited from:
ScreenWizardRendered
Supertypes
class Object
trait Matchable
class Any
protected case class DisplayIf(func: BaseField => Boolean) extends FilterOrValidate[Nothing]

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Serializable
trait Product
trait Equals
trait FilterOrValidate[Nothing]
class Object
trait Matchable
class Any
Show all
object Field

Attributes

Inherited from:
AbstractScreen
Supertypes
class Object
trait Matchable
class Any
trait Field extends ConfirmField

A field that's part of a Screen

A field that's part of a Screen

Attributes

Inherited from:
AbstractScreen
Supertypes
trait ConfirmField
trait BaseField
trait FieldContainer
trait SettableField
trait SettableValueHolder
trait Settable
trait ReadableField
trait Bindable
trait ValueHolder
trait FieldIdentifier
class Object
trait Matchable
class Any
Show all
Known subtypes
trait WizardField
protected class FieldBuilder[T](name: => String, default: => T, manifest: ClassTag[T], help: Box[NodeSeq], validations: List[T => List[FieldError]], filters: List[T => T], stuff: Seq[FilterOrValidate[T]])

Attributes

Inherited from:
AbstractScreen
Supertypes
class Object
trait Matchable
class Any
protected case class FieldTransform(func: BaseField => NodeSeq => NodeSeq) extends FilterOrValidate[Nothing]

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Serializable
trait Product
trait Equals
trait FilterOrValidate[Nothing]
class Object
trait Matchable
class Any
Show all
protected object FilterOrValidate

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
sealed protected trait FilterOrValidate[+T]

Attributes

Inherited from:
AbstractScreen
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AFilter[T]
class AVal[T]
class DisplayIf
class FormFieldId
class FormParam
class Help
Show all
protected case class FormFieldId(id: String) extends FilterOrValidate[Nothing]

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Serializable
trait Product
trait Equals
trait FilterOrValidate[Nothing]
class Object
trait Matchable
class Any
Show all
protected case class FormParam(fp: ElemAttr) extends FilterOrValidate[Nothing]

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Serializable
trait Product
trait Equals
trait FilterOrValidate[Nothing]
class Object
trait Matchable
class Any
Show all
protected case class Help(ns: NodeSeq) extends FilterOrValidate[Nothing]

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Serializable
trait Product
trait Equals
trait FilterOrValidate[Nothing]
class Object
trait Matchable
class Any
Show all
protected case object NotOnConfirmScreen extends FilterOrValidate[Nothing]

Override the screen default for fields appearing on the confirm screen and force this field not to appear on the confirm screen

Override the screen default for fields appearing on the confirm screen and force this field not to appear on the confirm screen

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait FilterOrValidate[Nothing]
class Object
trait Matchable
class Any
Show all
protected case object NothingOtherValueInitializer extends OtherValueInitializer[Nothing]

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait OtherValueInitializer[Nothing]
class Object
trait Matchable
class Any
Show all
protected case object OnConfirmScreen extends FilterOrValidate[Nothing]

Override the screen default for fields appearing on the confirm screen and force this field to appear on the confirm screen

Override the screen default for fields appearing on the confirm screen and force this field to appear on the confirm screen

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait FilterOrValidate[Nothing]
class Object
trait Matchable
class Any
Show all
sealed protected trait OtherValueInitializer[T]

Attributes

Inherited from:
AbstractScreen
Supertypes
class Object
trait Matchable
class Any
Known subtypes
protected case class OtherValueInitializerImpl[T](f: () => T) extends OtherValueInitializer[T]

Attributes

Inherited from:
AbstractScreen
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
protected trait Snapshot

Attributes

Inherited from:
ScreenWizardRendered
Supertypes
class Object
trait Matchable
class Any
Known subtypes
protected object currentField extends ThreadGlobal[FieldIdentifier]

Attributes

Inherited from:
AbstractScreen
Supertypes
class ThreadGlobal[FieldIdentifier]
class Object
trait Matchable
class Any

Inherited and Abstract classlikes

abstract class FactoryMaker[T](_default: Vendor[T])(implicit man: ClassTag[T]) extends StackableMaker[T], Vendor[T]

Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.

Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.

Attributes

Inherited from:
Factory
Supertypes
trait Vendor[T]
trait () => T
trait StackableMaker[T]
trait Maker[T]
class Object
trait Matchable
class Any
Show all
Known subtypes
abstract class Inject[T](_default: Vendor[T])(implicit man: ClassTag[T]) extends StackableMaker[T], Vendor[T]

Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.

Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.

Attributes

Inherited from:
SimpleInjector
Supertypes
trait Vendor[T]
trait () => T
trait StackableMaker[T]
trait Maker[T]
class Object
trait Matchable
class Any
Show all

Inherited types

Attributes

Inherited from:
DispatchSnippet
protected type Errors = List[FieldError]

Attributes

Inherited from:
AbstractScreen

Value members

Abstract methods

protected def finish(): Unit

Concrete methods

protected def allTemplate: NodeSeq
protected def allTemplatePath: List[String]
protected def bindLocalAction(selector: String, func: () => JsCmd): CssSel
protected def defaultXml: NodeSeq

the NodeSeq passed as a parameter when the snippet was invoked

the NodeSeq passed as a parameter when the snippet was invoked

Attributes

protected def doFinish(): JsCmd
protected def formAttrs: MetaData

What additional attributes should be put on

What additional attributes should be put on

Attributes

protected def mapLocalAction[T](func: () => JsCmd)(f: String => T): T

By default, are all the fields on this screen on the confirm screen?

By default, are all the fields on this screen on the confirm screen?

Attributes

protected def renderFormCmd: JsCmd
protected def renderHtml(): NodeSeq
protected def renderWithErrors(errors: List[FieldError]): Unit
protected def replayForm: JsCmd
protected def savedDefaultXml: NodeSeq
protected def setLocalAction(s: String): Unit
protected def vendAVar[T](dflt: => T): NonCleanAnyVar[T]

Inherited methods

def addFields(fields: () => FieldContainer): Unit

Add a FieldContainer to the Screen. A FieldContainer can contain either a single field (a BaseField) or a collection of BaseFields. The key take-away is that if the LiftScreen or Wizard is a singleton, you can still display variable number of fields by returning a variable number of BaseField instances from the FieldContainer.
WARNING -- this method is public so it can be called from a Wizard. This method should only be called from within the Screen or Wizard that owns the Screen and not from external code.

Add a FieldContainer to the Screen. A FieldContainer can contain either a single field (a BaseField) or a collection of BaseFields. The key take-away is that if the LiftScreen or Wizard is a singleton, you can still display variable number of fields by returning a variable number of BaseField instances from the FieldContainer.
WARNING -- this method is public so it can be called from a Wizard. This method should only be called from within the Screen or Wizard that owns the Screen and not from external code.

Attributes

Inherited from:
AbstractScreen
def addName(name: String): Unit

Attributes

Inherited from:
StatefulSnippet

Any additional parameters that need to be put on the form (e.g., mime type)

Any additional parameters that need to be put on the form (e.g., mime type)

Attributes

Inherited from:
AbstractScreen
protected def additionalFormBindings: Box[CssSel]

Attributes

Inherited from:
ScreenWizardRendered
protected def ajaxForms_?: Boolean

Are the forms Ajax or regular HTTP/HTML.

Are the forms Ajax or regular HTTP/HTML.

If the ajax=true attribute is present on the original snippet invocation, the forms will be ajax.

Attributes

Inherited from:
ScreenWizardRendered
protected def allTemplateNodeSeq: NodeSeq

Attributes

Inherited from:
ScreenWizardRendered
protected def builder[T](name: => String, default: => T, stuff: FilterOrValidate[T]*)(implicit man: ClassTag[T]): FieldBuilder[T]

Create a FieldBuilder so you can add help screens, validations and filters. Remember to invoke "make" on the returned FieldBuilder to convert it into a field

Create a FieldBuilder so you can add help screens, validations and filters. Remember to invoke "make" on the returned FieldBuilder to convert it into a field

Value parameters

default

- the default value of the field

name

- the name of the field. This is a call-by-name parameter, so you can dynamically calculate the name of the field (e.g., localize its name)

stuff

- any filter or validation functions

Attributes

Inherited from:
AbstractScreen
protected def calcAjax: Boolean

Calculate if this Screen/Wizard should be ajax

Calculate if this Screen/Wizard should be ajax

Attributes

Inherited from:
ScreenWizardRendered
protected def calcAjaxOnDone: JsCmd

What should be done at the end of an Ajax session. By default, RedirectTo(Referer.get)

What should be done at the end of an Ajax session. By default, RedirectTo(Referer.get)

Attributes

Inherited from:
ScreenWizardRendered
protected def calcReferer: String

Calculate the referer (the page to go back to on finish). defaults to S.referer openOr "/"

Calculate the referer (the page to go back to on finish). defaults to S.referer openOr "/"

Attributes

Inherited from:
ScreenWizardRendered

Attributes

Inherited from:
AbstractScreen

Attributes

Inherited from:
ScreenWizardRendered
protected def defaultToAjax_?: Boolean

Should all instances of this Wizard or Screen default to Ajax when not explicitly set

Should all instances of this Wizard or Screen default to Ajax when not explicitly set

Attributes

Inherited from:
ScreenWizardRendered
protected def field[T](name: => String, default: => T, stuff: FilterOrValidate[T]*)(implicit man: ClassTag[T]): Field { type ValueType = T; }

Create a field with a name, default value, and

Create a field with a name, default value, and

Value parameters

default

- the default value of the field

name

- the name of the field. This is a call-by-name parameter, so you can dynamically calculate the name of the fiels (e.g., localize its name)

validate

- any validation functions

Attributes

Inherited from:
AbstractScreen
protected def field[T](underlying: => Box[BaseField { type ValueType = T; }], stuff: FilterOrValidate[T]*)(implicit man: ClassTag[T], marker: BoxMarker): Field { type ValueType = T; }

Attributes

Inherited from:
AbstractScreen
protected def field[T](underlying: => BaseField { type ValueType = T; }, stuff: FilterOrValidate[T]*)(implicit man: ClassTag[T]): Field { type ValueType = T; }

Attributes

Inherited from:
AbstractScreen

Attributes

Inherited from:
AbstractScreen
protected def grabParams(in: Seq[FilterOrValidate[_]]): List[ElemAttr]

Grabs the FormFieldId and FormParam parameters

Grabs the FormFieldId and FormParam parameters

Attributes

Inherited from:
AbstractScreen
protected def hasUploadField: Boolean

Attributes

Inherited from:
AbstractScreen

Attributes

Inherited from:
ScreenWizardRendered
protected def localSetup(): Unit

Override this method to do any setup of this screen

Override this method to do any setup of this screen

Attributes

Inherited from:
AbstractScreen
protected def makeField[T, OV](theName: => String, defaultValue: => T, theToForm: (Field { type OtherValueType = OV; type ValueType = T; }) => Box[NodeSeq], otherValue: OtherValueInitializer[OV], stuff: FilterOrValidate[T]*): Field { type ValueType = T; type OtherValueType = OV; }

Create a field that's added to the Screen

Create a field that's added to the Screen

Value parameters

defaultValue

the starting value for the field. This is also call-by-name which is handy for constructs like: SomeExternalRequestVarOrSessionVar.get

otherValue

a handy way include other values in the field. The other value is calcualted when the field is initialized. You can, for example, put a list of valid options in the field.

stuff

a list of filters and validations for the field

theName

the name of the field. This is call-by-name, so you can do things like S.?("Dog's Name") such that the string will be localized

theToForm

a function to convert the field into a form

Attributes

Returns

a newly minted Field

Inherited from:
AbstractScreen
protected def maxVal[T](len: => T, msg: => String)(implicit f: T => Number): T => List[FieldError]

Attributes

Inherited from:
AbstractScreen
protected def minVal[T](len: => T, msg: => String)(implicit f: T => Number): T => List[FieldError]

Attributes

Inherited from:
AbstractScreen
protected def multiselect[T](name: => String, default: => Seq[T], choices: => Seq[T], stuff: FilterOrValidate[Seq[T]]*)(implicit f: PairStringPromoter[T]): Field { type ValueType = Seq[T]; type OtherValueType = Seq[T]; }

Create a multi select HTML element

Create a multi select HTML element

Value parameters

choices

the possible choices for the select

default

the starting value of the field (call-by-name)

f

a PairStringPromoter (a wrapper around a function) that converts T => display String

name

the name of the field (call-by-name)

stuff

- a list of filters and validations for the field

Attributes

Returns

a newly minted Field{type ValueType = String}

Inherited from:
AbstractScreen
def names: Set[String]

Attributes

Inherited from:
StatefulSnippet
protected def notNull: String => String

Attributes

Inherited from:
AbstractScreen

Attributes

Inherited from:
AbstractScreen
protected def password(name: => String, defaultValue: => String, stuff: FilterOrValidate[String]*): Field { type ValueType = String; }

Create a password field

Create a password field

Value parameters

defaultValue

the starting value of the field (call-by-name)

name

the name of the field (call-by-name)

stuff

the filters, validators and attributes

Attributes

Returns

a newly minted Field

Inherited from:
AbstractScreen
protected def radio(name: => String, default: => String, choices: => Seq[String], stuff: FilterOrValidate[String]*): Field { type ValueType = String; type OtherValueType = Seq[String]; }

Create a radio HTML element

Create a radio HTML element

Value parameters

choices

the possible choices for the select

default

the starting value of the field (call-by-name)

name

the name of the field (call-by-name)

stuff

- a list of filters and validations for the field

Attributes

Returns

a newly minted Field{type ValueType = String}

Inherited from:
AbstractScreen
protected def redirectBack(): JsCmd

Attributes

Inherited from:
ScreenWizardRendered
def redirectTo(where: String): Nothing

Redirect to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page

Redirect to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page

Attributes

Inherited from:
StatefulSnippet
def registerInjection[T](f: () => T)(implicit man: ClassTag[T]): Unit

Register a function that will inject for the given Manifest

Register a function that will inject for the given Manifest

Attributes

Inherited from:
SimpleInjector

Attributes

Inherited from:
StatefulSnippet
protected def removeRegExChars(regEx: String): String => String

Attributes

Inherited from:
AbstractScreen
protected def renderAll(currentScreenNumber: Box[NodeSeq], screenCount: Box[NodeSeq], wizardTop: Box[Elem], screenTop: Box[Elem], fields: List[ScreenFieldInfo], prev: Box[Elem], cancel: Box[Elem], next: Box[Elem], finish: Box[Elem], screenBottom: Box[Elem], wizardBottom: Box[Elem], nextId: (String, () => JsCmd), prevId: Box[(String, () => JsCmd)], cancelId: (String, () => JsCmd), theScreen: AbstractScreen, ajax_?: Boolean): NodeSeq

Attributes

Inherited from:
ScreenWizardRendered
def screenBottom: Box[Elem]

Attributes

Inherited from:
AbstractScreen
def screenFields: List[BaseField]

A list of fields in this screen

A list of fields in this screen

Attributes

Inherited from:
AbstractScreen

The name of the screen. Override this to change the screen name.

The name of the screen. Override this to change the screen name.

Attributes

Inherited from:
AbstractScreen

Attributes

Inherited from:
AbstractScreen

Attributes

Inherited from:
AbstractScreen
def screenTop: Box[Elem]

Attributes

Inherited from:
AbstractScreen
def screenValidate: List[FieldError]

Attributes

Inherited from:
AbstractScreen
def seeOther(where: String): Nothing

See Other to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page

See Other to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page

Attributes

Inherited from:
StatefulSnippet
protected def select[T](name: => String, default: => T, choices: => Seq[T], stuff: FilterOrValidate[T]*)(implicit f: PairStringPromoter[T]): Field { type ValueType = T; type OtherValueType = Seq[T]; }

Create a select HTML element

Create a select HTML element

Value parameters

choices

the possible choices for the select

default

the starting value of the field (call-by-name)

f

a PairStringPromoter (a wrapper around a function) that converts T => display String

name

the name of the field (call-by-name)

stuff

- a list of filters and validations for the field

Attributes

Returns

a newly minted Field{type ValueType = String}

Inherited from:
AbstractScreen
protected def text(name: => String, defaultValue: => String, stuff: FilterOrValidate[String]*): Field { type ValueType = String; }

Create a text field

Create a text field

Value parameters

defaultValue

the starting value of the field (call-by-name)

name

the name of the field (call-by-name)

stuff

the filters, validators and attributes

Attributes

Returns

a newly minted Field

Inherited from:
AbstractScreen
protected def textarea(name: => String, defaultValue: => String, rows: Int, cols: Int, stuff: FilterOrValidate[String]*): Field { type ValueType = String; }

Create a textarea field

Create a textarea field

Value parameters

cols

the number of columns in the textarea

defaultValue

the starting value of the field (call-by-name)

name

the name of the field (call-by-name)

rows

the number of rows in the textarea

stuff

- a list of filters and validations for the field

Attributes

Returns

a newly minted Field{type ValueType = String}

Inherited from:
AbstractScreen
protected def textarea(name: => String, defaultValue: => String, stuff: FilterOrValidate[String]*): Field { type ValueType = String; }

Create a textarea field with 80 columns and 5 rows

Create a textarea field with 80 columns and 5 rows

Value parameters

defaultValue

the starting value of the field (call-by-name)

name

the name of the field (call-by-name)

stuff

- a list of filters and validations for the field

Attributes

Returns

a newly minted Field{type ValueType = String}

Inherited from:
AbstractScreen
protected def toLower: String => String

Attributes

Inherited from:
AbstractScreen
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Inherited from:
AbstractScreen
protected def toUpper: String => String

Attributes

Inherited from:
AbstractScreen
protected def trim: String => String

Attributes

Inherited from:
AbstractScreen

Attributes

Inherited from:
StatefulSnippet
protected def valMaxLen(len: => Int, msg: => String): String => List[FieldError]

A validation helper. Make sure the string is no more than a particular length and generate a validation issue if not.

A validation helper. Make sure the string is no more than a particular length and generate a validation issue if not.

Attributes

Inherited from:
AbstractScreen
protected def valMinLen(len: => Int, msg: => String): String => List[FieldError]

A validation helper. Make sure the string is at least a particular length and generate a validation issue if not.

A validation helper. Make sure the string is at least a particular length and generate a validation issue if not.

Attributes

Inherited from:
AbstractScreen
protected def valRegex(pat: => Pattern, msg: => String): String => List[FieldError]

Make sure the field matches a regular expression

Make sure the field matches a regular expression

Attributes

Inherited from:
AbstractScreen
def validate: List[FieldError]

Attributes

Inherited from:
AbstractScreen
def validations: List[() => List[FieldError]]

Attributes

Inherited from:
AbstractScreen
protected def vendForm[T](implicit man: ClassTag[T]): Box[(T, T => Any) => NodeSeq]

Attributes

Inherited from:
AbstractScreen
protected def wrapInDiv(in: NodeSeq): Elem

Attributes

Inherited from:
ScreenWizardRendered

Inherited and Abstract methods

Attributes

Inherited from:
ScreenWizardRendered

Attributes

Inherited from:
ScreenWizardRendered

Inherited fields

lazy protected val cssClassBinding: CssClassBinding

Attributes

Inherited from:
ScreenWizardRendered
protected val logger: Logger

Attributes

Inherited from:
Loggable

Implicits

Inherited implicits

implicit def boxOfScreen[T <: AbstractScreen](in: T): Box[T]

Attributes

Inherited from:
AbstractScreen
implicit def boxStrToListFieldError(msg: Box[String]): List[FieldError]

Attributes

Inherited from:
AbstractScreen
implicit def boxXmlToListFieldError(msg: Box[NodeSeq]): List[FieldError]

Attributes

Inherited from:
AbstractScreen
implicit protected def elemInABox(in: Elem): Box[Elem]

Attributes

Inherited from:
AbstractScreen
implicit def inject[T](implicit man: ClassTag[T]): Box[T]

Perform the injection for the given type. You can call: inject[Date] or inject[List[Map[String, PaymentThing]]]. The appropriate Manifest will be

Perform the injection for the given type. You can call: inject[Date] or inject[List[Map[String, PaymentThing]]]. The appropriate Manifest will be

Attributes

Inherited from:
SimpleInjector
implicit def strToListFieldError(msg: String): List[FieldError]

Attributes

Inherited from:
AbstractScreen
implicit def xmlToListFieldError(msg: NodeSeq): List[FieldError]

Attributes

Inherited from:
AbstractScreen