public abstract class Conditional extends AbstractComponent
Constructor and Description |
---|
Conditional() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluateCondition() |
abstract boolean |
getCondition() |
abstract java.lang.String |
getElement() |
abstract boolean |
getInvert() |
protected void |
renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
Renders its wrapped components only if the condition is true (technically, if condition
matches invert).
|
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
public Conditional()
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
renderComponent
in class AbstractComponent
protected boolean evaluateCondition()
public abstract boolean getCondition()
public abstract boolean getInvert()
public abstract java.lang.String getElement()