@BindElement(name="foreach") public class ForEachComponent<T> extends AbstractComponent
| Constructor and Description |
|---|
ForEachComponent(Slot slot) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
T |
getElementVariable() |
int |
getIndexVariable() |
void |
render() |
void |
setBody(Fragment body) |
void |
setCollection(java.util.function.Supplier<Iterable<T>> collection) |
getSlotpublic ForEachComponent(Slot slot)
@BindAttribute(name="in") public void setCollection(java.util.function.Supplier<Iterable<T>> collection)
@BindAttribute(name="var") public T getElementVariable()
@BindAttribute(name="index") public int getIndexVariable()
@BindContent public void setBody(Fragment body)
public void render()
public void destroy()
destroy in interface Renderabledestroy in class AbstractComponentCopyright © 2019. All rights reserved.