org.hyperscala.ui.form

CaseForm

abstract class CaseForm[T] extends Logging

CaseForm allows convenient wrapping around an HTML Form to easier access and validate the fields within.

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CaseForm
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CaseForm(form: Form, errorSupport: ErrorSupport, realTime: Boolean = false)(implicit manifest: Manifest[T])

Abstract Value Members

  1. abstract def submit(): Unit

    Invoked upon successful validation upon form submit or after field changes (if realTime is true).

Concrete 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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def debug(message: ⇒ Any): Unit

    Definition Classes
    Logging
  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def error(message: ⇒ Any, t: Throwable): Unit

    Definition Classes
    Logging
  10. def error(message: ⇒ Any): Unit

    Definition Classes
    Logging
  11. def field[V](name: String): CaseFormField[V]

    Retrieve the CaseFormField by field name.

    Retrieve the CaseFormField by field name.

    V

    the value type represented for this field

    name

    the name of the field name in the case class

    returns

    CaseFormField[V]

  12. def fieldParseError[V](value: String, runtimeClass: Class[V]): Option[V]

    Attributes
    protected
  13. def fieldValidator[V](field: String)(f: (V) ⇒ Option[String]): Unit

    Receives the value of the field during validation.

    Receives the value of the field during validation.

    V

    the type of the value expected from field

    field

    to validate against

    f

    the validation function returns Some(errorMessage) or None if validation passed

  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. val form: Form

  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. def info(message: ⇒ Any): Unit

    Definition Classes
    Logging
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def log(level: Level, message: ⇒ Any): Unit

    Definition Classes
    Logging
  21. def logger: Logger

    Definition Classes
    Logging
  22. def loggerName: String

    Attributes
    protected
    Definition Classes
    Logging
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. def processingLabel: String

  27. val property: Property[T]

  28. def refreshFormFromProperty(): Unit

  29. def refreshPropertyFromForm(): Unit

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. def trace(message: ⇒ Any): Unit

    Definition Classes
    Logging
  33. def update[V](name: String)(updateFunction: (CaseFormField[V]) ⇒ CaseFormField[V]): Unit

    Updates a CaseFormField by name.

    Updates a CaseFormField by name.

    V

    the value type represented for this field

    name

    the name of the field name in the case class

    updateFunction

    the function that receives the current CaseFormField and returns the updated version

  34. def validate(): Boolean

    Executes all validators and returns true if validation was successful.

    Executes all validators and returns true if validation was successful.

    returns

    true if no validation errors occurred

  35. def validator(fields: String*)(f: ⇒ Option[String]): Unit

    Adds a validator for the supplied fields (may be empty) and returns an error message if validation failed or None.

    Adds a validator for the supplied fields (may be empty) and returns an error message if validation failed or None.

    fields

    the fields the validation is applied to. May be None.

    f

    the validator function

  36. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def warn(message: ⇒ Any, t: Throwable): Unit

    Definition Classes
    Logging
  40. def warn(message: ⇒ Any): Unit

    Definition Classes
    Logging

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped