|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.stack.tab.layouting.ComponentLayoutBlock<C>
public class ComponentLayoutBlock<C extends TabPaneComponent>
This LayoutBlock
handles exactly one TabPaneComponent
.
Constructor Summary | |
---|---|
ComponentLayoutBlock()
|
Method Summary | |
---|---|
C |
getComponent()
Gets the component which is managed by this block. |
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 |
setComponent(C component)
Sets the component which should be managed by 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentLayoutBlock()
Method Detail |
---|
public void setComponent(C component)
component
- the new component, may be null
public C getComponent()
null
public void setBounds(int x, int y, int width, int height)
LayoutBlock
setBounds
in interface LayoutBlock
x
- the x coordinatey
- the y coordinatewidth
- the width in pixelheight
- the height in pixelpublic Size[] getSizes()
LayoutBlock
getSizes
in interface LayoutBlock
null
public void setLayout(Size size)
LayoutBlock
size
depends on this block. In general keys returned by the last call of
LayoutBlock.getSizes()
must be accepted, for any other key the behavior
is unspecified.
setLayout
in interface LayoutBlock
size
- the new layoutpublic void setOrientation(TabPlacement placement)
LayoutBlock
LayoutBlock
at which side of the tabs it is shown.
setOrientation
in interface LayoutBlock
placement
- the placement, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |