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.

known subclasses: GridBagPanel, BorderPanel
source: LayoutContainer.scala
Inherited
  1. Hide All
  2. Show all
  1. Wrapper
  2. Container
  3. UIElement
  4. LazyPublisher
  5. Publisher
  6. Reactor
  7. Proxy
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Type Members

  1. type Constraints <: AnyRef

    The type of component constraints for this container.

  2. class Content extends BufferWrapper[Component]

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. val _contents: Content

  9. def add(comp: Component, c: Constraints): Unit

    Adds a component with the given constraints to the underlying layout manager and the component peer.

  10. def areValid(c: Constraints): (Boolean, String)

    Checks whether the given constraints are valid.

  11. def asInstanceOf[T0]: T0

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

  12. def background: Color

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

  14. def bounds: Rectangle

  15. def clone(): AnyRef

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

  16. def constraintsFor(c: Component): Constraints

    Obtains the constraints for the given component from the underlying Swing layout manager.

  17. def contents: Seq[Component]

    The child components of this container.

  18. def cursor: Cursor

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

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

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

  21. def displayable: Boolean

  22. def eq(arg0: AnyRef): Boolean

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

  23. def equals(that: Any): Boolean

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

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

  25. def font: Font

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

  27. def foreground: Color

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

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

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

  30. def hashCode(): Int

    Returns a hash code value for the object.

  31. def ignoreRepaint: Boolean

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

  33. def isInstanceOf[T0]: Boolean

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

  34. def layout: Map[Component, Constraints]

    A map of components to the associated layout constraints.

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

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

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

  37. def locale: Locale

  38. def location: Point

  39. def locationOnScreen: Point

  40. def maximumSize: Dimension

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

  42. def minimumSize: Dimension

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

  44. def ne(arg0: AnyRef): Boolean

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

  45. def notify(): Unit

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

  46. def notifyAll(): Unit

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

  47. def onFirstSubscribe(): Unit

  48. def onLastUnsubscribe(): Unit

  49. def peer: JComponent

    The underlying Swing peer.

  50. def preferredSize: Dimension

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

  52. def publish(e: Event): Unit

    Notify all registered reactions.

  53. val reactions: Reactions

    All reactions of this reactor.

  54. def repaint(rect: Rectangle): Unit

  55. def repaint(): Unit

  56. def self: Component

  57. def showing: Boolean

  58. def size: Dimension

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

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

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

  62. def toString(): String

    Returns a string representation of the object.

  63. def toolkit: Toolkit

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

  65. def visible: Boolean

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

  67. def wait(): Unit

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

  69. def wait(arg0: Long): Unit