@BindElement(name="if") public class IfComponent extends AbstractComponent
| Constructor and Description |
|---|
IfComponent(Slot slot) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
render() |
void |
setBody(Fragment body) |
void |
setCondition(java.util.function.Supplier<Boolean> condition) |
getSlotpublic IfComponent(Slot slot)
@BindAttribute(name="condition") public void setCondition(java.util.function.Supplier<Boolean> condition)
@BindContent public void setBody(Fragment body)
public void render()
public void destroy()
destroy in interface Renderabledestroy in class AbstractComponentCopyright © 2019. All rights reserved.