![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
The initialize() method for the ControlWrapper receives an object of type Component. This provides an interface that the ControlWrapper can use to obtain information and configuration from the form layer, and to also raise events back to the form so they can trigger rules defined in the form model.
• suffix (optional)
•
•
•
•
• This method returns the String representation of the locale in which the control should be rendered.
• For example, if a project contains myimage.gif located at project/Presentation Resources/images, you can compute the URL of this image using:This method returns an object that provides access to all localized resource bundles defined at the library level and the component level for this particular Component. Resources are accessed using the resource name and individual keys. For example: for a resource with name resource.myName created at the library or at the component level that has a key called myLabelKey in it, its value can be retrieved using:
• This method returns an array of DOM identifiers which represents any validation messages currently in effect for this control. There is one ID for each message pane in the form. Useful in situations where the messages need to be referenced for accessibility purposes. If null, then there are currently no validation errors reported against this control. If the array is non-null but empty, this signifies that there are errors, but no messages are displayed because the Form does not contain a Messages pane.
• This method is invoked by the ControlWrapper when it needs to propagate an event back to the Form layer. Most controls should raise at least the update event in order to notify the form layer that the control value has changed. It is not necessary to raise an update event when updating the attribute value of a complex object or updating the list for a multi-valued complex type. The BOM JavaScript representations of these objects handle the updates internally.
• eventName: Name of the event as configured in the component metadata. This name should correspond to one of the events specified as supported by the component type. Built-in events include close, doubleclick, enter, exit, localize, open, select, submit, and update.
• eventValue: Object that differs depending on the event being raised. For update events, this is the new value. Other events do not need an eventValue. Any custom-defined events ignore the eventValue.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |