er.extensions.components.conditionals
Class ERXKeyValueConditional
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.extensions.components.conditionals.ERXWOConditional
er.extensions.components.conditionals.ERXKeyValueConditional
public class ERXKeyValueConditional
- extends ERXWOConditional
Same as the WOKeyValueConditional
, but as a dynamic element. Matches if
a given key from the component matches the given value. Compares EOs by global ID.
- Author:
- ak
Bindings |
key | key |
value | value |
Field Summary |
protected com.webobjects.appserver.WOAssociation |
_key
|
protected com.webobjects.appserver.WOAssociation |
_value
|
Fields inherited from class com.webobjects.appserver._private.WODynamicGroup |
_children |
Fields inherited from class com.webobjects.appserver.WODynamicElement |
_ConstructorParameters |
Constructor Summary |
ERXKeyValueConditional(java.lang.String aName,
com.webobjects.foundation.NSDictionary aDict,
com.webobjects.appserver.WOElement aElement)
|
Method Summary |
protected boolean |
conditionInComponent(com.webobjects.appserver.WOComponent component)
Override this to return true when your condition is met. |
protected void |
pullAssociations(com.webobjects.foundation.NSDictionary<java.lang.String,? extends com.webobjects.appserver.WOAssociation> dict)
Override to pull the associations for your condition. |
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, childrenElements, EmptyGroup, hasChildrenElements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_key
protected com.webobjects.appserver.WOAssociation _key
_value
protected com.webobjects.appserver.WOAssociation _value
ERXKeyValueConditional
public ERXKeyValueConditional(java.lang.String aName,
com.webobjects.foundation.NSDictionary aDict,
com.webobjects.appserver.WOElement aElement)
pullAssociations
protected void pullAssociations(com.webobjects.foundation.NSDictionary<java.lang.String,? extends com.webobjects.appserver.WOAssociation> dict)
- Description copied from class:
ERXWOConditional
- Override to pull the associations for your condition. The
negate
has already been pulled, so don't call super, as you
will get an IllegalStateException because condition
isn't
bound.
- Overrides:
pullAssociations
in class ERXWOConditional
conditionInComponent
protected boolean conditionInComponent(com.webobjects.appserver.WOComponent component)
- Description copied from class:
ERXWOConditional
- Override this to return true when your condition is met.
- Overrides:
conditionInComponent
in class ERXWOConditional
Copyright © 2002 – 2007 Project Wonder.