|
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.NodeUtils
Utility methods for working with UINodes.
Method Summary | |
static void |
addIndexedChild(MutableUINode parentNode,
UINode indexedChild)
Deprecated. Since 2.0. Clients should just call addIndexedChild(UINode) |
static void |
addIndexedChildren(MutableUINode parentNode,
java.util.Enumeration indexedChildren)
Appends the Enumeration of UINodes to the end of the list of indexed children on the parentNode. |
static void |
addIndexedChildren(MutableUINode parentNode,
UINode[] indexedChildren)
Appends the array of UINodes to the end of the list of indexed children on the parentNode. |
static java.util.Enumeration |
createPreorderDescendentAttributeEnumeration(RenderingContext context,
UINode rootNode,
AttributeKey attrKey)
Returns an Enumeration of all UINodes containing the specified attribute. |
static UINode |
getAncestorByNodeID(RenderingContext context,
java.lang.String nodeID)
Returns the nearest ancestor of the specified child node which has the desired node ID. |
static java.lang.Object |
getPreorderDescendentAttributeValue(RenderingContext context,
UINode startNode,
AttributeKey attrKey)
Returns the first attribute value for the specified attrName, found be performing a preorder (depth-first) search of the startNode and its children. |
static RenderingContext |
getRootRenderingContext(RenderingContext context)
Returns the root RenderingContext in a stack of RenderingContexts |
static UINode |
getRootUINode(RenderingContext context)
Returns the root UINode in the specified RenderingContext |
static UINode |
getStackRootUINode(RenderingContext context)
Returns the root UINode in a stack of RenderingContexts |
static boolean |
isRenderedAncestor(RenderingContext context,
UINode ancestorNode)
Returns true if the specified UINode is a rendered ancestor of the current rendering UINode |
static void |
setTextAndAccessKey(MutableUINode node,
java.lang.String embeddedText)
Utility method to set the text as well as any embedded access key on the node. |
static void |
setTextAndAccessKey(MutableUINode node,
java.lang.String embeddedText,
AttributeKey textAttributeKey)
Utility method to set the text as well as any embedded access key on the node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void setTextAndAccessKey(MutableUINode node, java.lang.String embeddedText)
The stripped text will be set on the UINode using the
UIConstants.TEXT_ATTR
key.
node
- UINode to set the text and access key onembeddedText
- String containing accessKey escaped with an ampersandpublic static void setTextAndAccessKey(MutableUINode node, java.lang.String embeddedText, AttributeKey textAttributeKey)
This method is useful for UINodes that use an attribute other than
UIConstants.TEXT_ATTR
to indicate the text of the node.
An example of such a UINode type are the InlineMessages.
node
- UINode to set the text and access key onembeddedText
- String containing accessKey escaped with an ampersandtextAttributeKey
- Name of attribute to set the stripped text with.public static UINode getAncestorByNodeID(RenderingContext context, java.lang.String nodeID)
context
- a RenderingContextnodeID
- the nodeID of the ancestor being soughtpublic static RenderingContext getRootRenderingContext(RenderingContext context)
public static UINode getRootUINode(RenderingContext context)
public static UINode getStackRootUINode(RenderingContext context)
public static boolean isRenderedAncestor(RenderingContext context, UINode ancestorNode)
public static void addIndexedChild(MutableUINode parentNode, UINode indexedChild)
MutableUINode.addIndexedChild(int, oracle.cabo.ui.UINode)
public static void addIndexedChildren(MutableUINode parentNode, UINode[] indexedChildren)
MutableUINode.addIndexedChild(int, oracle.cabo.ui.UINode)
public static void addIndexedChildren(MutableUINode parentNode, java.util.Enumeration indexedChildren)
MutableUINode.addIndexedChild(int, oracle.cabo.ui.UINode)
public static java.lang.Object getPreorderDescendentAttributeValue(RenderingContext context, UINode startNode, AttributeKey attrKey)
public static java.util.Enumeration createPreorderDescendentAttributeEnumeration(RenderingContext context, UINode rootNode, AttributeKey attrKey)
The Enumeration is is pre-order (depth first) order of the rootNode and its children.
|
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 |