Package com.simsilica.lemur.component
Class BoxLayout
java.lang.Object
com.simsilica.lemur.component.AbstractGuiComponent
com.simsilica.lemur.component.BoxLayout
- All Implemented Interfaces:
GuiComponent,GuiLayout,Cloneable
A layout that manages children similar to Swing's BoxLayout.
Components are arranged along an Axis and the children are
stretched to fit the maximum component width. This is similar
to a single column or single row SpringGridLayout and in the
future may be deprecated in lieu of that class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Node>
Tvoidattach(GuiControl parent) voidvoidclone()voiddetach(GuiControl parent) protected voidvoidremoveChild(Node n) voidMethods inherited from class com.simsilica.lemur.component.AbstractGuiComponent
getGuiControl, getNode, isAttachedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.simsilica.lemur.core.GuiComponent
getGuiControl, isAttached
-
Constructor Details
-
BoxLayout
public BoxLayout() -
BoxLayout
-
-
Method Details
-
clone
- Specified by:
clonein interfaceGuiComponent- Specified by:
clonein interfaceGuiLayout- Overrides:
clonein classAbstractGuiComponent
-
invalidate
protected void invalidate()- Overrides:
invalidatein classAbstractGuiComponent
-
calculatePreferredSize
- Specified by:
calculatePreferredSizein interfaceGuiComponent
-
reshape
- Specified by:
reshapein interfaceGuiComponent
-
addChild
-
removeChild
- Specified by:
removeChildin interfaceGuiLayout
-
attach
- Specified by:
attachin interfaceGuiComponent- Overrides:
attachin classAbstractGuiComponent
-
detach
- Specified by:
detachin interfaceGuiComponent- Overrides:
detachin classAbstractGuiComponent
-
getChildren
- Specified by:
getChildrenin interfaceGuiLayout
-
clearChildren
public void clearChildren()- Specified by:
clearChildrenin interfaceGuiLayout
-