public interface Component extends Element
Component
interface represents a component deployed into a form.
Individual components can be accessed via the Components
interface.
Modifier and Type | Method and Description |
---|---|
Components |
getComponents()
Returns the
Components object that gives access to all nested sub-components available to the component. |
Controls |
getControls()
Returns the
Controls object that gives access to all controls available to the component. |
Fields |
getFields()
Returns the
Fields object that gives access to all fields available to the component. |
Pages |
getPages()
Returns the
Pages object that gives access to all pages available to the component. |
java.lang.String |
getPrefix()
Returns the component prefix.
|
Resources |
getResources()
Returns the
Resources object that gives access to all resources available to the component. |
Tables |
getTables()
Returns the
Tables object that gives access to all tables available to the component. |
Texts |
getTexts()
Returns the
Texts object that gives access to all texts available to the component. |
getElementName, getElementType
Resources getResources()
Resources
object that gives access to all resources available to the component.
An individual resource can then be accessed using its resource name as shown in the examples below.
Javascript example:
components.PREFIX1.resources.EMAIL1.sendmail(); components.PREFIX1.getResources().WEB_SERVICE1.call();
Resources
Fields getFields()
Fields
object that gives access to all fields available to the component.
An individual field can then be accessed using its field name as shown in the examples below.
Javascript example:
var v1 = components.PREFIX1.fields.FIELD1.value; var v2 = components.PREFIX1.getFields().FIELD_2.value;
Fields
Tables getTables()
Tables
object that gives access to all tables available to the component.
An individual table can then be accessed using its table name as shown in the examples below.
Javascript example:
var t1 = components.PREFIX1.tables.TABLE1; var t2 = components.PREFIX1.getTables().TABLE2;
Tables
Pages getPages()
Pages
object that gives access to all pages available to the component.
An individual page can then be accessed using its page name as shown in the examples below.
Javascript example:
var p1 = components.PREFIX1.pages.PAGE1; var p2 = components.PREFIX1.getPages().PAGE2").value;
Pages
Controls getControls()
Controls
object that gives access to all controls available to the component.
An individual control can then be accessed using its control name as shown in the examples below.
Javascript example:
components.PREFIX1.controls.TEXTCONTROL1.hide(); components.PREFIX1.getControls().BUTTONCONTROL2.backgroundColor = "Red";
Controls
Texts getTexts()
Texts
object that gives access to all texts available to the component.
An individual text can then be accessed using its text id as shown in the examples below.
Javascript example:
components.PREFIX1.texts.Txt1; components.PREFIX1.getTexts().Txt1.text;
Texts
java.lang.String getPrefix()
When nested components are used, a Component object exists for each unique prefix. For example, if component COMP1 is inserted into component COMP2 which in turn is inserted into a form, two Component objects will exist with prefixes something like:
Components getComponents()
Components
object that gives access to all nested sub-components available to the component.
An individual component can then be accessed using its prefix as shown in the examples below.
Javascript example:
components.PREFIX1.components.PREFIX2; components.PREFIX1.getComponents().PREFIX2;
Components