public class List
extends ej.mwt.Container
All the children are laid out on the same horizontal or vertical line.
In a horizontal list, all children will have the height of the available space, and their width will be determined proportionally. In a vertical list, all children will have the width of the available space, and their height will be determined proportionally.
Horizontal:
Vertical:

| Constructor and Description |
|---|
List(boolean orientation)
Creates a list specifying its orientation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(ej.mwt.Widget child) |
protected void |
computeContentOptimalSize(ej.mwt.util.Size size) |
boolean |
getOrientation()
Gets the orientation of this list.
|
void |
insertChild(ej.mwt.Widget child,
int index) |
protected void |
layOutChildren(int contentWidth,
int contentHeight) |
void |
removeAllChildren() |
void |
removeChild(ej.mwt.Widget child) |
void |
replaceChild(int index,
ej.mwt.Widget child) |
void |
setOrientation(boolean orientation)
Sets the orientation of this list.
|
changeChildIndex, computeChildOptimalSize, getChild, getChildIndex, getChildren, getChildrenCount, getContentBounds, getContentHeight, getContentWidth, getContentX, getContentY, getWidgetAt, layOutChild, renderChild, renderContent, setHiddenChild, setHiddenChildren, setShownChild, setShownChildren, updateStyleaddClassSelector, contains, containsWidget, getAbsoluteX, getAbsoluteY, getDesktop, getHeight, getParent, getStyle, getWidth, getX, getY, handleEvent, hasClassSelector, isAttached, isEnabled, isInState, isShown, isTransparent, onAttached, onDetached, onHidden, onLaidOut, onShown, removeAllClassSelectors, removeClassSelector, render, requestLayOut, requestRender, requestRender, setClassSelectors, setEnabled, setPosition, setStylepublic List(boolean orientation)
orientation - the orientation of the list (see LayoutOrientation).public void setOrientation(boolean orientation)
orientation - the orientation to set (see LayoutOrientation).public boolean getOrientation()
LayoutOrientation).public void addChild(ej.mwt.Widget child)
addChild in class ej.mwt.Containerpublic void removeChild(ej.mwt.Widget child)
removeChild in class ej.mwt.Containerpublic void insertChild(ej.mwt.Widget child,
int index)
insertChild in class ej.mwt.Containerpublic void replaceChild(int index,
ej.mwt.Widget child)
replaceChild in class ej.mwt.Containerpublic void removeAllChildren()
removeAllChildren in class ej.mwt.Containerprotected void computeContentOptimalSize(ej.mwt.util.Size size)
computeContentOptimalSize in class ej.mwt.Widgetprotected void layOutChildren(int contentWidth,
int contentHeight)
layOutChildren in class ej.mwt.Container