scala.swing

UIElement

trait UIElement extends Proxy with LazyPublisher

The base trait of all user interface elements. Subclasses belong to one of two groups: top-level elements such as windows and dialogs, or Components.

Source
UIElement.scala
Note

[Implementation] A UIElement automatically adds itself to the component cache on creation.

,

[Java Swing] This trait does not have an exact counterpart in Java Swing. The peer is of type java.awt.Component since this is the least common upper bound of possible underlying peers.

See also

java.awt.Component

Linear Supertypes
LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UIElement
  2. LazyPublisher
  3. Publisher
  4. Reactor
  5. Proxy
  6. AnyRef
  7. Any
Implicitly
  1. by StringAdd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def peer: java.awt.Component

    The underlying Swing peer.

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from UIElement to StringAdd[UIElement] performed by method StringAdd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (UIElement, B)

    Implicit information
    This member is added by an implicit conversion from UIElement to ArrowAssoc[UIElement] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def background: Color

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

  11. def bounds: java.awt.Rectangle

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def cursor: Cursor

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

  15. 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
  16. def displayable: Boolean

  17. def ensuring(cond: (UIElement) ⇒ Boolean, msg: ⇒ Any): UIElement

    Implicit information
    This member is added by an implicit conversion from UIElement to Ensuring[UIElement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (UIElement) ⇒ Boolean): UIElement

    Implicit information
    This member is added by an implicit conversion from UIElement to Ensuring[UIElement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: ⇒ Any): UIElement

    Implicit information
    This member is added by an implicit conversion from UIElement to Ensuring[UIElement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): UIElement

    Implicit information
    This member is added by an implicit conversion from UIElement to Ensuring[UIElement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(that: Any): Boolean

    Definition Classes
    Proxy → Any
  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def font: Font

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

  26. def foreground: Color

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

  28. def formatted(fmtstr: String): String

    Returns string formatted according to given format string.

    Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

    Implicit information
    This member is added by an implicit conversion from UIElement to StringFormat[UIElement] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  29. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  30. def hashCode(): Int

    Definition Classes
    Proxy → Any
  31. def ignoreRepaint: Boolean

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

  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. 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
  35. val listeners: RefSet[Reaction] { val underlying: scala.collection.mutable.HashSet[scala.ref.Reference[scala.swing.Reactions.Reaction]] }

    Attributes
    protected
    Definition Classes
    Publisher
  36. def locale: Locale

  37. def location: java.awt.Point

  38. def locationOnScreen: java.awt.Point

  39. def maximumSize: java.awt.Dimension

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

  41. def minimumSize: java.awt.Dimension

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

  43. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  44. final def notify(): Unit

    Definition Classes
    AnyRef
  45. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  46. def onFirstSubscribe(): Unit

    Attributes
    protected
    Definition Classes
    UIElement → LazyPublisher
  47. def onLastUnsubscribe(): Unit

    Attributes
    protected
    Definition Classes
    UIElement → LazyPublisher
  48. def preferredSize: java.awt.Dimension

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

  50. def publish(e: Event): Unit

    Notify all registered reactions.

    Notify all registered reactions.

    Definition Classes
    Publisher
  51. val reactions: Reactions

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  52. def repaint(rect: Rectangle): Unit

  53. def repaint(): Unit

  54. def self: java.awt.Component

    Definition Classes
    UIElementProxy
  55. def showing: Boolean

  56. def size: java.awt.Dimension

  57. def subscribe(listener: Reaction): Unit

    Definition Classes
    LazyPublisher → Publisher
  58. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  59. def toString(): String

    Definition Classes
    Proxy → Any
  60. def toolkit: Toolkit

  61. def unsubscribe(listener: Reaction): Unit

    Definition Classes
    LazyPublisher → Publisher
  62. def visible: Boolean

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

  64. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. def [B](y: B): (UIElement, B)

    Implicit information
    This member is added by an implicit conversion from UIElement to ArrowAssoc[UIElement] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from LazyPublisher

Inherited from Publisher

Inherited from Reactor

Inherited from Proxy

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringAdd from UIElement to StringAdd[UIElement]

Inherited by implicit conversion StringFormat from UIElement to StringFormat[UIElement]

Inherited by implicit conversion Ensuring from UIElement to Ensuring[UIElement]

Inherited by implicit conversion ArrowAssoc from UIElement to ArrowAssoc[UIElement]

Ungrouped