Factory for creating XHTMLComponentInstance objects, which represent a XHTML objects (HTML nodes) within the framework.
This class participates in the engine library.
Demonstrate how an XHTMLInstanceObject is created from an HTML Node. Also refer to Application Components, which connect an XHTMLInstanceObject to pre-defined code blocks.
<!-- HTML Source -->
<div id = "oDiv">Some node</div>
<!-- Script -->
<script type = "text/javascript"></code>
<code>var o = document.getElementById("oDiv");</code>
<code>/// Create an an XHTMLComponentInstance that can be used
<code>/// To reference the node within the framework.
<code>var oX = org.cote.js.xhtml.XHTMLComponent.newInstance(o.parentNode,o);</code>
<code><![CDATA[</script>Creates and returns a new XHTMLComponentInstance instance.
c = newInstance( hp, xp, cid, rid, cc, cn, cp, cf )
c as XHTMLComponentInstance: Returns a new XHTMLComponentInstance.
An object representing a XHTML object (HTML node) to the framework.
This class participates in the engine library.
Object API structure for storing sub structures: object_config.pointers and object_config.status.
object = object.object_config
Unique instance identifier.
String = object.object_id
The type of this object.
String = object.object_type
Version of the object class.
String = object.object_version
Object load and execution state. Follows: 0 unitialized, 1 through 3 variant, 4 ready, 5 destroyed.
int = object.ready_state
Clears internal pointers and data, preparing the object for destruction.
void destroy( )
Returns any underlying ApplicationComponent object. For example, if a component name, component path, and component config name were specified when the instance was created, then the corresponding ApplicationComponent would be returned.
i = getApplicationComponent( )
i as ApplicationComponent: Returns any underlying ApplicationComponent object.
Returns any component collection that was included when the object was created.
c = getComponentCollection( )
c as object: Component collection (eg: XHTMLFormComponent).
Returns the component id. The component id is used as a friendly name reference to Engine objects and Component Collections such as XHTMLFormComponent.
i = getComponentId( )
i as String: Returns the component id which was specified when the XHTMLComponent was created.
Returns the reference id. For example, the reference id could be an Engine object for which the XHTMLComponent was created.
i = getComponentId( )
i as String: Returns the reference id which was specified when the XHTMLComponent was created.
Returns the component container object. For example, if a component was created from an XHTML import <div /> then the HTML version of that node is the container.
o = getContainer( )
o as object: The XHTML/HTML object created based on the specified values when the instance was created.
Returns a bit indicating whether the object is linked.
i = getIsComponentLinked( )
i as bit: Bit indicating whether the object is linked with a component collection (eg: to XHTMLFormComponent).
Returns the unique id of the object.
i = getObjectId( )
i as String: The unique object instance id.
Returns the type of the object.
t = getObjectType( )
t as String: The type of the object instance.
Returns the version of the object.
v = getObjectVersion( )
v as String: The version of the object instance.
Returns the object_config.pointers sub structure.
o = getPointers( )
o as object: The object_config.pointers substructure.
Returns the state of the object.
s = getReadyState( )
s as int: The object ready state.
Returns the object_config.status sub structure.
o = getStatus( )
o as object: The object_config.status substructure.
Initializes the instance of this object.
void init_component( )
Post initializes the object to add it to a component collection. This is invoked internally when using the EngineService for a specific Engine object.
void post_init( )
Sends a termination signal to this object, causing it to be destroyed.
void sigterm( )