public class ElementType extends XmlBaseType
Modifier and Type | Field and Description |
---|---|
protected Controller |
controller |
protected LinkedList<Object> |
controllers |
protected EffectsType |
effects |
protected ElementRendererCreator |
elementRendererCreator |
protected List<ElementType> |
elements |
protected InteractType |
interact |
protected String |
tagName |
Constructor and Description |
---|
ElementType() |
ElementType(Attributes attributes) |
ElementType(ElementType src) |
Modifier and Type | Method and Description |
---|---|
void |
addControl(ElementType text) |
void |
addElementType(ElementType type) |
void |
addImage(ElementType image) |
void |
addLabel(ElementType label) |
void |
addPanel(ElementType panel) |
void |
addText(ElementType text) |
void |
applyAttributes(Screen screen,
Element element,
Attributes work,
NiftyRenderEngine renderEngine) |
protected void |
applyChildren(Element parent,
Screen screen,
Nifty nifty) |
void |
applyEffects(Nifty nifty,
Screen screen,
Element element) |
void |
applyInteract(Nifty nifty,
Screen screen,
Element element) |
void |
applyPostAttributes(Element element,
Attributes work,
NiftyRenderEngine renderEngine) |
void |
applyStyles(StyleResolver styleResolver) |
void |
connectParentControls(Element parent)
usually when elements (incl. controls) are loaded they are all present when the xml
is being transformed into the runtime element tree. during this process each interact
method is being resolved, tracing all controllers from top to bottom leading a list
of controller instances for each method.
|
ElementType |
copy() |
Element |
create(Element parent,
Nifty nifty,
Screen screen,
LayoutPart layoutPart) |
EffectsType |
getEffects() |
Collection<ElementType> |
getElements() |
ElementType |
getFirstElement() |
InteractType |
getInteract() |
boolean |
hasElements() |
protected void |
makeFlat() |
String |
output(int offset) |
void |
prepare(Nifty nifty,
Screen screen,
ElementType rootElementType) |
void |
refreshAttributes(Nifty nifty,
Screen screen,
Element element,
ControlAttributes attributes) |
void |
removeWithTag(String styleId) |
void |
setEffect(EffectsType effectsParam) |
void |
setInteract(InteractType interactParam) |
void |
translateSpecialValues(Nifty nifty,
Screen screen) |
getAttributes, initFromAttributes, mergeFromAttributes
protected String tagName
protected ElementRendererCreator elementRendererCreator
protected InteractType interact
protected EffectsType effects
protected List<ElementType> elements
protected LinkedList<Object> controllers
protected Controller controller
public ElementType()
public ElementType(ElementType src)
public ElementType(Attributes attributes)
public ElementType copy()
protected void makeFlat()
public boolean hasElements()
public ElementType getFirstElement()
public void addElementType(ElementType type)
public void addPanel(ElementType panel)
public void addImage(ElementType image)
public void addLabel(ElementType label)
public void addText(ElementType text)
public void addControl(ElementType text)
public void setInteract(InteractType interactParam)
public void setEffect(EffectsType effectsParam)
public String output(int offset)
output
in class XmlBaseType
public Element create(Element parent, Nifty nifty, Screen screen, LayoutPart layoutPart)
public void applyAttributes(Screen screen, Element element, Attributes work, NiftyRenderEngine renderEngine)
public void applyPostAttributes(Element element, Attributes work, NiftyRenderEngine renderEngine)
public void refreshAttributes(Nifty nifty, Screen screen, Element element, ControlAttributes attributes)
public InteractType getInteract()
public EffectsType getEffects()
public Collection<ElementType> getElements()
public void prepare(Nifty nifty, Screen screen, ElementType rootElementType)
public void translateSpecialValues(Nifty nifty, Screen screen)
translateSpecialValues
in class XmlBaseType
public void applyStyles(StyleResolver styleResolver)
public void removeWithTag(String styleId)
public void connectParentControls(Element parent)
Copyright © 2013. All Rights Reserved.