Trait

com.google.appsscript.ui

ClientHandler

Related Doc: package ui

Permalink

trait ClientHandler extends Object

ClientHandler Deprecated. The UI service was deprecated on December 11, 2014. To create user interfaces, use the HTML service instead. An event handler that runs in the user's browser without needing a call back to the server. These will, in general, run much faster than ServerHandlers but they are also more limited in what they can do. Any method that accepts a "Handler" parameter can accept a ClientHandler. If you set validators on a ClientHandler, they will be checked before the handler performs its actions. The actions will only be performed if the validators succeed. If you have multiple ClientHandlers for the same event on the same widget, they will perform their actions in the order that they were added. An example of using client handlers:

function doGet() { var app = UiApp.createApplication(); var button = app.createButton("Say Hello");

// Create a label with the "Hello World!" text and hide it for now var label = app.createLabel("Hello World!").setVisible(false);

// Create a new handler that does not require the server. // We give the handler two actions to perform on different targets. // The first action disables the widget that invokes the handler // and the second displays the label. var handler = app.createClientHandler() .forEventSource().setEnabled(false) .forTargets(label).setVisible(true);

// Add our new handler to be invoked when the button is clicked button.addClickHandler(handler);

app.add(button); app.add(label); return app; }

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClientHandler
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def forEventSource(): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  10. def forTargets(widgets: AnyRef*): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getId(): String

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  13. def getTag(): String

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  14. def getType(): String

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  15. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  23. def setEnabled(enabled: Boolean): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  24. def setHTML(html: String): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  25. def setId(id: String): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  26. def setStyleAttribute(attribute: String, value: String): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  27. def setStyleAttribute(row: Int, column: Int, attribute: String, value: String): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  28. def setStyleAttributes(attributes: AnyRef): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  29. def setStyleAttributes(row: Int, column: Int, attributes: AnyRef): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  30. def setTag(tag: String): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  31. def setText(text: String): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  32. def setValue(value: Boolean): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  33. def setVisible(visible: Boolean): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

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

    Permalink
    Definition Classes
    AnyRef
  35. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. def validateEmail(widget: Widget): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  38. def validateInteger(widget: Widget): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  39. def validateLength(widget: Widget, min: Int, max: Int): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  40. def validateMatches(widget: Widget, pattern: String, flags: String): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  41. def validateMatches(widget: Widget, pattern: String): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  42. def validateNotEmail(widget: Widget): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  43. def validateNotInteger(widget: Widget): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  44. def validateNotLength(widget: Widget, min: Int, max: Int): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  45. def validateNotMatches(widget: Widget, pattern: String, flags: String): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  46. def validateNotMatches(widget: Widget, pattern: String): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  47. def validateNotNumber(widget: Widget): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  48. def validateNotOptions(widget: Widget, options: Array[String]): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  49. def validateNotRange(widget: Widget, min: Number, max: Number): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  50. def validateNotSum(widgets: Array[Widget], sum: Int): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  51. def validateNumber(widget: Widget): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  52. def validateOptions(widget: Widget, options: Array[String]): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  53. def validateRange(widget: Widget, min: Number, max: Number): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  54. def validateSum(widgets: Array[Widget], sum: Int): ClientHandler

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  55. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  56. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped