scala.swing

TextField

class TextField extends TextComponent with HasColumns with Wrapper

A text component that allows single line text input and display.

known subclasses: PasswordField
source: TextField.scala
    see also:
  1. javax.swing.JTextField

Inherited
  1. Hide All
  2. Show all
  1. Wrapper
  2. Trigger
  3. HasColumns
  4. TextComponent
  5. Component
  6. UIElement
  7. LazyPublisher
  8. Publisher
  9. Reactor
  10. Proxy
  11. AnyRef
  12. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new TextField()

  2. new TextField(columns: Int)

  3. new TextField(text: String)

  4. new TextField(text0: String, columns0: Int)

Type Members

  1. class Caret extends Publisher

  2. trait SuperMixin extends JComponent

    This trait is used to redirect certain calls from the peer to the wrapper and back.

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. lazy val Mouse: mouse

  9. def action: Action

  10. def action_=(a: Action): Unit

  11. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  12. def background: Color

  13. def background_=(c: Color): Unit

  14. def border: Border

  15. def border_=(b: Border): Unit

  16. def bounds: Rectangle

  17. object caret extends Caret

  18. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  19. def columns: Int

  20. def columns_=(n: Int): Unit

  21. def copy(): Unit

  22. def cursor: Cursor

  23. def cursor_=(c: Cursor): Unit

  24. def cut(): Unit

  25. def deafTo(ps: Publisher*): Unit

    Installed reaction won't receive events from the given publisher anylonger.

  26. def displayable: Boolean

  27. def editable: Boolean

  28. def editable_=(x: Boolean): Unit

  29. def enabled: Boolean

  30. def enabled_=(b: Boolean): Unit

  31. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  32. def equals(that: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  33. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  34. def focusable: Boolean

  35. def focusable_=(b: Boolean): Unit

  36. def font: Font

  37. def font_=(f: Font): Unit

  38. def foreground: Color

  39. def foreground_=(c: Color): Unit

  40. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  41. def hasFocus: Boolean

  42. def hashCode(): Int

    Returns a hash code value for the object.

  43. def horizontalAlignment: Value

    no summary matey

  44. def horizontalAlignment_=(x: Value): Unit

    no summary matey

  45. def ignoreRepaint: Boolean

  46. def ignoreRepaint_=(b: Boolean): Unit

  47. var initP: JComponent

  48. def inputVerifier: (Component) ⇒ Boolean

  49. def inputVerifier_=(v: (Component) ⇒ Boolean): Unit

  50. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  51. object keys extends Publisher

  52. def listenTo(ps: Publisher*): Unit

    Listen to the given publisher as long as deafTo isn't called for them.

  53. val listeners: RefSet[PartialFunction[Event, Unit]] {...}

  54. def locale: Locale

  55. def location: Point

  56. def locationOnScreen: Point

  57. def maximumSize: Dimension

  58. def maximumSize_=(x: Dimension): Unit

  59. def minimumSize: Dimension

  60. def minimumSize_=(x: Dimension): Unit

  61. object mouse extends AnyRef

    Contains publishers for various mouse events.

  62. def name: String

  63. def name_=(s: String): Unit

  64. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  65. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  66. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  67. def onFirstSubscribe(): Unit

  68. def onLastUnsubscribe(): Unit

  69. def opaque: Boolean

  70. def opaque_=(b: Boolean): Unit

  71. def paint(g: Graphics2D): Unit

  72. def paintBorder(g: Graphics2D): Unit

  73. def paintChildren(g: Graphics2D): Unit

  74. def paintComponent(g: Graphics2D): Unit

    For custom painting, users should usually override this method.

  75. def paste(): Unit

  76. lazy val peer: JTextField

    The underlying Swing peer.

  77. def preferredSize: Dimension

  78. def preferredSize_=(x: Dimension): Unit

  79. def publish(e: Event): Unit

    Notify all registered reactions.

  80. val reactions: Reactions

    All reactions of this reactor.

  81. def repaint(rect: Rectangle): Unit

  82. def repaint(): Unit

  83. def requestFocus(): Unit

  84. def requestFocusInWindow(): Boolean

  85. def revalidate(): Unit

  86. def selectAll(): Unit

  87. def selected: String

  88. def self: Component

  89. def shouldYieldFocus: (String) ⇒ Boolean

  90. def shouldYieldFocus_=(y: (String) ⇒ Boolean): Unit

  91. def showing: Boolean

  92. def size: Dimension

  93. def size_=(dim: Dimension): Unit

  94. def subscribe(listener: PartialFunction[Event, Unit]): Unit

  95. def synchronized[T0](arg0: T0): T0

  96. def text: String

  97. def text_=(t: String): Unit

  98. def toString(): String

    Returns a string representation of the object.

  99. def toolkit: Toolkit

  100. def tooltip: String

  101. def tooltip_=(t: String): Unit

  102. def unsubscribe(listener: PartialFunction[Event, Unit]): Unit

  103. def verifier: (String) ⇒ Boolean

  104. def verifier_=(v: (String) ⇒ Boolean): Unit

  105. def visible: Boolean

  106. def visible_=(b: Boolean): Unit

  107. def wait(): Unit

  108. def wait(arg0: Long, arg1: Int): Unit

  109. def wait(arg0: Long): Unit

  110. def xLayoutAlignment: Double

    Used by certain layout managers, e.

  111. def xLayoutAlignment_=(x: Double): Unit

  112. def yLayoutAlignment: Double

  113. def yLayoutAlignment_=(y: Double): Unit