Trait

com.google.appsscript.ui

PasswordTextBox

Related Doc: package ui

Permalink

trait PasswordTextBox extends Object

PasswordTextBox Deprecated. The UI service was deprecated on December 11, 2014. To create user interfaces, use the HTML service instead. A text box that visually masks its input to prevent eavesdropping. Here is an example of how to use this widget:

function doGet() { var app = UiApp.createApplication(); var text = app.createPasswordTextBox().setName("text"); var handler = app.createServerHandler("test").addCallbackElement(text); app.add(text); app.add(app.createButton("Test", handler)); app.add(app.createLabel("0 characters").setId("label")); return app; }

function test(eventInfo) { var app = UiApp.createApplication(); // Because the text box was named "text" and added as a callback element to the // button's click event, we have its value available in eventInfo.parameter.text. var pass = eventInfo.parameter.text; var isStrong = pass.length >= 10 && /[A-Z]/.test(pass) && /[a-z]/.test(pass) && /[0-9]/.test(pass); var label = app.getElementById("label"); if (isStrong) { label.setText("Strong! Well, not really, but this is just an example.") .setStyleAttribute("color", "green"); } else { label.setText("Weak! Use at least 10 characters, with uppercase, lowercase, and digits") .setStyleAttribute("color", "red"); } 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 PasswordTextBox documentation here.

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PasswordTextBox
  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 addBlurHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  5. def addChangeHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  6. def addClickHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  7. def addFocusHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  8. def addKeyDownHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  9. def addKeyPressHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  10. def addKeyUpHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  11. def addMouseDownHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  12. def addMouseMoveHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  13. def addMouseOutHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  14. def addMouseOverHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  15. def addMouseUpHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  16. def addMouseWheelHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  17. def addStyleDependentName(styleName: String): PasswordTextBox

    Permalink

    Deprecated.

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

  18. def addStyleName(styleName: String): PasswordTextBox

    Permalink

    Deprecated.

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

  19. def addValueChangeHandler(handler: Handler): PasswordTextBox

    Permalink

    Deprecated.

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

  20. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  21. def clone(): AnyRef

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

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

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

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

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

    Permalink

    Deprecated.

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

  27. def getTag(): String

    Permalink

    Deprecated.

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

  28. def getType(): String

    Permalink

    Deprecated.

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

  29. def hasOwnProperty(v: String): Boolean

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Object
  37. def setAccessKey(accessKey: Char): PasswordTextBox

    Permalink

    Deprecated.

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

  38. def setCursorPos(position: Int): PasswordTextBox

    Permalink

    Deprecated.

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

  39. def setDirection(direction: Component): PasswordTextBox

    Permalink

    Deprecated.

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

  40. def setEnabled(enabled: Boolean): PasswordTextBox

    Permalink

    Deprecated.

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

  41. def setFocus(focus: Boolean): PasswordTextBox

    Permalink

    Deprecated.

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

  42. def setHeight(height: String): PasswordTextBox

    Permalink

    Deprecated.

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

  43. def setId(id: String): PasswordTextBox

    Permalink

    Deprecated.

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

  44. def setLayoutData(layout: AnyRef): PasswordTextBox

    Permalink

    Deprecated.

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

  45. def setMaxLength(length: Int): PasswordTextBox

    Permalink

    Deprecated.

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

  46. def setName(name: String): PasswordTextBox

    Permalink

    Deprecated.

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

  47. def setPixelSize(width: Int, height: Int): PasswordTextBox

    Permalink

    Deprecated.

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

  48. def setReadOnly(readOnly: Boolean): PasswordTextBox

    Permalink

    Deprecated.

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

  49. def setSelectionRange(position: Int, length: Int): PasswordTextBox

    Permalink

    Deprecated.

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

  50. def setSize(width: String, height: String): PasswordTextBox

    Permalink

    Deprecated.

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

  51. def setStyleAttribute(attribute: String, value: String): PasswordTextBox

    Permalink

    Deprecated.

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

  52. def setStyleAttributes(attributes: AnyRef): PasswordTextBox

    Permalink

    Deprecated.

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

  53. def setStyleName(styleName: String): PasswordTextBox

    Permalink

    Deprecated.

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

  54. def setStylePrimaryName(styleName: String): PasswordTextBox

    Permalink

    Deprecated.

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

  55. def setTabIndex(index: Int): PasswordTextBox

    Permalink

    Deprecated.

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

  56. def setTag(tag: String): PasswordTextBox

    Permalink

    Deprecated.

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

  57. def setText(text: String): PasswordTextBox

    Permalink

    Deprecated.

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

  58. def setTextAlignment(textAlign: Component): PasswordTextBox

    Permalink

    Deprecated.

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

  59. def setTitle(title: String): PasswordTextBox

    Permalink

    Deprecated.

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

  60. def setValue(value: String, fireEvents: Boolean): PasswordTextBox

    Permalink

    Deprecated.

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

  61. def setValue(value: String): PasswordTextBox

    Permalink

    Deprecated.

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

  62. def setVisible(visible: Boolean): PasswordTextBox

    Permalink

    Deprecated.

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

  63. def setVisibleLength(length: Int): PasswordTextBox

    Permalink

    Deprecated.

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

  64. def setWidth(width: String): PasswordTextBox

    Permalink

    Deprecated.

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

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

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

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

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

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

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

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