c

scala.swing

TextField

class TextField extends TextComponent with HasColumns with Wrapper

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

See also

javax.swing.JTextField

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TextField
  2. Wrapper
  3. Trigger
  4. HasColumns
  5. TextComponent
  6. Component
  7. UIElement
  8. LazyPublisher
  9. Publisher
  10. Reactor
  11. Proxy
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
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
    Definition Classes
    TextComponent

Value Members

  1. object keys extends Publisher
    Definition Classes
    Component
  2. object mouse

    Contains publishers for various mouse events.

    Contains publishers for various mouse events. They are separated for efficiency reasons.

    Definition Classes
    Component
  3. object caret extends Caret
    Definition Classes
    TextComponent
  4. def action: Action
    Definition Classes
    WrapperTrigger
  5. def action_=(a: Action): Unit
    Definition Classes
    WrapperTrigger
  6. def background: Color
    Definition Classes
    UIElement
  7. def background_=(c: Color): Unit
    Definition Classes
    UIElement
  8. def border: Border
    Definition Classes
    Component
  9. def border_=(b: Border): Unit
    Definition Classes
    Component
  10. def bounds: Rectangle
    Definition Classes
    UIElement
  11. def columns: Int
    Definition Classes
    TextFieldHasColumns
  12. def columns_=(n: Int): Unit
    Definition Classes
    TextFieldHasColumns
  13. def componentOrientation: ComponentOrientation
    Definition Classes
    UIElement
  14. def componentOrientation_=(x: ComponentOrientation): Unit
    Definition Classes
    UIElement
  15. def copy(): Unit
    Definition Classes
    TextComponent
  16. def cursor: Cursor
    Definition Classes
    UIElement
  17. def cursor_=(c: Cursor): Unit
    Definition Classes
    UIElement
  18. def cut(): Unit
    Definition Classes
    TextComponent
  19. def deafTo(ps: Publisher*): Unit

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

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

    Definition Classes
    Reactor
  20. def displayable: Boolean
    Definition Classes
    UIElement
  21. def editable: Boolean
    Definition Classes
    TextComponent
  22. def editable_=(x: Boolean): Unit
    Definition Classes
    TextComponent
  23. def enabled: Boolean
    Definition Classes
    Component
  24. def enabled_=(b: Boolean): Unit
    Definition Classes
    Component
  25. def equals(that: Any): Boolean
    Definition Classes
    Proxy → Any
  26. def focusable: Boolean
    Definition Classes
    Component
  27. def focusable_=(b: Boolean): Unit
    Definition Classes
    Component
  28. def font: Font
    Definition Classes
    UIElement
  29. def font_=(f: Font): Unit
    Definition Classes
    UIElement
  30. def foreground: Color
    Definition Classes
    UIElement
  31. def foreground_=(c: Color): Unit
    Definition Classes
    UIElement
  32. def hasFocus: Boolean
    Definition Classes
    Component
  33. def hashCode(): Int
    Definition Classes
    Proxy → Any
  34. def horizontalAlignment: Alignment.Value

    See also

    javax.swing.JTextField#getHorizontalAlignment()

  35. def horizontalAlignment_=(x: Alignment.Value): Unit

    See also

    javax.swing.JTextField#setHorizontalAlignment()

  36. def ignoreRepaint: Boolean
    Definition Classes
    UIElement
  37. def ignoreRepaint_=(b: Boolean): Unit
    Definition Classes
    UIElement
  38. var initP: JComponent
    Definition Classes
    Component
  39. def inputVerifier: (Component) ⇒ Boolean
    Definition Classes
    Component
  40. def inputVerifier_=(v: (Component) ⇒ Boolean): Unit
    Definition Classes
    Component
  41. def listenTo(ps: Publisher*): Unit

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

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

    Definition Classes
    Reactor
  42. def locale: Locale
    Definition Classes
    UIElement
  43. def location: Point
    Definition Classes
    UIElement
  44. def locationOnScreen: Point
    Definition Classes
    UIElement
  45. def maximumSize: Dimension
    Definition Classes
    UIElement
  46. def maximumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  47. def minimumSize: Dimension
    Definition Classes
    UIElement
  48. def minimumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  49. def name: String
    Definition Classes
    Component
  50. def name_=(s: String): Unit
    Definition Classes
    Component
  51. def opaque: Boolean
    Definition Classes
    Component
  52. def opaque_=(b: Boolean): Unit
    Definition Classes
    Component
  53. def paint(g: Graphics2D): Unit
    Definition Classes
    Component
  54. def paste(): Unit
    Definition Classes
    TextComponent
  55. lazy val peer: JTextField

    The underlying Swing peer.

    The underlying Swing peer.

    Definition Classes
    TextFieldWrapperTextComponentComponentUIElement
  56. def preferredSize: Dimension
    Definition Classes
    UIElement
  57. def preferredSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  58. def publish(e: Event): Unit

    Notify all registered reactions.

    Notify all registered reactions.

    Definition Classes
    Publisher
  59. val reactions: Reactions

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  60. def repaint(rect: Rectangle): Unit
    Definition Classes
    UIElement
  61. def repaint(): Unit
    Definition Classes
    UIElement
  62. def requestFocus(): Unit
    Definition Classes
    Component
  63. def requestFocusInWindow(): Boolean
    Definition Classes
    Component
  64. def revalidate(): Unit
    Definition Classes
    Component
  65. def selectAll(): Unit
    Definition Classes
    TextComponent
  66. def selected: String
    Definition Classes
    TextComponent
  67. def self: java.awt.Component
    Definition Classes
    UIElement → Proxy
  68. def shouldYieldFocus: (String) ⇒ Boolean
  69. def shouldYieldFocus_=(y: (String) ⇒ Boolean): Unit
  70. def showing: Boolean
    Definition Classes
    UIElement
  71. def size: Dimension
    Definition Classes
    UIElement
  72. def subscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  73. def text: String
    Definition Classes
    TextComponent
  74. def text_=(t: String): Unit
    Definition Classes
    TextComponent
  75. def toString(): String
    Definition Classes
    Component → Proxy → AnyRef → Any
  76. def toolkit: Toolkit
    Definition Classes
    UIElement
  77. def tooltip: String
    Definition Classes
    Component
  78. def tooltip_=(t: String): Unit
    Definition Classes
    Component
  79. def unsubscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  80. def validate(): Unit
    Definition Classes
    UIElement
  81. def verifier: (String) ⇒ Boolean
  82. def verifier_=(v: (String) ⇒ Boolean): Unit
  83. def visible: Boolean
    Definition Classes
    UIElement
  84. def visible_=(b: Boolean): Unit
    Definition Classes
    UIElement
  85. def xLayoutAlignment: Double

    Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.

    Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.

    Definition Classes
    Component
  86. def xLayoutAlignment_=(x: Double): Unit
    Definition Classes
    Component
  87. def yLayoutAlignment: Double
    Definition Classes
    Component
  88. def yLayoutAlignment_=(y: Double): Unit
    Definition Classes
    Component