scala.swing

Container

trait Container extends UIElement

The base traits for UI elements that can contain Components.

Source
Container.scala
Note

[Java Swing] This is not the wrapper for java.awt.Container but a trait that extracts a common interface for components, menus, and windows.

Linear Supertypes
UIElement, LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Container
  2. UIElement
  3. LazyPublisher
  4. Publisher
  5. Reactor
  6. Proxy
  7. AnyRef
  8. 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 contents: Seq[Component]

    The child components of this container.

  2. abstract def peer: java.awt.Component

    The underlying Swing peer.

    The underlying Swing peer.

    Definition Classes
    UIElement

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 Container to StringAdd[Container] performed by method StringAdd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Container, B)

    Implicit information
    This member is added by an implicit conversion from Container to ArrowAssoc[Container] 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

    Definition Classes
    UIElement
  10. def background_=(c: Color): Unit

    Definition Classes
    UIElement
  11. def bounds: java.awt.Rectangle

    Definition Classes
    UIElement
  12. def clone(): AnyRef

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

    Definition Classes
    UIElement
  14. def cursor_=(c: Cursor): Unit

    Definition Classes
    UIElement
  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

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

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

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

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

    Implicit information
    This member is added by an implicit conversion from Container to Ensuring[Container] 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()
  24. def font: Font

    Definition Classes
    UIElement
  25. def font_=(f: Font): Unit

    Definition Classes
    UIElement
  26. def foreground: Color

    Definition Classes
    UIElement
  27. def foreground_=(c: Color): Unit

    Definition Classes
    UIElement
  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 Container to StringFormat[Container] 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

    Definition Classes
    UIElement
  32. def ignoreRepaint_=(b: Boolean): Unit

    Definition Classes
    UIElement
  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

    Definition Classes
    UIElement
  37. def location: java.awt.Point

    Definition Classes
    UIElement
  38. def locationOnScreen: java.awt.Point

    Definition Classes
    UIElement
  39. def maximumSize: java.awt.Dimension

    Definition Classes
    UIElement
  40. def maximumSize_=(x: Dimension): Unit

    Definition Classes
    UIElement
  41. def minimumSize: java.awt.Dimension

    Definition Classes
    UIElement
  42. def minimumSize_=(x: Dimension): Unit

    Definition Classes
    UIElement
  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

    Definition Classes
    UIElement
  49. def preferredSize_=(x: Dimension): Unit

    Definition Classes
    UIElement
  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

    Definition Classes
    UIElement
  53. def repaint(): Unit

    Definition Classes
    UIElement
  54. def self: java.awt.Component

    Definition Classes
    UIElementProxy
  55. def showing: Boolean

    Definition Classes
    UIElement
  56. def size: java.awt.Dimension

    Definition Classes
    UIElement
  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

    Definition Classes
    UIElement
  61. def unsubscribe(listener: Reaction): Unit

    Definition Classes
    LazyPublisher → Publisher
  62. def visible: Boolean

    Definition Classes
    UIElement
  63. def visible_=(b: Boolean): Unit

    Definition Classes
    UIElement
  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): (Container, B)

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

Inherited from UIElement

Inherited from LazyPublisher

Inherited from Publisher

Inherited from Reactor

Inherited from Proxy

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped