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, LoggingCore, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CaseForm
  2. Logging
  3. LoggingCore
  4. AnyRef
  5. 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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def asynchronousLogging: Boolean

    Attributes
    protected
    Definition Classes
    LoggingCore
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def debug(message: ⇒ Any): Unit

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

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

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

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

    Definition Classes
    Logging
  14. 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]

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

    Attributes
    protected
  16. 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

  17. def finalize(): Unit

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

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

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

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

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

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

    Definition Classes
    LoggingCore
  24. val logger: InnerLogging

    Definition Classes
    LoggingCore
  25. def loggingClassName: String

    Attributes
    protected
    Definition Classes
    LoggingCore
  26. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  29. def processingLabel: String

  30. val property: Property[T]

  31. def refreshFormFromProperty(): Unit

  32. def refreshPropertyFromForm(): Unit

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

    Definition Classes
    AnyRef
  34. def toString(): String

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

    Definition Classes
    Logging
  36. 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

  37. 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

  38. 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

  39. final def wait(): Unit

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

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

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

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

    Definition Classes
    Logging

Inherited from Logging

Inherited from LoggingCore

Inherited from AnyRef

Inherited from Any

Ungrouped