This trait is used to redirect certain calls from the peer to the wrapper and back.
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 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.
Contains publishers for various mouse events.
For custom painting, users should usually override this method.
For custom painting, users should usually override this method.
Convenient conversion from xy-coords given as pairs to grid bag constraints.
The underlying Swing peer.
The underlying Swing peer.
Notify all registered reactions.
Notify all registered reactions.
All reactions of this reactor.
All reactions of this reactor.
Used by certain layout managers, e.
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.
A panel that arranges its children in a grid. Layout details can be given for each cell of the grid.
java.awt.GridBagLayout