scala.swing

TextComponent

class TextComponent extends Component with Publisher

A component that allows some kind of text input and display.

go to: companion
known subclasses: TextField, HasRows, HasColumns, TextArea, FormattedTextField, EditorPane
source: TextComponent.scala
    see also:
  1. javax.swing.JTextComponent

Inherited
  1. Hide All
  2. Show all
  1. Component
  2. UIElement
  3. LazyPublisher
  4. Publisher
  5. Reactor
  6. Proxy
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new TextComponent()

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 asInstanceOf[T0]: T0

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

  10. def background: Color

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

  12. def border: Border

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

  14. def bounds: Rectangle

  15. object caret extends Caret

  16. def clone(): AnyRef

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

  17. def copy(): Unit

  18. def cursor: Cursor

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

  20. def cut(): Unit

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

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

  22. def displayable: Boolean

  23. def editable: Boolean

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

  25. def enabled: Boolean

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

  27. def eq(arg0: AnyRef): Boolean

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

  28. def equals(that: Any): Boolean

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

  29. 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.

  30. def focusable: Boolean

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

  32. def font: Font

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

  34. def foreground: Color

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

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

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

  37. def hasFocus: Boolean

  38. def hashCode(): Int

    Returns a hash code value for the object.

  39. def ignoreRepaint: Boolean

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

  41. var initP: JComponent

  42. def inputVerifier: (Component) ⇒ Boolean

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

  44. def isInstanceOf[T0]: Boolean

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

  45. object keys extends Publisher

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

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

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

  48. def locale: Locale

  49. def location: Point

  50. def locationOnScreen: Point

  51. def maximumSize: Dimension

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

  53. def minimumSize: Dimension

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

  55. object mouse extends AnyRef

    Contains publishers for various mouse events.

  56. def name: String

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

  58. def ne(arg0: AnyRef): Boolean

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

  59. def notify(): Unit

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

  60. def notifyAll(): Unit

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

  61. def onFirstSubscribe(): Unit

  62. def onLastUnsubscribe(): Unit

  63. def opaque: Boolean

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

  65. def paint(g: Graphics2D): Unit

  66. def paintBorder(g: Graphics2D): Unit

  67. def paintChildren(g: Graphics2D): Unit

  68. def paintComponent(g: Graphics2D): Unit

    For custom painting, users should usually override this method.

  69. def paste(): Unit

  70. lazy val peer: JTextComponent

    The underlying Swing peer.

  71. def preferredSize: Dimension

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

  73. def publish(e: Event): Unit

    Notify all registered reactions.

  74. val reactions: Reactions

    All reactions of this reactor.

  75. def repaint(rect: Rectangle): Unit

  76. def repaint(): Unit

  77. def requestFocus(): Unit

  78. def requestFocusInWindow(): Boolean

  79. def revalidate(): Unit

  80. def selectAll(): Unit

  81. def selected: String

  82. def self: Component

  83. def showing: Boolean

  84. def size: Dimension

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

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

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

  88. def text: String

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

  90. def toString(): String

    Returns a string representation of the object.

  91. def toolkit: Toolkit

  92. def tooltip: String

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

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

  95. def visible: Boolean

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

  97. def wait(): Unit

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

  99. def wait(arg0: Long): Unit

  100. def xLayoutAlignment: Double

    Used by certain layout managers, e.

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

  102. def yLayoutAlignment: Double

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