class LayoutImpl
extends java.lang.Object
Layout
must create a
new instance for each layout-parent.Modifier and Type | Field and Description |
---|---|
protected DivElement |
relativeRuler |
Constructor and Description |
---|
LayoutImpl() |
Modifier and Type | Method and Description |
---|---|
Element |
attachChild(Element parent,
Element child,
Element before) |
protected static DivElement |
createRuler(Style.Unit widthUnit,
Style.Unit heightUnit) |
void |
fillParent(Element elem) |
void |
finalizeLayout(Element parent) |
double |
getUnitSizeInPixels(Element parent,
Style.Unit unit,
boolean vertical) |
void |
initParent(Element parent) |
void |
layout(Layout.Layer layer) |
void |
onAttach(Element parent) |
void |
onDetach(Element parent) |
void |
removeChild(Element container,
Element child) |
protected DivElement relativeRuler
protected static DivElement createRuler(Style.Unit widthUnit, Style.Unit heightUnit)
public void fillParent(Element elem)
public void finalizeLayout(Element parent)
parent
- the parent elementpublic double getUnitSizeInPixels(Element parent, Style.Unit unit, boolean vertical)
public void initParent(Element parent)
public void layout(Layout.Layer layer)
public void onAttach(Element parent)
public void onDetach(Element parent)