|
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.DeprecatedUINode | +--oracle.cabo.ui.BaseUINode
Root implementation for storing a node of a UIX Components (Marlin) UI tree.
Constructor Summary | |
BaseUINode(java.lang.String namespaceURI,
java.lang.String localName)
Creates a BaseUINode, binding it to a namespace and local name. |
|
BaseUINode(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String nodeID)
Creates a BaseUINode, binding it to a namespace and local name, and setting the nodeID. |
Method Summary | |
protected AttributeMap |
getAttributeMap(boolean createIfNull)
Returns the AttributeMap used to store attributes. |
java.util.Enumeration |
getAttributeNames(RenderingContext context)
Returns an Enumeration of the names that attribute values have been added under. |
java.lang.Object |
getAttributeValue(RenderingContext context,
AttributeKey attrKey)
Returns the value of the attribute with the specified name in the RenderingContext. |
protected java.lang.Object |
getAttributeValueImpl(RenderingContext context,
AttributeKey attrKey,
boolean returnBoundValue)
Bottleneck method for all attribute getting. |
protected UINode[] |
getChildArray()
Returns the child array used to retrieve indexed children from the node. |
java.util.Enumeration |
getChildNames(RenderingContext context)
Returns an Enumeration of the names that named children have been added under. |
UINode |
getIndexedChild(int childIndex)
Deprecated. The version of this function also taking a RenderingContext is preferred, as this version will return incorrect results if the specified indexed child is determined by the RenderingContext. |
UINode |
getIndexedChild(RenderingContext context,
int childIndex)
Returns the indexed child at the specified index. |
int |
getIndexedChildCount()
Deprecated. The version of this function also taking a RenderingContext is preferred, as this version will return incorrect results if the specified named child is determined by the RenderingContext. |
int |
getIndexedChildCount(RenderingContext context)
Returns the number of indexed children in this UINode. |
protected UINodeList |
getIndexedNodeList(boolean createIfNull)
Returns the UINodeList used to retrieve indexed children from the node. |
java.lang.String |
getLocalName()
Name used to distinguish the name of a UINode within a namespace. |
UINode |
getNamedChild(RenderingContext context,
java.lang.String childName)
Returns the child identified by childName. |
protected ContextMap |
getNamedChildMap(boolean createIfNull)
Returns the dictionary used to store named children. |
java.lang.String |
getNamespaceURI()
The namespace URI that segregates the local name of this UINode so that nodes with the same local name will not clash. |
java.lang.String |
getNodeID()
Returns an ID indentifying this UINode instance. |
NodeRole |
getNodeRole(RenderingContext context)
Returns the role that this node occupies. |
protected java.lang.Object |
getPreorderDescendentAttributeValue(RenderingContext context,
AttributeKey attrKey)
Returns the first attribute value for the specified attrName, found by performing a preorder (depth-first) search of the startNode and its children. |
java.lang.Object |
getRawAttributeValue(RenderingContext context,
AttributeKey attrKey)
Returns the value of the attribute with a specified name, without attempting to further resolve that value - as if , for instance, it might be a BoundValue. |
protected UINode |
getRenderedUINode(RenderingContext context)
Returns the UINode to render and to use to dtermine the renderer. |
protected Renderer |
getRenderer(RenderingContext context)
|
protected Renderer |
getRenderer(RenderingContext context,
UINode dataNode)
Returns the Renderer used to render this UINode. |
void |
render(RenderingContext context)
Renders this UINode. |
void |
render(RenderingContext context,
UINode dataNode)
Renders this UINode. |
protected void |
setNodeID(java.lang.String newID)
Sets the nodeID. |
java.lang.String |
toString()
|
Methods inherited from class oracle.cabo.ui.DeprecatedUINode |
getAttributeValue, getChildNames, getID, getNamedChild |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.cabo.ui.UINode |
getAttributeValue, getChildNames, getID, getNamedChild |
Constructor Detail |
public BaseUINode(java.lang.String namespaceURI, java.lang.String localName)
public BaseUINode(java.lang.String namespaceURI, java.lang.String localName, java.lang.String nodeID)
Method Detail |
public java.lang.String getNamespaceURI()
Any namespace String returned by this method should be interned for maximum performance. This allows namespace comparisons to be performed using object identity, versus the slower object equality. If the String returned is a String constant, the Java VM will have done this for you automatically.
As with all namespace URI's, this name is only used as an identifier. No other sematics are implied.
The RendererManager
allows RendererFactory
s to
be registered by namespace.
getNamespaceURI
in interface UINode
getLocalName()
,
RendererManager
,
RendererFactory
public java.lang.String getLocalName()
Together with the UINode's namespace URI, the local name is typically used to determine which Renderer to use to render the UINode.
getLocalName
in interface UINode
public java.lang.String getNodeID()
This ID should not be confused with the ID_ATTR
attribute,
which is output to the client and is typically used in
conjunction with client-side scripting technologies, such as JavaScript.
getNodeID
in interface UINode
public int getIndexedChildCount(RenderingContext context)
getIndexedChildCount
in interface UINode
oracle.cabo.ui.UINode
UINode.getIndexedChild(oracle.cabo.ui.RenderingContext, int)
public UINode getIndexedChild(RenderingContext context, int childIndex)
If the UINode is mutable and may be modified and read in different threads, it is the programmer's responsibility to ensure proper synchronization.
getIndexedChild
in interface UINode
getIndexedChildCount(oracle.cabo.ui.RenderingContext)
public UINode getNamedChild(RenderingContext context, java.lang.String childName)
Constants for named children used by UIX Components (Marlin)'s UINodes may be found in
the UIConstants interface. The constants for the named children follow
the pattern <xxx>_CHILD
.
If the UINode is mutable and may be modified and read in different threads, it is the programmer's responsibility to ensure proper synchronization.
getNamedChild
in interface UINode
getChildNames(oracle.cabo.ui.RenderingContext)
,
UIConstants
public java.util.Enumeration getChildNames(RenderingContext context)
getNamedChild
.
If the UINode is mutable and may be modified and read in different threads, it is the programmer's responsibility to ensure proper synchronization.
getChildNames
in interface UINode
getNamedChild(oracle.cabo.ui.RenderingContext, java.lang.String)
public final java.lang.Object getAttributeValue(RenderingContext context, AttributeKey attrKey)
null
will be returned.
Note that as with indexed children and named children, the presence of of an attribute is no guarantee that the Renderer used to render this UINode will actually use the attribute. The presence of attributes should only be considered as hints to the Renderer.
If the UINode is mutable and may be modified and read in different threads, it is the programmer's responsibility to ensure proper synchronization.
getAttributeValue
in interface UINode
getAttributeNames(oracle.cabo.ui.RenderingContext)
public final java.lang.Object getRawAttributeValue(RenderingContext context, AttributeKey attrKey)
UINode
getRawAttributeValue
in interface UINode
oracle.cabo.ui.UINode
BoundValue
public java.util.Enumeration getAttributeNames(RenderingContext context)
getAttributeValue
.
If the UINode is mutable and may be modified and read in different threads, it is the programmer's responsibility to ensure proper synchronization.
getAttributeNames
in interface UINode
getAttributeValue(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.AttributeKey)
public NodeRole getNodeRole(RenderingContext context)
getNodeRole
in interface UINode
public final void render(RenderingContext context) throws java.io.IOException
render
in interface UINode
public void render(RenderingContext context, UINode dataNode) throws java.io.IOException
render
in interface UINode
protected final Renderer getRenderer(RenderingContext context)
protected Renderer getRenderer(RenderingContext context, UINode dataNode)
getRenderer
to return any Renderer it wishes. An example
of this is TextNode
, which always returns
TextRenderer
as its renderer.public int getIndexedChildCount()
getIndexedChildCount
in interface UINode
getIndexedChildCount
in class DeprecatedUINode
public final UINode getIndexedChild(int childIndex)
getIndexedChild
in interface UINode
getIndexedChild
in class DeprecatedUINode
public java.lang.String toString()
toString
in class java.lang.Object
protected final UINode[] getChildArray()
getIndexedChild()
and
getIndexedChildCount()
will use the result of this
method - if not implemented, subclasses must override both
of those methods. Subclasses should not copy the array - so
subclasses must be extremely careful when modifying this array
or returning to "untrusted" classes.
getIndexedChild(oracle.cabo.ui.RenderingContext, int)
,
getIndexedChildCount(oracle.cabo.ui.RenderingContext)
protected ContextMap getNamedChildMap(boolean createIfNull)
createIfNull
- if true, the subclass should create
a NamedChildMap object if one has not yet been created.protected AttributeMap getAttributeMap(boolean createIfNull)
createIfNull
- if true, the subclass must create
a Dictionary object if one has not yet been created.protected UINodeList getIndexedNodeList(boolean createIfNull)
getIndexedChild()
and
getIndexedChildCount()
will use the result of this
method - if not implemented, subclasses must override both
of those methods. Subclasses should not clone the UINodeList - so
subclasses must be extremely careful when modifying this list
or returning to "untrusted" classes.
getIndexedChild(oracle.cabo.ui.RenderingContext, int)
,
getIndexedChildCount(oracle.cabo.ui.RenderingContext)
protected void setNodeID(java.lang.String newID)
protected java.lang.Object getAttributeValueImpl(RenderingContext context, AttributeKey attrKey, boolean returnBoundValue)
protected java.lang.Object getPreorderDescendentAttributeValue(RenderingContext context, AttributeKey attrKey)
protected UINode getRenderedUINode(RenderingContext 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 |