Trait

com.google.appsscript.ui

FormPanel

Related Doc: package ui

Permalink

trait FormPanel extends Object

FormPanel Deprecated. The UI service was deprecated on December 11, 2014. To create user interfaces, use the HTML service instead. A panel that wraps its contents in an HTML <FORM> element. This panel can be used with a SubmitButton to post form values to the server. All children of this panel (direct, or even children of sub-panels) that have a setName function and have been given a name will have their values sent to the server when the form is submitted. The submit can be handled in the special "doPost" function, as shown in the example. Note that this panel can contain at most one direct child widget. To add more children, make the child of this panel a different panel that can contain more than one child. Here is an example of how to use this widget:

function doGet() { var app = UiApp.createApplication(); var form = app.createFormPanel(); var flow = app.createFlowPanel(); flow.add(app.createTextBox().setName("textBox")); flow.add(app.createListBox().setName("listBox").addItem("option 1").addItem("option 2")); flow.add(app.createSubmitButton("Submit")); form.add(flow); app.add(form); return app; }

function doPost(eventInfo) { var app = UiApp.getActiveApplication(); app.add(app.createLabel("Form submitted. The text box's value was '" + eventInfo.parameter.textBox + "' and the list box's value was '" + eventInfo.parameter.listBox + "'")); return app; }

Internally, UiApp widgets are built on top of the Google Web Toolkit, and it can sometimes be helpful to look at the GWT documentation directly. You can find the FormPanel documentation here.

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FormPanel
  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. def add(widget: Widget): FormPanel

    Permalink

    Deprecated.

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

  5. def addStyleDependentName(styleName: String): FormPanel

    Permalink

    Deprecated.

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

  6. def addStyleName(styleName: String): FormPanel

    Permalink

    Deprecated.

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

  7. def addSubmitCompleteHandler(handler: Handler): FormPanel

    Permalink

    Deprecated.

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

  8. def addSubmitHandler(handler: Handler): FormPanel

    Permalink

    Deprecated.

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

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clear(): FormPanel

    Permalink

    Deprecated.

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

  11. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

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

    Permalink

    Deprecated.

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

  17. def getTag(): String

    Permalink

    Deprecated.

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

  18. def getType(): String

    Permalink

    Deprecated.

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

  19. def hasOwnProperty(v: String): Boolean

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Object
  27. def setAction(action: String): FormPanel

    Permalink

    Deprecated.

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

  28. def setEncoding(encoding: String): FormPanel

    Permalink

    Deprecated.

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

  29. def setHeight(height: String): FormPanel

    Permalink

    Deprecated.

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

  30. def setId(id: String): FormPanel

    Permalink

    Deprecated.

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

  31. def setLayoutData(layout: AnyRef): FormPanel

    Permalink

    Deprecated.

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

  32. def setMethod(method: String): FormPanel

    Permalink

    Deprecated.

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

  33. def setPixelSize(width: Int, height: Int): FormPanel

    Permalink

    Deprecated.

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

  34. def setSize(width: String, height: String): FormPanel

    Permalink

    Deprecated.

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

  35. def setStyleAttribute(attribute: String, value: String): FormPanel

    Permalink

    Deprecated.

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

  36. def setStyleAttributes(attributes: AnyRef): FormPanel

    Permalink

    Deprecated.

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

  37. def setStyleName(styleName: String): FormPanel

    Permalink

    Deprecated.

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

  38. def setStylePrimaryName(styleName: String): FormPanel

    Permalink

    Deprecated.

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

  39. def setTag(tag: String): FormPanel

    Permalink

    Deprecated.

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

  40. def setTitle(title: String): FormPanel

    Permalink

    Deprecated.

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

  41. def setVisible(visible: Boolean): FormPanel

    Permalink

    Deprecated.

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

  42. def setWidget(widget: Widget): FormPanel

    Permalink

    Deprecated.

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

  43. def setWidth(width: String): FormPanel

    Permalink

    Deprecated.

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  47. def valueOf(): Any

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. 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