|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Builder to fill a container according to a layout description.
Method Summary | |
void |
fill(java.awt.Container comp,
LayoutDescription layout,
UIFactory uiFactory)
fills a container with components according to the layoutDescription. |
void |
refill(java.awt.Container comp,
LayoutDescription layout)
fills a container with its own comps according to the layoutDescription. |
void |
replaceComponents(java.awt.Container container,
LayoutDescription layout,
java.util.Collection newChildren)
fills a container with its own comps according to the layoutDescription, replacing those with names that match one contained in newChildren with the new. |
Method Detail |
public void fill(java.awt.Container comp, LayoutDescription layout, UIFactory uiFactory)
public void refill(java.awt.Container comp, LayoutDescription layout)
To work correctly - all children of the container need to be named (interpreted as componentID) and match the id of the constraints in the description.
public void replaceComponents(java.awt.Container container, LayoutDescription layout, java.util.Collection newChildren)
NOTE: as a side-effect only children/replacing components which have a corresponding constraint (that is one with the same id as comps) are (re-)inserted.
NOTE: this is experimental, mainly to ease client handling of placeholders as long as there is not yet any support for hierarchical forms.
container
- - the containerlayout
- - the layoutDescription to usenewChildren
- - collection of Children to replace
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |