trait SettableField extends ReadableField with SettableValueHolder
A field that can be set
- Alphabetic
- By Inheritance
- SettableField
- SettableValueHolder
- Settable
- ReadableField
- Bindable
- ValueHolder
- FieldIdentifier
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type ValueType
- Definition Classes
- ValueHolder
Abstract Value Members
- abstract def get: ValueType
get the value
get the value
- Definition Classes
- ValueHolder
- abstract def name: String
The human name of this field
The human name of this field
- Definition Classes
- ReadableField
- abstract def set(in: ValueType): ValueType
- Definition Classes
- Settable
- abstract def setFilter: List[(ValueType) => ValueType]
A list of functions that transform the value before it is set.
A list of functions that transform the value before it is set. The transformations are also applied before the value is used in a query. Typical applications of this are trimming and/or toLowerCase-ing strings
- abstract def toForm: Box[NodeSeq]
Create an input field for the item
- abstract def validate: List[FieldError]
Validate this field and return a list of Validation Issues
- abstract def validations: List[(ValueType) => List[FieldError]]
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
- def asHtml: NodeSeq
Default read-only rendering of field
Default read-only rendering of field
- Definition Classes
- ReadableField → Bindable
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def atomicUpdate(f: (ValueType) => ValueType): ValueType
Perform an atomic update of this Settable.
Perform an atomic update of this Settable. The current value is passed to the function and the ValueHolder is set to the result of the function. This is enclosed in the performAtomicOperation method which will, by default, synchronize this instance
- Definition Classes
- Settable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def displayHtml: NodeSeq
- Definition Classes
- ReadableField
- def displayName: String
The display name of this field (e.g., "First Name")
The display name of this field (e.g., "First Name")
- Definition Classes
- ReadableField
- def displayNameHtml: Box[NodeSeq]
- Definition Classes
- ReadableField
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fieldId: Option[NodeSeq]
A unique 'id' for the field for form generation
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def helpAsHtml: Box[NodeSeq]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 performAtomicOperation[T](f: => T): T
Perform an atomic operation on the Settable.
Perform an atomic operation on the Settable. By default synchronizes the instance, but it could use other mechanisms
- Definition Classes
- Settable
- def required_?: Boolean
Is the Field required (and will have a style designating it as such)
- def shouldDisplay_?: Boolean
Given the current context, should this field be displayed
Given the current context, should this field be displayed
- Definition Classes
- ReadableField
- def show_?: Boolean
Given the current state of things, should this field be shown
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def uniqueFieldId: Box[String]
- Definition Classes
- FieldIdentifier
- def uploadField_?: Boolean
Is this an upload field so that a form that includes this field must be multi-part mime
- 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()