Class

com.nappin.play.recaptcha

WidgetHelper

Related Doc: package recaptcha

Permalink

class WidgetHelper extends AnyRef

Helper functionality for the recaptchaWidget view template.

Annotations
@Singleton()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WidgetHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WidgetHelper(settings: RecaptchaSettings)

    Permalink

    settings

    Recaptcha configuration settings

    Annotations
    @Inject()

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def captchaSize: String

    Permalink

    Returns the configured captcha size, or the default if none defined

    Returns the configured captcha size, or the default if none defined

    returns

    The size to use

  6. def captchaTheme: String

    Permalink

    Returns the configured theme, or "light" if none defined

    Returns the configured theme, or "light" if none defined

    returns

    The theme to use

  7. def captchaType: String

    Permalink

    Returns the configured captcha type, or the default if none defined

    Returns the configured captcha type, or the default if none defined

    returns

    The type to use

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def formatClass(mainClass: String, args: (Symbol, String)*): String

    Permalink

    Formats a CSS class attribute, including the specified main class and any further classes defined in args.

    Formats a CSS class attribute, including the specified main class and any further classes defined in args.

    mainClass

    The main class

    args

    The further args (if any)

    returns

    The formatted CSS class attribute

  13. def formatOtherAttributes(args: (Symbol, String)*): String

    Permalink

    Formats any other CSS attributes (other than class).

    Formats any other CSS attributes (other than class).

    args

    The further args (if any)

    returns

    The formatted CSS class attribute

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getFieldError(form: Form[_])(implicit messages: Messages): Option[String]

    Permalink

    Get the error for the reCAPTCHA field from the form, if any.

    Get the error for the reCAPTCHA field from the form, if any.

    form

    The form to check

    messages

    The current Play messages

    returns

    The error message, if any

  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def publicKey: String

    Permalink

    Returns the configured public key.

    Returns the configured public key.

    returns

    The public key

  22. def resolveRecaptchaErrors(fieldname: String, form: Form[_])(implicit messages: Messages): Form[_]

    Permalink

    Resolves any recaptcha error messages (from message key to message text) and associates it with the specified fieldname (instead of the default of com.nappin.play.recaptcha.error).

    Resolves any recaptcha error messages (from message key to message text) and associates it with the specified fieldname (instead of the default of com.nappin.play.recaptcha.error).

    fieldname

    The name of the recaptcha field

    form

    The form

    messages

    The current Play messages

    returns

    The form, updated if required

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

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def widgetNoScriptUrl(error: Option[String] = None): String

    Permalink

    Returns the widget no-script URL, with public key and error code (if any).

    Returns the widget no-script URL, with public key and error code (if any).

    error

    The error code (if any)

    returns

    The URL

  29. def widgetScriptUrl(error: Option[String] = None)(implicit messages: Messages): String

    Permalink

    Returns the widget script URL, with parameters (if applicable).

    Returns the widget script URL, with parameters (if applicable).

    error

    The error code (if any)

    messages

    The current i18n messages

    returns

    The URL

Inherited from AnyRef

Inherited from Any

Ungrouped