org.lobobrowser.html.renderer

Interface RElement

All Superinterfaces:
BoundableRenderable, org.lobobrowser.html.renderer.RCollection, Renderable, UINode
Known Implementing Classes:
RBlock, RImgControl

public interface RElement
extends org.lobobrowser.html.renderer.RCollection, UINode, BoundableRenderable

A renderer node for elements such as blocks, lists, tables, inputs, images, etc.

Field Summary

static int
VALIGN_ABSBOTTOM
static int
VALIGN_ABSMIDDLE
static int
VALIGN_BASELINE
static int
VALIGN_BOTTOM
static int
VALIGN_MIDDLE
static int
VALIGN_TOP

Fields inherited from interface org.lobobrowser.html.renderer.Renderable

EMPTY_ARRAY

Method Summary

int
getVAlign()
Vertical alignment for elements rendered in a line.
void
layout(int availWidth, int availHeight, boolean expandWidth, boolean expandHeight)
Lays out the subtree below the RElement.

Methods inherited from interface org.lobobrowser.html.renderer.BoundableRenderable

extractSelectionText, getBounds, getGUIPoint, getHeight, getLowestRenderableSpot, getModelNode, getOriginalOrCurrentParent, getOriginalParent, getParent, getRenderablePoint, getSize, getWidth, getX, getY, isContainedByNode, onDoubleClick, onMouseClick, onMouseDisarmed, onMouseMoved, onMouseOut, onMousePressed, onMouseReleased, onRightClick, paintSelection, paintTranslated, relayout, repaint, repaint, setBounds, setHeight, setOrigin, setOriginalParent, setParent, setWidth, setX, setY

Methods inherited from interface org.lobobrowser.html.renderer.RCollection

blur, focus, getRenderables, invalidateLayoutDeep, updateWidgetBounds

Methods inherited from interface org.lobobrowser.html.renderer.Renderable

getModelNode, getOrdinal, getZIndex, invalidateLayoutUpTree, paint, setOrdinal

Methods inherited from interface org.lobobrowser.html.domimpl.UINode

blur, focus, getBounds, repaint

Field Details

VALIGN_ABSBOTTOM

public static final int VALIGN_ABSBOTTOM
Field Value:
4

VALIGN_ABSMIDDLE

public static final int VALIGN_ABSMIDDLE
Field Value:
3

VALIGN_BASELINE

public static final int VALIGN_BASELINE
Field Value:
5

VALIGN_BOTTOM

public static final int VALIGN_BOTTOM
Field Value:
2

VALIGN_MIDDLE

public static final int VALIGN_MIDDLE
Field Value:
1

VALIGN_TOP

public static final int VALIGN_TOP
Field Value:
0

Method Details

getVAlign

public int getVAlign()
Vertical alignment for elements rendered in a line. Returns one of the constants defined in this class.

layout

public void layout(int availWidth,
                   int availHeight,
                   boolean expandWidth,
                   boolean expandHeight)
Lays out the subtree below the RElement. The RElement is expected to set its own dimensions, but not its origin.
Parameters:
availWidth - The available width from the parent's canvas.
availHeight - The available height from the parent's canvas.
expandWidth - Whether width should be expanded to fill availWidth.
expandHeight - Whether height should be expanded to fill availHeight.