public class LazyPanelLayout extends AbstractLayoutManager
LayoutManager
for LazyPanel
.
It removes any child Component
previously added upon addition of new Component
.Constructor and Description |
---|
LazyPanelLayout() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(Component component,
Object constraints)
Called when component added into container with this layout.
|
void |
layoutContainer(Container parent) |
Dimension |
preferredLayoutSize(Container parent) |
addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, migrate, minimumLayoutSize, removeComponent, removeLayoutComponent
public void addComponent(@NotNull Component component, @Nullable Object constraints)
AbstractLayoutManager
addComponent
in class AbstractLayoutManager
component
- added componentconstraints
- component constraintspublic void layoutContainer(@NotNull Container parent)
layoutContainer
in interface LayoutManager
layoutContainer
in class AbstractLayoutManager
@NotNull public Dimension preferredLayoutSize(@NotNull Container parent)
preferredLayoutSize
in interface LayoutManager
preferredLayoutSize
in class AbstractLayoutManager
Copyright © 2020. All rights reserved.