scala.swing

trait LayoutContainer

[source: scala/swing/LayoutContainer.scala]

trait LayoutContainer
extends Wrapper
A container that associates layout constraints with its children. See GridBagPanel for an example.
Direct Known Subclasses:
BorderPanel, GridBagPanel

Type Summary
abstract type Constraints <: AnyRef
The specific type of constraints.
Values and Variables inherited from Wrapper
_contents
Values and Variables inherited from Component
peer, initP
Values and Variables inherited from Publisher
listeners
Values and Variables inherited from Reactor
reactions
Method Summary
protected abstract def add (comp : Component, c : Constraints) : Unit
Adds the component to the layout manager and the peer.
protected abstract def areValid (c : Constraints) : (Boolean, java.lang.String)
Checks whether the given constraints are valid. Additionally returns an error string that is only fetched if the constraints aren't valid.
protected abstract def constraintsFor (c : Component) : Constraints
Used to obtain the constraints from a Swing layout manager.
def layout : Map[Component, Constraints]
A map of components to the associated layout constraints. Any element in this map is automatically added to this panel.
Methods inherited from Wrapper
contents
Methods inherited from Component
xLayoutAlignment, xLayoutAlignment_=, yLayoutAlignment, yLayoutAlignment_=, border, border_=, opaque, opaque_=, enabled, enabled_=, tooltip, tooltip_=, inputVerifier, inputVerifier_=, revalidate, requestFocus, paintComponent, paint, toString
Methods inherited from Publisher
subscribe, unsubscribe, publish
Methods inherited from Reactor
listenTo, deafTo
Methods inherited from UIElement
self, foreground, foreground_=, background, background_=, minimumSize, minimumSize_=, maximumSize, maximumSize_=, preferredSize, preferredSize_=, preferredSize_=, font, font_=, locationOnScreen, location, bounds, size, size_=, size_=, locale, toolkit, cursor, cursor_=, visible, visible_=, showing, repaint
Methods inherited from Proxy
hashCode, equals
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Type Details
abstract type Constraints <: AnyRef
The specific type of constraints.

Method Details
protected abstract def constraintsFor(c : Component) : Constraints
Used to obtain the constraints from a Swing layout manager.

protected abstract def areValid(c : Constraints) : (Boolean, java.lang.String)
Checks whether the given constraints are valid. Additionally returns an error string that is only fetched if the constraints aren't valid.

protected abstract def add(comp : Component, c : Constraints) : Unit
Adds the component to the layout manager and the peer.

def layout : Map[Component, Constraints]
A map of components to the associated layout constraints. Any element in this map is automatically added to this panel.