t

scala.swing

LayoutContainer

trait LayoutContainer extends Wrapper

A container that associates layout constraints of member type Constraints with its children.

See GridBagPanel for an example container with custom constraints.

Note

[Java Swing] In scala.swing, panels and layout managers are combined into subclasses of this base class. This approach allows for typed component constraints.

Linear Supertypes
Wrapper, Container, UIElement, LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LayoutContainer
  2. Wrapper
  3. Container
  4. UIElement
  5. LazyPublisher
  6. Publisher
  7. Reactor
  8. Proxy
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Constraints <: AnyRef

    The type of component constraints for this container.

Abstract Value Members

  1. abstract def peer: JComponent

    The underlying Swing peer.

    The underlying Swing peer.

    Definition Classes
    WrapperUIElement

Concrete Value Members

  1. def background: Color
    Definition Classes
    UIElement
  2. def background_=(c: Color): Unit
    Definition Classes
    UIElement
  3. def bounds: Rectangle
    Definition Classes
    UIElement
  4. def componentOrientation: ComponentOrientation
    Definition Classes
    UIElement
  5. def componentOrientation_=(x: ComponentOrientation): Unit
    Definition Classes
    UIElement
  6. def contents: Seq[Component]

    The child components of this container.

    The child components of this container.

    Definition Classes
    WrapperContainer
  7. def cursor: Cursor
    Definition Classes
    UIElement
  8. def cursor_=(c: Cursor): Unit
    Definition Classes
    UIElement
  9. 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
  10. def displayable: Boolean
    Definition Classes
    UIElement
  11. def equals(that: Any): Boolean
    Definition Classes
    Proxy → Any
  12. def font: Font
    Definition Classes
    UIElement
  13. def font_=(f: Font): Unit
    Definition Classes
    UIElement
  14. def foreground: Color
    Definition Classes
    UIElement
  15. def foreground_=(c: Color): Unit
    Definition Classes
    UIElement
  16. def hashCode(): Int
    Definition Classes
    Proxy → Any
  17. def ignoreRepaint: Boolean
    Definition Classes
    UIElement
  18. def ignoreRepaint_=(b: Boolean): Unit
    Definition Classes
    UIElement
  19. def layout: Map[Component, Constraints]

    A map of components to the associated layout constraints.

    A map of components to the associated layout constraints. Any element in this map is automatically added to the contents of this panel. Therefore, specifying the layout of a component via

    layout(myComponent) = myConstraints

    also ensures that myComponent is properly added to this container.

  20. 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
  21. def locale: Locale
    Definition Classes
    UIElement
  22. def location: Point
    Definition Classes
    UIElement
  23. def locationOnScreen: Point
    Definition Classes
    UIElement
  24. def maximumSize: Dimension
    Definition Classes
    UIElement
  25. def maximumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  26. def minimumSize: Dimension
    Definition Classes
    UIElement
  27. def minimumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  28. def preferredSize: Dimension
    Definition Classes
    UIElement
  29. def preferredSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  30. def publish(e: Event): Unit

    Notify all registered reactions.

    Notify all registered reactions.

    Definition Classes
    Publisher
  31. val reactions: Reactions

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  32. def repaint(rect: Rectangle): Unit
    Definition Classes
    UIElement
  33. def repaint(): Unit
    Definition Classes
    UIElement
  34. def self: java.awt.Component
    Definition Classes
    UIElement → Proxy
  35. def showing: Boolean
    Definition Classes
    UIElement
  36. def size: Dimension
    Definition Classes
    UIElement
  37. def subscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  38. def toString(): String
    Definition Classes
    Proxy → Any
  39. def toolkit: Toolkit
    Definition Classes
    UIElement
  40. def unsubscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  41. def validate(): Unit
    Definition Classes
    UIElement
  42. def visible: Boolean
    Definition Classes
    UIElement
  43. def visible_=(b: Boolean): Unit
    Definition Classes
    UIElement