public class ERXKeyValueConditional extends ERXWOConditional
WOKeyValueConditional
, but as a dynamic element. Matches if
a given key from the component matches the given value. Compares EOs by global ID.Name | Description |
---|---|
key | key |
value | value |
Modifier and Type | Field and Description |
---|---|
protected com.webobjects.appserver.WOAssociation |
_key |
protected com.webobjects.appserver.WOAssociation |
_value |
_condition, LAST_CONDITION_KEY
Constructor and Description |
---|
ERXKeyValueConditional(String aName,
NSDictionary aDict,
com.webobjects.appserver.WOElement aElement) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
conditionInComponent(com.webobjects.appserver.WOComponent component)
Override this to return true when your condition is met.
|
protected void |
pullAssociations(NSDictionary<String,? extends com.webobjects.appserver.WOAssociation> dict)
Override to pull the associations for your condition.
|
appendChildrenToResponse, appendToResponse, invokeAction, invokeChildrenAction, lastCondition, meetsConditionInComponent, setLastCondition, takeChildrenValuesFromRequest, takeValuesFromRequest, toString
protected com.webobjects.appserver.WOAssociation _key
protected com.webobjects.appserver.WOAssociation _value
public ERXKeyValueConditional(String aName, NSDictionary aDict, com.webobjects.appserver.WOElement aElement)
protected void pullAssociations(NSDictionary<String,? extends com.webobjects.appserver.WOAssociation> dict)
ERXWOConditional
negate
has already been pulled, so don't call super, as you
will get an IllegalStateException because condition
isn't
bound.pullAssociations
in class ERXWOConditional
protected boolean conditionInComponent(com.webobjects.appserver.WOComponent component)
ERXWOConditional
conditionInComponent
in class ERXWOConditional
Copyright © 2002 – 2020 Project Wonder.