Package eu.webtoolkit.jwt
Class WHBoxLayout
java.lang.Object
eu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WLayout
eu.webtoolkit.jwt.WBoxLayout
eu.webtoolkit.jwt.WHBoxLayout
- All Implemented Interfaces:
WLayoutItem
A layout manager which arranges widgets horizontally.
This convenience class creates a horizontal box layout, laying contained widgets out from left to right.
See the WBoxLayout
documentation for available member methods and more information.
Usage example:
WContainerWidget w = new WContainerWidget(this);
WHBoxLayout layout = new WHBoxLayout();
layout.addWidget(new WText("One"));
layout.addWidget(new WText("Two"));
layout.addWidget(new WText("Three"));
layout.addWidget(new WText("Four"));
w.setLayout(layout);
Note: First consider if you can achieve your layout using CSS !
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
Constructor Summary
-
Method Summary
Methods inherited from class eu.webtoolkit.jwt.WBoxLayout
addItem, addLayout, addLayout, addLayout, addLayout, addSpacing, addStretch, addStretch, addWidget, addWidget, addWidget, addWidget, getCount, getDirection, getItemAt, getSpacing, insertItem, insertItem, insertLayout, insertLayout, insertLayout, insertLayout, insertSpacing, insertStretch, insertStretch, insertWidget, insertWidget, insertWidget, insertWidget, isImplementationIsFlexLayout, isResizable, iterateWidgets, removeItem, setDirection, setParentWidget, setResizable, setResizable, setResizable, setSpacing, setStretchFactor, setStretchFactor, updateImplementation
Methods inherited from class eu.webtoolkit.jwt.WLayout
findWidgetItem, getContentsMargin, getImpl, getImplementation, getLayout, getParentLayout, getParentWidget, getPreferredImplementation, getWidget, indexOf, itemAdded, itemRemoved, removeWidget, setContentsMargins, setDefaultImplementation, setImpl, setParentLayout, setPreferredImplementation, update, update
Methods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
Constructor Details
-
WHBoxLayout
public WHBoxLayout()Creates a new horizontal box layout.
-