|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.data.bind.CompareAttrBoundValue
A BoundValue implementation that compares an attribute on a UINode with a value returned from another BoundValue. If the two are equal, this returns Boolean.TRUE. Otherwise, it returns null.
This implementation is extremely useful for binding the "selected"
attribute for OptionBean
or
RadioButtonBean
, since clients store the bean value
that should be selected on a DataObject
, instead of
needing to store separate booleans for each possible value. It
can, of course, be used for any boolean variable.
Constructor Summary | |
CompareAttrBoundValue(BoundValue base)
Creates a CompareAttrBoundValue that will compare the "value" attribute of the node this BoundValue is attached to against the object returned by the base BoundValue. |
|
CompareAttrBoundValue(BoundValue base,
AttributeKey attribute)
Creates a CompareAttrBoundValue that will compare a specified attribute of the node this BoundValue is attached to against the value returned by the base BoundValue. |
|
CompareAttrBoundValue(BoundValue base,
UINode node)
Creates a CompareAttrBoundValue that will compare the "value" attribute of the node to the object returned by the base BoundValue. |
|
CompareAttrBoundValue(BoundValue base,
UINode node,
AttributeKey attribute)
Creates a CompareAttrBoundValue that will compare a specified attribute of the node to the value returned by the base BoundValue. |
Method Summary | |
java.lang.Object |
getValue(RenderingContext context)
Returns Boolean.TRUE if the BoundValue matches the node attribute, null otherwise. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompareAttrBoundValue(BoundValue base)
public CompareAttrBoundValue(BoundValue base, UINode node)
public CompareAttrBoundValue(BoundValue base, AttributeKey attribute)
public CompareAttrBoundValue(BoundValue base, UINode node, AttributeKey attribute)
Method Detail |
public java.lang.Object getValue(RenderingContext context)
getValue
in interface BoundValue
oracle.cabo.ui.data.BoundValue
context
- the rendering context
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |