public class DomElement extends Object implements Renderable
| Modifier and Type | Field and Description |
|---|---|
protected List<Renderable> |
children |
protected List<Renderable> |
props |
| Constructor and Description |
|---|
DomElement(String tag,
List<? extends Attribute> props,
List<? extends Renderable> childrenElements) |
DomElement(String tag,
List<? extends Renderable> childrenElements) |
DomElement(String tag,
Renderable[] childrenElements) |
| Modifier and Type | Method and Description |
|---|---|
DomElement |
onClick(String onclickFunction)
The onclick property returns the click event handler code on the current element.
|
String |
render() |
protected List<Renderable> children
protected List<Renderable> props
public DomElement(String tag, Renderable[] childrenElements)
public DomElement(String tag, List<? extends Renderable> childrenElements)
public DomElement(String tag, List<? extends Attribute> props, List<? extends Renderable> childrenElements)
public DomElement onClick(String onclickFunction)
onclickFunction - valuepublic String render()
render in interface RenderableCopyright © 2016. All rights reserved.