Reference > IBM Sales Center extension points


compositeDefinitions

The com.ibm.commerce.telesales.widgets.compositeDefinitions extension point is used to declare configured composite definitions for use in the IBM Sales Center user interface.


Identifier:

com.ibm.commerce.telesales.widgets.compositeDefinitions


Description:

The com.ibm.commerce.telesales.widgets.compositeDefinitions extension point is used to declare configured composite definitions for use in the IBM Sales Center user interface.


Configuration Markup:

<!ELEMENT extension ( gridCompositeDefinition | formCompositeDefinition | stackCompositeDefinition | rowCompositeDefinition)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED>

<!ELEMENT gridCompositeDefinition ( row | repeatableFragment)*>

<!ATTLIST gridCompositeDefinition

id CDATA #REQUIRED

layoutId CDATA #IMPLIED

referenceId CDATA #IMPLIED>

This element is used to describe configured composites with a grid layout.

<!ELEMENT formCompositeDefinition ( control*)>

<!ATTLIST formCompositeDefinition

id CDATA #REQUIRED

layoutId CDATA #IMPLIED

referenceId CDATA #IMPLIED>

This element is used to describe configured composites with a form layout.

<!ELEMENT row ( control | repeatableFragment)*>

<!ATTLIST row

id CDATA #IMPLIED

referenceId CDATA #IMPLIED>

This element is used to describe grid composite rows.

<!ELEMENT control ( leftAttachment? , rightAttachment? , topAttachment? , bottomAttachment?)>

<!ATTLIST control

controlId CDATA #REQUIRED

dataId CDATA #IMPLIED

height CDATA #IMPLIED

width CDATA #IMPLIED

horizontalSpan CDATA #IMPLIED

topControl (true | false) >

This element is used to describe composite child controls.

<!ELEMENT leftAttachment EMPTY>

<!ATTLIST leftAttachment

offset CDATA "0"

numerator CDATA "0"

denominator CDATA "100"

alignment (DEFAULT|CENTER|LEFT|RIGHT|TOP|BOTTOM) "DEFAULT"

relativeControlId CDATA #IMPLIED>

This element is used to describe the form attachment on the left side of the control. This element should only be specified if the control is part of a form composite.

<!ELEMENT rightAttachment EMPTY>

<!ATTLIST rightAttachment

offset CDATA "0"

numerator CDATA "0"

denominator CDATA "100"

alignment (DEFAULT|CENTER|LEFT|RIGHT|TOP|BOTTOM) "DEFAULT"

relativeControlId CDATA #IMPLIED>

This element is used to describe the form attachment on the right side of the control. This element should only be specified if the control is part of a form composite.

<!ELEMENT topAttachment EMPTY>

<!ATTLIST topAttachment

offset CDATA "0"

numerator CDATA "0"

denominator CDATA "100"

alignment (DEFAULT|CENTER|LEFT|RIGHT|TOP|BOTTOM) "DEFAULT"

relativeControlId CDATA #IMPLIED>

This element is used to describe the form attachment on the top of the control. This element should only be specified if the control is part of a form composite.

<!ELEMENT bottomAttachment EMPTY>

<!ATTLIST bottomAttachment

offset CDATA "0"

numerator CDATA "0"

denominator CDATA "100"

alignment (DEFAULT|CENTER|LEFT|RIGHT|TOP|BOTTOM) "DEFAULT"

relativeControlId CDATA #IMPLIED>

This element is used to describe the form attachment on the bottom of the control. This element should only be specified if the control is part of a form composite.

<!ELEMENT stackCompositeDefinition ( control*)>

<!ATTLIST stackCompositeDefinition

id CDATA #REQUIRED

layoutId CDATA #IMPLIED

referenceId CDATA #IMPLIED>

<!ELEMENT rowCompositeDefinition ( control*)>

<!ATTLIST rowCompositeDefinition

id CDATA #REQUIRED

layoutId CDATA #IMPLIED

referenceId CDATA #IMPLIED>

This element is used to describe configured composites with a row layout.

<!ELEMENT repeatableFragment ( row | control | repeatableFragment)*>

<!ATTLIST repeatableFragment

type CDATA #IMPLIED

managerClass CDATA #REQUIRED>

This element is used to describe a repeatable grid composite fragment. If a repeatable fragment is the child of a grid composite definition, then its children can only be rows or repeatable fragments. If a repeatable fragment is the child of a row, then its children can only be controls or repeatable fragments.


Examples:

    
<extension point=
 "com.ibm.commerce.telesales.widgets.composites"
 > 
      

<gridCompositeDefinition
         id=
 "customerNameComposite.default"
 
         layoutId=
 "standardGridLayout"
 >          

<row id=
 "customerNameGroupLabelRow"
 >             

<control controlId=
 "customerNameGroupLabel"
  dataId=
 "headerLabelGridData"
 />          

</row>          

<row id=
 "customerUserNameRow"
 >             

<control controlId=
 "customerUserNameLabel"
  dataId=
 "requiredLabelGridData"
 />             

<control controlId=
 "customerUserNameField"
  dataId=
 "requiredFieldGridData"
 />          

</row>          

<row id=
 "customerTitleRow"
 >             

<control controlId=
 "customerTitleLabel"
  dataId=
 "requiredLabelGridData"
 />             

<control controlId=
 "customerTitleField"
  dataId=
 "requiredFieldGridData"
 />          

</row>          

<row id=
 "customerFirstNameRow"
 >             

<control controlId=
 "customerFirstNameLabel"
  dataId=
 "requiredLabelGridData"
 />             

<control controlId=
 "customerFirstNameField"
  dataId=
 "requiredFieldGridData"
 />          

</row>          

<row id=
 "customerMiddleNameRow"
 >             

<control controlId=
 "customerMiddleNameLabel"
  dataId=
 "requiredLabelGridData"
 />             

<control controlId=
 "customerMiddleNameField"
  dataId=
 "requiredFieldGridData"
 />          

</row>          

<row id=
 "customerLastNameRow"
 >             

<control controlId=
 "customerLastNameLabel"
  dataId=
 "requiredLabelGridData"
 />             

<control controlId=
 "customerLastNameField"
  dataId=
 "requiredFieldGridData"
 />          

</row>       

</gridCompositeDefinition> 
      

<gridCompositeDefinition
         id=
 "customerNameComposite.zh_CN"
 
         layoutId=
 "standardGridLayout"
 >          

<row referenceId=
 "customerNameGroupLabelRow"
 />          

<row referenceId=
 "customerUserNameRow"
 />          

<row referenceId=
 "customerLastNameRow"
 />          

<row referenceId=
 "customerMiddleNameRow"
 />          

<row referenceId=
 "customerFirstNameRow"
 />          

<row referenceId=
 "customerTitleRow"
 />       

</gridCompositeDefinition> 
      

<gridCompositeDefinition
         id=
 "customerNameComposite.ja_JP"
 
         layoutId=
 "standardGridLayout"
 >          

<row referenceId=
 "customerNameGroupLabelRow"
 />          

<row referenceId=
 "customerUserNameRow"
 />          

<row referenceId=
 "customerLastNameRow"
 />          

<row referenceId=
 "customerMiddleNameRow"
 />          

<row referenceId=
 "customerFirstNameRow"
 />          

<row referenceId=
 "customerTitleRow"
 />       

</gridCompositeDefinition> 
      

<formCompositeDefinition
         id=
 "customerIdentityComposite.default"
 
         layoutId=
 "standardFormLayout"
 >          

<control controlId=
 "customerNameComposite"
 >             

<leftAttachment
               offset=
 "0"
 
               numerator=
 "0"
 />             

<rightAttachment
               offset=
 "-15"
 
               numerator=
 "50"
 />          

</control>          

<control controlId=
 "customerEmploymentComposite"
 >             

<topAttachment
               offset=
 "15"
 
               relativeControlId=
 "customerNameComposite"
 />             

<leftAttachment
               numerator=
 "0"
 
               offset=
 "0"
 />             

<rightAttachment
               numerator=
 "50"
 
               offset=
 "-15"
 />          

</control>          

<control controlId=
 "customerAddressComposite"
 >             

<leftAttachment
               offset=
 "15"
 
               relativeControlId=
 "customerNameComposite"
 />             

<rightAttachment
               numerator=
 "100"
 
               offset=
 "-15"
 />          

</control>       

</formCompositeDefinition> 
   

</extension>


API Information:

Composite definitions can be created using the composite definition factory. Refer to com.ibm.commerce.telesales.widgets.composites.CompositeDefinitionFactory

for more information. Normally a composite definition is not constructed directly but is referenced by the compositeDefinitionId

attribute of a composite control declaration. Refer to the com.ibm.commerce.telesales.widgets.controls

extension point for more information.


Supplied Implementation:

Many of the editors, dialogs, and views provided with IBM Sales Center have declared their user interface composites using the compositeDefinitions extension point.


+

Search Tips   |   Advanced Search