trait ValidateLength extends MixableMappedField
Mix this trait into a MappedString and it will add maximum length validation to the MappedString
- Self Type
- ValidateLength with MappedString[_]
- Alphabetic
- By Inheritance
- ValidateLength
- MixableMappedField
- BaseField
- FieldContainer
- SettableField
- SettableValueHolder
- Settable
- ReadableField
- Bindable
- ValueHolder
- FieldIdentifier
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
type
TheOwnerType <: Mapper[(ValidateLength.this)#TheOwnerType]
Will be set to the type of the owner of the field
Will be set to the type of the owner of the field
- Definition Classes
- MixableMappedField
-
abstract
type
ValueType
- Definition Classes
- ValueHolder
Abstract Value Members
-
abstract
def
asString: String
Return the field name and field value, delimited by an '='
Return the field name and field value, delimited by an '='
- Definition Classes
- MixableMappedField
-
abstract
def
dbColumnCount: Int
- Definition Classes
- MixableMappedField
-
abstract
def
dbForeignKey_?: Boolean
Is the field a foreign key reference
Is the field a foreign key reference
- Definition Classes
- MixableMappedField
-
abstract
def
dbIndexed_?: Boolean
- Definition Classes
- MixableMappedField
-
abstract
def
dbNotNull_?: Boolean
- Definition Classes
- MixableMappedField
-
abstract
def
dbPrimaryKey_?: Boolean
- Definition Classes
- MixableMappedField
-
abstract
def
get: (ValidateLength.this)#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: (ValidateLength.this)#ValueType): (ValidateLength.this)#ValueType
- Definition Classes
- Settable
-
abstract
def
setFilter: List[((ValidateLength.this)#ValueType) ⇒ (ValidateLength.this)#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
- Definition Classes
- SettableField
-
abstract
def
toForm: Box[NodeSeq]
Create an input field for the item
Create an input field for the item
- Definition Classes
- SettableField
-
abstract
def
validate: List[FieldError]
Validate this field and return a list of Validation Issues
Validate this field and return a list of Validation Issues
- Definition Classes
- SettableField
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
allFields: Seq[BaseField]
- Definition Classes
- BaseField → FieldContainer
-
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: ((ValidateLength.this)#ValueType) ⇒ (ValidateLength.this)#ValueType): (ValidateLength.this)#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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def defaultErrorMessage: String
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fieldId: Option[NodeSeq]
A unique 'id' for the field for form generation
A unique 'id' for the field for form generation
- Definition Classes
- SettableField
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
helpAsHtml: Box[NodeSeq]
- Definition Classes
- SettableField
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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)
Is the Field required (and will have a style designating it as such)
- Definition Classes
- SettableField
-
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
Given the current state of things, should this field be shown
- Definition Classes
- SettableField
-
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
Is this an upload field so that a form that includes this field must be multi-part mime
- Definition Classes
- SettableField
-
def
validations: List[((ValidateLength.this)#ValueType) ⇒ List[FieldError]]
- Definition Classes
- ValidateLength → SettableField
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )