oracle.cabo.ui.data.bind
Class RowMessageBoundValue
java.lang.Object
|
+--oracle.cabo.ui.data.bind.RowMessageBoundValue
- All Implemented Interfaces:
- BoundValue
- public class RowMessageBoundValue
- extends java.lang.Object
- implements BoundValue
The RowMessageBoundValue class greatly simplifies the process of adding inline messages to a table.
Each row of a table already has a "current DataObject". Now, for each row of the table that needs an inline message, add to the "current DataObject" one more Object at a fixed key. RowMessageBoundValue will let you use that Object as the "real" key for inline messaging.
In practice, this class can be used for more than tables; it can be used in any cases where the message key used for a node should be computed indirectly.
- See Also:
MessageData.bindRowNode(oracle.cabo.ui.MutableUINode, java.lang.Object)
, MessageData.bindRowNodes(oracle.cabo.ui.MutableUINode, oracle.cabo.ui.MutableUINode, java.lang.Object)
Constructor Summary |
RowMessageBoundValue(BoundValue keyBoundValue)
Creates a RowMessageBoundValue that will get the message key from a developer-supplied BoundValue, and the message data from the default location. |
RowMessageBoundValue(BoundValue keyBoundValue, java.lang.String namespaceURI, java.lang.String localName)
Creates a RowMessageBoundValue that will get the message key from a developer-supplied BoundValue, and the message data DataObject from a developer-specified location. |
RowMessageBoundValue(java.lang.Object rowMessageKey)
Creates a RowMessageBoundValue that will get the message key from the current data object, and the message data from the default location. |
Method Summary |
java.lang.Object |
getValue(RenderingContext context)
Called to retrieve a value based on the current rendering context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowMessageBoundValue
public RowMessageBoundValue(java.lang.Object rowMessageKey)
- Creates a RowMessageBoundValue that will get the message key from the current data object, and the message data from the default location. (the UIX Component namespace, and named
MESSAGE_DATA_OBJECT_NAME
).
-
- Parameters:
rowMessageKey
- the key in the current DataObject
RowMessageBoundValue
public RowMessageBoundValue(BoundValue keyBoundValue)
- Creates a RowMessageBoundValue that will get the message key from a developer-supplied BoundValue, and the message data from the default location. (the UIX Component namespace, and named
MESSAGE_DATA_OBJECT_NAME
).
-
- Parameters:
keyBoundValue
- the key to be used to retrieve the MessageData
RowMessageBoundValue
public RowMessageBoundValue(BoundValue keyBoundValue,
java.lang.String namespaceURI,
java.lang.String localName)
- Creates a RowMessageBoundValue that will get the message key from a developer-supplied BoundValue, and the message data DataObject from a developer-specified location.
-
- Parameters:
keyBoundValue
- the key to be used to retrieve the MessageData
namespaceURI
- the namespace to retrieve the message DataObject from
name
- the name of the message DataObject
getValue
public java.lang.Object getValue(RenderingContext context)
- Description copied from interface:
BoundValue
- Called to retrieve a value based on the current rendering context.
-
- Specified by:
getValue
in interface BoundValue
- Following copied from interface:
oracle.cabo.ui.data.BoundValue
-
- Parameters:
context
- the rendering context