|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayoutBlock
Represents one or many components that have some unknown layout and are used
by an AbstractTabLayoutManager
to layout the contents of a TabPane
.
Method Summary | |
---|---|
Size[] |
getSizes()
Creates a map of all sizes for which this block knows how to make an optimal layout. |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the boundaries of this block. |
void |
setLayout(Size size)
Sets the layout of this block, the exact meaning of size
depends on this block. |
void |
setOrientation(TabPlacement placement)
Tells this LayoutBlock at which side of the tabs it is shown. |
Method Detail |
---|
Size[] getSizes()
null
void setLayout(Size size)
size
depends on this block. In general keys returned by the last call of
getSizes()
must be accepted, for any other key the behavior
is unspecified.
size
- the new layout
IllegalArgumentException
- if key
is null
or cannot be readvoid setBounds(int x, int y, int width, int height)
x
- the x coordinatey
- the y coordinatewidth
- the width in pixelheight
- the height in pixelvoid setOrientation(TabPlacement placement)
LayoutBlock
at which side of the tabs it is shown.
placement
- the placement, not null
IllegalArgumentException
- if placement
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |