oracle.cabo.ui.xml.parse
Class UIBeanDef
java.lang.Object
|
+--oracle.cabo.share.xml.beans.BeanDef
|
+--oracle.cabo.share.xml.beans.IntrospectionBeanDef
|
+--oracle.cabo.ui.xml.parse.UIBeanDef
- public class UIBeanDef
- extends IntrospectionBeanDef
UIX bean definition for introspection-based beans that
support UIX Components objects. In particular, when
used in conjunction with the UIBeanParser, this
adds the following pieces of functionality:
- Support for data-binding via BoundValues.
Specifically, if any of the properties end with
"Binding" and take a BoundValue
,
then the property will be interpreted as databinding support.
- Support for treating DataObjects, DataObjectLists, and Style
objects as "inline" attributest that do not require an envelope;
this makes these elements consistent with the rest of UIX.
- Use of the <boundAttribute> element to
define data-binding.
Example:
Given the following API:
public void setWidth(int width);
public int getWidth();
public void setWidthBinding(BoundValue value);
...then the XML "width" attribute will be interpreted
as supporting data binding, and each piece of the following XML
will be accepted:
<theElementName width="10"/>
<theElementName data:width="foo@data"/>
<theElementName>
<boundAttribute name="width">
<!-- a bound value element -->
</boundAttribute>
</theElementName>
Constructor Summary |
UIBeanDef(java.lang.String className)
|
UIBeanDef(java.lang.String className,
java.lang.String defaultProperty)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UIBeanDef
public UIBeanDef(java.lang.String className)
UIBeanDef
public UIBeanDef(java.lang.String className,
java.lang.String defaultProperty)
getElementPropertyDef
public PropertyDef getElementPropertyDef(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attrs)
- Description copied from class:
BeanDef
- Gets an property definition for a child element.
- Overrides:
getElementPropertyDef
in class IntrospectionBeanDef
- Following copied from class:
oracle.cabo.share.xml.beans.BeanDef
- Parameters:
namespace
- the namespacename
- the property nameattrs
- the XML attributes- Returns:
- the property definition, or null if no such property exists
isInlineChildProperty
public boolean isInlineChildProperty(java.lang.String namespace,
java.lang.String name,
PropertyDef def)
- Description copied from class:
BeanDef
- Returns true if the PropertyDef is defined with an inline child element.
- Overrides:
isInlineChildProperty
in class IntrospectionBeanDef
getPropertyDef
public PropertyDef getPropertyDef(java.lang.String name)
- Description copied from class:
BeanDef
- Gets an property definition.
- Overrides:
getPropertyDef
in class IntrospectionBeanDef
- Following copied from class:
oracle.cabo.share.xml.beans.BeanDef
- Parameters:
name
- the property name- Returns:
- the property definition, or null if no such property exists
getPropertyDef
public PropertyDef getPropertyDef(java.lang.String namespaceURI,
java.lang.String name)
- Description copied from class:
BeanDef
- Gets an property definition for a namespaced property.
- Overrides:
getPropertyDef
in class IntrospectionBeanDef
- Following copied from class:
oracle.cabo.share.xml.beans.BeanDef
- Parameters:
namespace
- the namespacename
- the property name- Returns:
- the property definition, or null if no such property exists
createPropertyDef
protected PropertyDef createPropertyDef(java.beans.PropertyDescriptor property)
- Description copied from class:
IntrospectionBeanDef
- Hook for overriding the behavior of a found property.
By default, the PropertyDescriptor will be turned
directly into an IntrospectionPropertyDef, available
as a non-namespaced property.
- Overrides:
createPropertyDef
in class IntrospectionBeanDef
- Following copied from class:
oracle.cabo.share.xml.beans.IntrospectionBeanDef
- Parameters:
descriptor
- the PropertyDescriptor- Returns:
- the property def