public abstract class IfBean extends AbstractFormComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IF_VALUE_ATTRIBUTE |
Constructor and Description |
---|
IfBean() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluateCondition(IRequestCycle cycle,
IForm form,
boolean cycleRewinding) |
protected boolean |
getCanTakeFocus()
For component can not take focus.
|
abstract boolean |
getCondition() |
boolean |
getConditionValue()
Returns the value of the condition
|
abstract IBinding |
getConditionValueBinding() |
abstract DataSqueezer |
getDataSqueezer() |
abstract java.lang.String |
getElement() |
abstract IActionListener |
getListener() |
abstract boolean |
getVolatile() |
boolean |
isDisabled()
Returns true if the component is disabled.
|
protected void |
renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
Invoked by
AbstractComponent.render(IMarkupWriter, IRequestCycle) to actually render the component
(with any parameter values already set). |
protected void |
renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle) |
protected void |
rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle) |
getAlwaysRenderBodyOnRewind, getForm, getIdParameter, getName, isRequired, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setClientId, setForm, setName, setName
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClientId, getDisplayName
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
public static final java.lang.String IF_VALUE_ATTRIBUTE
public IfBean()
public abstract IBinding getConditionValueBinding()
public abstract boolean getCondition()
public abstract boolean getVolatile()
public abstract java.lang.String getElement()
public abstract IActionListener getListener()
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
AbstractComponent
AbstractComponent.render(IMarkupWriter, IRequestCycle)
to actually render the component
(with any parameter values already set). This is the method that subclasses must implement.protected boolean evaluateCondition(IRequestCycle cycle, IForm form, boolean cycleRewinding)
public abstract DataSqueezer getDataSqueezer()
public boolean isDisabled()
IFormComponent
public boolean getConditionValue()
protected void renderFormComponent(IMarkupWriter writer, IRequestCycle cycle)
renderFormComponent
in class AbstractFormComponent
protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle cycle)
rewindFormComponent
in class AbstractFormComponent
protected boolean getCanTakeFocus()
getCanTakeFocus
in class AbstractFormComponent