LayoutContainer
A container that associates layout constraints of member type
Constraints
with its children.
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.
Type members
Value members
Abstract methods
Adds a component with the given constraints to the underlying layout
manager and the component peer. This method needs to interact properly
with method constraintsFor
, i.e., it might need to remove previously
held components in order to maintain layout consistency. See BorderPanel
for an example.
Adds a component with the given constraints to the underlying layout
manager and the component peer. This method needs to interact properly
with method constraintsFor
, i.e., it might need to remove previously
held components in order to maintain layout consistency. See BorderPanel
for an example.
Checks whether the given constraints are valid. Additionally returns an error string that is only fetched if the constraints aren't valid.
Checks whether the given constraints are valid. Additionally returns an error string that is only fetched if the constraints aren't valid.
Concrete methods
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
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.
Inherited methods
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
- Inherited from
- Reactor
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.
- Inherited from
- Reactor