Panel Stretch Layout does not accept direct children; children contents can be placed inside facets only. Panel Stretch Layout supports five facets that specify the panes where children contents can be inserted:
<af:panelStretchLayout ..> <f:facet name="bottom"/> <f:facet name="center"/> <f:facet name="start"/> <f:facet name="end"/> <f:facet name="top"/> </af:panelStretchLayout>
Panel Stretch Layout is a stretching layout component, that is, it forces specific dimensions onto its children components so that the children in the
center facet are stretched to fill up available space in the browser when end users resize the browser.
The available space in the
center facet may be constrained by the presence of children in the
end facets. The height of the
top facet is determined by the
TopHeight attribute of Panel Stretch Layout; the height of the
bottom facet is determined by the
BottomHeight attribute. Similarly, the width of the
end facet is determined by the
EndWidth attribute, respectively.
By default, JDeveloper uses 50 pixels each for the
EndWidth attributes. When children are present in the
end facets, they occupy space defined by those attributes. Children components in the
bottom facets are stretched up to the height set by
BottomHeight, respectively, and children in the
end facets are stretched up to the width set by
EndWidth, respectively. Children components in the
center facet are then stretched according to available space.
Copyright © 1997, 2009, Oracle. All rights reserved.