CardLayout Members

CardLayout Members

Class Overview | This Package | All Packages

Constructors
Name Description
CardLayout() Creates a new card layout with gaps of size zero.
CardLayout(int, int) Creates a new card layout with the specified horizontal and vertical gaps.

Methods
Name Description
addLayoutComponent(Component, Object) Adds the specified component to this card layout's internal table of names.
addLayoutComponent(String, Component) Deprecated.
first(Container) Flips to the first card of the container.
getHgap() Gets the horizontal gap between components.
getLayoutAlignmentX(Container) Returns the alignment along the x axis.
getLayoutAlignmentY(Container) Returns the alignment along the y axis.
getVgap() Gets the vertical gap between components.
invalidateLayout(Container) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
last(Container) Flips to the last card of the container.
layoutContainer(Container) Lays out the specified container using this card layout.
maximumLayoutSize(Container) Returns the maximum dimensions for this layout given the components in the specified target container.
minimumLayoutSize(Container) Calculates the minimum size for the specified panel.
next(Container) Flips to the next card of the specified container.
preferredLayoutSize(Container) Determines the preferred size of the container argument using this card layout.
previous(Container) Flips to the previous card of the specified container.
removeLayoutComponent(Component) Removes the specified component from the layout.
setHgap(int) Sets the horizontal gap between components.
setVgap(int) Sets the vertical gap between components.
show(Container, String) Flips to the component that was added to this layout with the specified name, using addLayoutComponent.
toString() Returns a string representation of the state of this card layout.