CardLayout

Methods
10
Fields
None

Getting one

CardLayout.new()

Methods

MethodReturnsDescription
getHgap()numberThe gap at the card's left and right.
setHgap(number)()Sets the horizontal gap.
getVgap()numberThe gap above and below the card.
setVgap(number)()Sets the vertical gap.
show(Container, string)()Shows the card added under name, and validates parent; a name no card has changes nothing. A parent whose layout is not this one rais…
first(Container)()Shows the first card.
next(Container)()Shows the next card, the first after the last.
previous(Container)()Shows the previous card, the last before the first.
last(Container)()Shows the last card.
new()CardLayout() -> CardLayout: A layout with no gaps.
new(number, number)CardLayout

Returned by

MethodReturnsDescription
CardLayoutClass.newCardLayout() -> CardLayout: A layout with no gaps.

Method details

show

show: (CardLayout, Container, string) -> ()

Shows the card added under name, and validates parent; a name no card has changes nothing. A parent whose layout is not this one raises IllegalArgumentException.

new

new: (() -> CardLayout) & ((number, number) -> CardLayout)

() -> CardLayout: A layout with no gaps.

(number, number) -> CardLayout: A layout with these gaps around the card.