The type of component constraints for this container.
Adds a component with the given constraints to the underlying layout manager and the component peer.
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.
Checks whether the given constraints are valid. Additionally returns an error string that is only fetched if the constraints aren't valid.
Obtains the constraints for the given component from the underlying Swing layout manager.
Obtains the constraints for the given component from the underlying Swing layout manager.
The underlying Swing peer.
The child components of this container.
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
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.
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.
Notify all registered reactions.
Notify all registered reactions.
All reactions of this reactor.
All reactions of this reactor.
A container that associates layout constraints of member type
Constraints
with its children.See
GridBagPanel
for an example container with custom constraints.[Java Swing] In scala.swing, panels and layout managers are combined into subclasses of this base class. This approach allows for typed component constraints.