|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Role public interface LayoutManager
Layout manager to handle layouting of a block container, based on a set of parameters. The
layoutContainer(Block)
function should read the container children and modify them accordingly to meet the
required layout. Note that although the function can access the whole tree through the passed block, it is
recommended that the changes are limited to the container block and its children. Also, usually the container block
should be a group block. Parameters are used to pass various parameters required for the layouting (sizes, style
options, etc).
Method Summary | |
---|---|
Object |
getParameter(String parameterName)
|
void |
layoutContainer(Block container)
Performs the layout of container , modifying the blocks inside. |
void |
setParameter(String parameterName,
Object parameterValue)
Sets a parameter needed for the layout. |
Method Detail |
---|
void layoutContainer(Block container)
container
, modifying the blocks inside.
container
- the block whose contents to layoutvoid setParameter(String parameterName, Object parameterValue)
parameterName
- the name of the parameter to setparameterValue
- the value of the parameterObject getParameter(String parameterName)
parameterName
- the name of the parameter whose value to return
parameterName
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |