| Modifier and Type | Field and Description |
|---|---|
protected java.util.Queue<UiElement> |
asyncQueue |
protected java.util.List<UiElement> |
children |
protected AbstractColumnRenderNode<?> |
renderNode |
effects, styleId, visibility, zIndex| Constructor and Description |
|---|
Column()
Constructor.
|
Column(java.lang.String id)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
UiElement element)
|
void |
add(UiElement element)
|
void |
addAsync(UiElement element)
Adds a
UiElement safely from a non-OpenGL thread |
void |
attach(ParentRenderNode<?,?> parentRenderNode)
Attaches a
RenderNode for this element to a parent
RenderNode |
void |
detach(ParentRenderNode<?,?> parentRenderNode)
Detaches this element's
RenderNode from a parent
RenderNode |
UiElement |
getElementById(java.lang.String id)
Searches the UI for a
UiElement with a given id. |
java.lang.String |
getLayout()
Returns the current layout
|
UiElement |
remove(int index)
Removes a child
UiElement at a specific index |
boolean |
remove(UiElement element)
|
void |
removeAll()
Removes all children from this
Column |
void |
setLayout(java.lang.String layout)
Sets the current layout
|
void |
setStyleId(java.lang.String styleId)
Sets the style if for this
UiElement |
void |
setVisibility(Visibility visibility)
Sets the current
Visibility of this UiElement |
void |
setZIndex(int zIndex)
Sets the Z index of this
UiElement. |
void |
syncWithRenderNode()
Syncs data between the
UiElement and RenderNode |
static Column |
withElements(java.lang.String columnId,
UiElement... elements)
|
static Column |
withElements(UiElement... elements)
|
addEffectListener, addHoverListener, applyEffect, equals, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeEffectListener, removeHoverListener, setDebugEnabledprotected final java.util.List<UiElement> children
protected final java.util.Queue<UiElement> asyncQueue
protected AbstractColumnRenderNode<?> renderNode
public Column()
Columnpublic Column(java.lang.String id)
id - The unique ID for this Columnpublic void add(int index,
UiElement element)
index - The index to insert atelement - The UiElement to be insertedpublic void addAsync(UiElement element)
UiElement safely from a non-OpenGL threadelement - The UiElement to be addedpublic boolean remove(UiElement element)
public UiElement remove(int index)
UiElement at a specific indexindex - The index to remove atUiElement that was removedpublic void removeAll()
Columnpublic void attach(ParentRenderNode<?,?> parentRenderNode)
UiElementRenderNode for this element to a parent
RenderNodeattach in class UiElementparentRenderNode - The parent RenderNode to attach topublic void detach(ParentRenderNode<?,?> parentRenderNode)
UiElementRenderNode from a parent
RenderNodedetach in class UiElementparentRenderNode - The parent RenderNode to detach frompublic java.lang.String getLayout()
public void setLayout(java.lang.String layout)
layout - public void setVisibility(Visibility visibility)
UiElementVisibility of this UiElementsetVisibility in class UiElementvisibility - The Visibility to setpublic void syncWithRenderNode()
UiElementUiElement and RenderNodesyncWithRenderNode in class UiElementpublic void setStyleId(java.lang.String styleId)
UiElementUiElementsetStyleId in class UiElementstyleId - The style id to setpublic UiElement getElementById(java.lang.String id)
UiElementUiElement with a given id. Warning: This
can be an expensive operation for complex UIs. It is recommended you
cache results.getElementById in class UiElementid - The UiElement identifier to search forUiElement with the given id