org.hyperscala.realtime

RealtimeEvent

Related Doc: package realtime

case class RealtimeEvent(confirmation: Option[String] = None, preventDefault: Boolean = true, fireChange: Boolean = false, delay: Double = 0.0, maximumRate: Double = 0.0) extends JavaScriptContent with Product with Serializable

RealtimeEvent is a configurable JavaScriptContent that can be supplied to any HTMLTag's JavaScript event to cause all events of that type to propagate to the server.

confirmation

optionally confirmation message that should be shown before sending the event

preventDefault

true if the default event should be prevented (defaults to true)

fireChange

if true a change event is fired immediately before this event (defaults to false)

delay

the amount of time to delay before sending the event in seconds (defaults to 0)

maximumRate

the maximum rate to send events in seconds. For example, if 5 seconds is specified then an event will be sent to the server a maximum of every five seconds.

Linear Supertypes
Serializable, Serializable, Product, Equals, JavaScriptContent, XMLContent, Element[Any], Listenable, MutableChildLike[Any], ChildLike[Any], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RealtimeEvent
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. JavaScriptContent
  7. XMLContent
  8. Element
  9. Listenable
  10. MutableChildLike
  11. ChildLike
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RealtimeEvent(confirmation: Option[String] = None, preventDefault: Boolean = true, fireChange: Boolean = false, delay: Double = 0.0, maximumRate: Double = 0.0)

    confirmation

    optionally confirmation message that should be shown before sending the event

    preventDefault

    true if the default event should be prevented (defaults to true)

    fireChange

    if true a change event is fired immediately before this event (defaults to false)

    delay

    the amount of time to delay before sending the event in seconds (defaults to 0)

    maximumRate

    the maximum rate to send events in seconds. For example, if 5 seconds is specified then an event will be sent to the server a maximum of every five seconds.

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def +(js: JavaScriptContent): JavaScriptString

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

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

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val confirmation: Option[String]

    optionally confirmation message that should be shown before sending the event

  8. def connected[Ancestor](f: (Ancestor) ⇒ Unit)(implicit manifest: Manifest[Ancestor]): Unit

    Definition Classes
    Element
  9. lazy val content: String

    Definition Classes
    RealtimeEvent → JavaScriptContent
  10. val delay: Double

    the amount of time to delay before sending the event in seconds (defaults to 0)

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. val fireChange: Boolean

    if true a change event is fired immediately before this event (defaults to false)

  14. def generate(): String

    Definition Classes
    JavaScriptContent
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. var hierarchicalParent: Any

    Attributes
    protected
    Definition Classes
    MutableChildLike → ChildLike
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def listen[Event, Response, Result](name: String, priority: Priority, modes: ListenMode*)(f: (Event) ⇒ Response)(implicit eventManifest: Manifest[Event]): FunctionalListener[Event, Response]

    Definition Classes
    Listenable
  19. val listeners: Listeners

    Definition Classes
    Listenable
  20. val maximumRate: Double

    the maximum rate to send events in seconds.

    the maximum rate to send events in seconds. For example, if 5 seconds is specified then an event will be sent to the server a maximum of every five seconds.

  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def parent: Any

    Definition Classes
    Element
  25. def parseJson(map: Map[String, Any]): JavaScriptString

    Definition Classes
    JavaScriptContent
  26. val preventDefault: Boolean

    true if the default event should be prevented (defaults to true)

  27. def read(content: Content): Unit

    Definition Classes
    JavaScriptContent → XMLContent
  28. def removeFromParent(): Boolean

    Definition Classes
    XMLContent
  29. def render: Boolean

    Definition Classes
    XMLContent
  30. def replaceWith[T <: XMLContent](content: T): T

    Definition Classes
    XMLContent
  31. def root[T](implicit manifest: Manifest[T]): Option[T]

    Definition Classes
    Element
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. implicit val thisListenable: Listenable

    Definition Classes
    Listenable
  34. def toString(): String

    Definition Classes
    JavaScriptContent → AnyRef → Any
  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def write(writer: HTMLWriter): Unit

    Definition Classes
    JavaScriptContent → XMLContent

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from JavaScriptContent

Inherited from XMLContent

Inherited from Element[Any]

Inherited from Listenable

Inherited from MutableChildLike[Any]

Inherited from ChildLike[Any]

Inherited from AnyRef

Inherited from Any

Ungrouped