Class PageLayoutAssembler

java.lang.Object
io.meeds.layout.service.PageLayoutAssembler

public class PageLayoutAssembler extends Object
Rebuilds a page's sections from a set_page_layout call, for one call: the page's ancestors down to the sections parent are kept from the stored tree and the parent's children are written in the order given, as the page editor's newSection and newCell shape them: a dynamic section is a FlexContainer over one CellContainer per column, each spanning 12 / N of the grid; a grid section is a GridContainer over the editor's full matrix of CellContainers in reading order, a described cell at its row and column with its spans and an empty cell at every position no cell covers. A section or a cell addressed by its id keeps its stored element and every styling block the call leaves null, a kept dynamic section its cells when its column count is unchanged; an application addressed by its id keeps its window the same way; a window the caller cannot see, which the call can neither address nor move, stays in its cell at its index when that cell is kept, the call being refused otherwise.