|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Component
The Component
interface represents a component deployed into a form.
Individual components can be accessed via the Components
interface.
Method Summary | |
---|---|
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. |
Methods inherited from interface com.ebasetech.xi.api.Element |
---|
getElementName, getElementType |
Method Detail |
---|
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
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:
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |