Reference > IBM Sales Center extension points


tableDefinitions

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


Identifier:

com.ibm.commerce.telesales.widgets.tableDefinitions


Description:

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


Configuration Markup:

<!ELEMENT extension ( tableDefinition+)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED>

<!ELEMENT tableDefinition ( column*)>

<!ATTLIST tableDefinition

id CDATA #REQUIRED

referenceId CDATA #IMPLIED>

This element is used to describe configured tables.

<!ELEMENT column ( property*)>

<!ATTLIST column

id CDATA #IMPLIED

referenceId CDATA #IMPLIED

alignment (LEFT|RIGHT|CENTER) "LEFT"

text CDATA #IMPLIED

image CDATA #IMPLIED

minimumWidth CDATA #IMPLIED

resizable (true | false)

weight CDATA #IMPLIED

width CDATA #IMPLIED

modelPath CDATA #IMPLIED

managerType CDATA #IMPLIED

initialSort (true | false)

verifyListenerType CDATA #IMPLIED

validatorType CDATA #IMPLIED

label CDATA #IMPLIED

cellEditorType CDATA #IMPLIED

enabled (true | false)

buttonImage CDATA #IMPLIED

buttonText CDATA #IMPLIED

textLimit CDATA #IMPLIED

required (true | false)

formatterType CDATA #IMPLIED

controltooltip CDATA #IMPLIED

buttontooltip CDATA #IMPLIED

dataType (date|string|integer|timestamp|bigDecimal|bigInteger) >

This element is used to describe table columns.

<!ELEMENT property ( value* | property*)>

<!ATTLIST property

name CDATA #REQUIRED

value CDATA #IMPLIED>

This element is used to describe a column. The property will be available to the the widget manager when the column is being managed. All columns must describe columnType property. This property is used to uniquely identify a column.

<!ELEMENT value (#PCDATA)>

Value element. Use this element to provide a property value. This element can be used if the property represents a list.


Examples:

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

<tableDefinition id=
 "orderItemsTableDefinition"
 >       

<column
         resizable=
 "true"
 
         width=
 "16"
 
         minimumWidth=
 "20"
 
         alignment=
 "CENTER"
 
         id=
 "orderItemEditable"
 
         modelPath=
 "editable"
 />       

<column
         text=
 "OrderItemsLabelProvider.productTypeColumnHeader"
 
         resizable=
 "true"
 
         width=
 "16"
 
         minimumWidth=
 "20"
 
         alignment=
 "CENTER"
 
         id=
 "orderItemProductType"
 
         modelPath=
 "itemCreateDate"
 />       

<column
         text=
 "OrderItemsLabelProvider.quantityColumnHeader"
 
         width=
 "75"
 
         resizable=
 "true"
 
         minimumWidth=
 "20"
 
         alignment=
 "CENTER"
 
         id=
 "orderItemQuantity"
 
         modelPath=
 "quantity"
 />       

<column
         width=
 "100"
 
         resizable=
 "true"
 
         text=
 "OrderItemsLabelProvider.productIdColumnHeader"
 
         minimumWidth=
 "20"
 
         alignment=
 "LEFT"
 
         id=
 "orderItemProductId"
 
         modelPath=
 "product.productId"
 />       

<column
         text=
 "OrderItemsLabelProvider.productNameColumnHeader"
 
         width=
 "175"
 
         resizable=
 "true"
 
         minimumWidth=
 "20"
 
         alignment=
 "LEFT"
 
         id=
 "orderItemProductName"
 
         modelPath=
 "product.catEntryDescName"
 />       

<column
         width=
 "125"
 
         text=
 "OrderItemsLabelProvider.shipToColumnHeader"
 
         resizable=
 "true"
 
         minimumWidth=
 "20"
 
         alignment=
 "LEFT"
 
         id=
 "orderItemShipTo"
 
         modelPath=
 "shippingAddress.addressNickName"
 />       

<column
         text=
 "OrderItemsLabelProvider.carrierColumnHeader"
 
         width=
 "125"
 
         resizable=
 "true"
 
         minimumWidth=
 "20"
 
         alignment=
 "LEFT"
 
         id=
 "orderItemCarrier"
 
         modelPath=
 "shippingMode"
 />       

<column
         text=
 "OrderItemsLabelProvider.shipDateColumnHeader"
 
         width=
 "65"
 
         resizable=
 "true"
 
         minimumWidth=
 "20"
 
         alignment=
 "RIGHT"
 
         id=
 "orderItemShipDate"
 
         modelPath=
 "subLines[0].earliestShipDate"
 />       

<column
         width=
 "80"
 
         resizable=
 "true"
 
         text=
 "OrderItemsLabelProvider.priceColumnHeader"
 
         minimumWidth=
 "20"
 
         alignment=
 "RIGHT"
 
         id=
 "orderItemPrice"
 
         modelPath=
 "extendedPrice"
 />    

</tableDefinition> 
</extension>


API Information:

Table definitions can be created using the table definition factory. Refer to com.ibm.commerce.telesales.widgets.tables.TableDefinitionFactory

for more information. Normally a table definition is not constructed directly but is referenced by the tableDefinitoinId

attribute of a table 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 the IBM Sales Center editor have declared their user interface tables using the tableDefinitions extension point.


+

Search Tips   |   Advanced Search