public class StyleRulesetEditor<T extends StyleRule,E extends UiElement> extends Column implements ActionListener
asyncAddQueue, asyncRemoveAll, asyncRemoveQueue, children, renderNode
Constructor and Description |
---|
StyleRulesetEditor(UiEditorThemeView themeEditorView,
java.lang.Class<T> styleRuleClass,
java.lang.Class<E> elementClass,
java.lang.String rulesetId,
StyleRuleset<T> ruleset) |
Modifier and Type | Method and Description |
---|---|
protected ParentRenderNode<?,?> |
createRenderNode(ParentRenderNode<?,?> parent)
Creates the
ParentRenderNode for this UiElement |
E |
getElement() |
Row |
getElementRow() |
UiTheme |
getInGameUiTheme() |
ScreenSize |
getScreenSize() |
float |
getScreenSizeScale() |
void |
onActionBegin(ActionEvent event)
Called when an action event begins (e.g.
|
void |
onActionEnd(ActionEvent event)
Called when an action event ends (e.g.
|
void |
onResize(int width,
int height) |
<T extends UiElement> |
setElement(T element) |
withElements, withElements
add, add, addAsync, attach, detach, get, getElementById, getFlexDirection, getHorizontalLayout, getTotalChildren, getVerticalLayout, isOverflowClipped, remove, remove, removeAll, removeAllAsync, removeAsync, setFlexDirection, setHorizontalLayout, setOverflowClipped, setStyleId, setVerticalLayout, setVisibility, setZIndex, syncWithRenderNode
addEffectListener, addHoverListener, applyEffect, defer, defer, equals, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, processDeferred, removeEffectListener, removeHoverListener, setDebugEnabled
public StyleRulesetEditor(UiEditorThemeView themeEditorView, java.lang.Class<T> styleRuleClass, java.lang.Class<E> elementClass, java.lang.String rulesetId, StyleRuleset<T> ruleset)
public void onResize(int width, int height)
protected ParentRenderNode<?,?> createRenderNode(ParentRenderNode<?,?> parent)
ParentUiElement
ParentRenderNode
for this UiElement
createRenderNode
in class Column
parent
- The parent of this nodeParentRenderNode
public void onActionBegin(ActionEvent event)
ActionListener
onActionBegin
in interface ActionListener
event
- An ActionEvent
instance containing the event detailspublic void onActionEnd(ActionEvent event)
ActionListener
onActionEnd
in interface ActionListener
event
- An ActionEvent
instance containing the event detailspublic E getElement()
public <T extends UiElement> void setElement(T element)
public UiTheme getInGameUiTheme()
public ScreenSize getScreenSize()
public float getScreenSizeScale()
public Row getElementRow()