public class ReturnItemsPageManager extends StandardWidgetManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String | BUTTON_TYPE_ADD_OTHER_SERIALNUMBER
Add other serialNumber Button type.
|
static java.lang.String | BUTTON_TYPE_ADD_OTHER_SERIALNUMBER_FIELD
Add other serialNumber field type.
|
static java.lang.String | BUTTON_TYPE_ADD_SERIALNUMBER
Add serialNumber button type.
|
static java.lang.String | BUTTON_TYPE_REMOVE_SERIALNUMBER
Remove serialNumber button type.
|
protected org.eclipse.swt.events.SelectionListener | cacheSortListener_
Selection listener on a table column.
|
static java.lang.String | COMMENTS_TEXT
Comments column identifier value.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | CREDIT_ADJUSTMENT_TEXT
Credit adjustment column identifier value.
|
static java.lang.String | CREDIT_AMOUNT_COULUMN
Credit amount column identifier value.
|
static java.lang.String | CREDIT_BEFORE_TAX
Credit before tax identifier value.
|
static java.lang.String | EVENT_ADD_ITEM
Add button selected event property.
|
static java.lang.String | EVENT_APPLY_ITEM
Apply button selected event property.
|
static java.lang.String | EVENT_DELETE_ITEM
Delete button selected event property.
|
static java.lang.String | EVENT_REFRESH
Refresh selected event property.
|
static java.lang.String | FIELD_TYPE_RETURN_REASON
Return reason field type constant.
|
static java.lang.String | FIELD_TYPE_SERIALNUMBER_LIST1
Return serial number list field type constant.
|
static java.lang.String | FIELD_TYPE_SERIALNUMBER_LIST2
Return serial number list field type constant.
|
static java.lang.String | INPUT_PROP_BUTTON_TYPE
Button type property name.
|
static java.lang.String | INPUT_PROP_COLUMN_TYPE
Field type property name.
|
static java.lang.String | INPUT_PROP_FIELD_TYPE
Field type property name.
|
static java.lang.String | INPUT_PROP_LABEL_TYPE
Field type property name.
|
static java.lang.String | INPUT_PROP_PAGE_ITEMS
Return local cache input property name.
|
static java.lang.String | INPUT_PROP_RETURN
Return input property name.
|
static java.lang.String | INPUT_PROP_SELECTED_ROWS
Selected Rows from the ReturnItem Table.
|
static java.lang.String | INPUT_PROP_SERIAL_NUMBERLIST_CONTROL
Serial number list control that return the selected Serial number list.
|
static java.lang.String | INPUT_PROP_SERIAL_NUMBERS
Selected serial from the serial number List.
|
static java.lang.String | INPUT_PROP_TABLE_TYPE
Table type property name.
|
static java.lang.String | INPUT_TOTAL_CREDIT_AMOUNT
Return input property name.
|
static java.lang.String | ITEM_SUMMERYTABLE
Item summary table identifier value.
|
static java.lang.String | ITEM_TABLE
Item table identifier value.
|
static java.lang.String | ITEM_TABLE_EDITABLE_COLUMN
Editable column identifier value.
|
static java.lang.String | MANAGER_TYPE_RETURN_ITEM_EDITOR
Return items page manager type.
|
static java.math.BigDecimal | MAX_TOTAL_PRICE
Maximum value for calculated prices.
|
static java.lang.String | PHYSICAL_RETURN_TEXT
Physical return column identifier value.
|
static java.lang.String | PRODUCT_COLUMN
Product column identifier value.
|
static java.lang.String | QUANTITY_TEXT
Quantity column identifier value.
|
static java.lang.String | RETURN_REASON
Return reason column identifier value.
|
static java.lang.String | RETURN_RECIEPTS_COLUMN
Return receipts column identifier value.
|
static java.lang.String | SERIAL_NUMBER_COLUMN
Serial number Column.
|
static java.lang.String | TABLE_ADD_BUTTON
Add button identifier value.
|
static java.lang.String | TABLE_APPLY_BUTTON
Apply button identifier value.
|
static java.lang.String | TABLE_DELETE_BUTTON
Delete button identifier value.
|
static java.lang.String | TABLE_REFRESH_BUTTON
Refresh button identifier value.
|
static java.lang.String | ZERO_CASH
Constant for the ZERO_CASH property name.
|
Constructor and Description |
---|
ReturnItemsPageManager()
Construct a new return item widget manager.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean | canModify(java.lang.Object element, ConfiguredTableColumn configuredTableColumn, ConfiguredTable configuredTable)
This method checks whether the given property of the given element can be modified.
|
java.lang.Integer | compare(ConfiguredTableColumn tableColumn, java.lang.Object element1, java.lang.Object element2)
This method returns a negative, zero, or positive number depending on whether the first element is less than, equal to, or greater than the second element.
|
void | dispose()
This method dispose the resources created by this widget manager.
|
void | disposeControl(ConfiguredControl configuredControl)
Dispose the specified control.
|
void | disposeTableColumn(ConfiguredTableColumn configuredTableColumn)
Dispose of the specified table column.
|
void | doDeleteItem(java.util.ArrayList removeList)
This method deletes the selected item in the ReturnItem Table.
|
void | doRefresh(Return return_)
This method refreshes the editor state with the server by executing the GetReturnRequest.
|
protected void | evaluateStatus(Return return_)
This method enables and disables controls based on the return status.
|
java.lang.Object | getColumnCellValue(java.lang.Object element, ConfiguredTableColumn tableColumn)
This method returns the value for the given table column cell of the given element.
|
protected TelesalesProperties | getFindProductParameters(java.lang.String productId)
This method constructs the parameters for the "com.ibm.commerce.telesales.findProduct" action.
|
protected TelesalesProperties | getFindReturnParameters(Return return_)
Deprecated.
Do not use this method for any customization, rather use action class.
|
java.lang.String | getPhysicalReturnCode(java.lang.String physicalReturnName)
This method returns the physical return reason code selected in the physical return reason code control.
|
static org.eclipse.swt.graphics.Color | getRequiredFieldForegroundColor()
Returns the foreground color for required fields as indicated by '*'.
|
Return | getReturn()
This method returns the return from the WidgetManagerInputProperties.
|
java.lang.String | getReturnReasonCode(java.lang.String returnReasonName)
This method returns the return reason code selected in the return reason code control.
|
boolean | getReturnRecieptCode(java.lang.String returnReciept)
This method returns the receipt code selected in the return receipt included control.
|
org.eclipse.swt.graphics.Image | getTableColumnImage(java.lang.Object element, ConfiguredTableColumn tableColumn)
This method returns the table cell image for the specified element and table column.
|
java.lang.String | getTableColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn)
This method returns the table cell text for the specified row element and column.
|
java.lang.Object | getTableDefaultElement(ConfiguredTable configuredTable)
This method returns a default model object to populate the table.
|
protected TelesalesProperties | getUpdateReturnParameters(Return return_)
Deprecated.
do not use this method for any customization, rather use action class.
|
void | init(ConfiguredComposite configuredComposite, WidgetManagerInputProperties inputProperties)
This method initializes the return item widget manager.
|
void | initControl(ConfiguredControl configuredControl)
This method initializes the specified configured control.
|
void | initTableColumn(ConfiguredTableColumn configuredColumn)
This method initializes the specified column.
|
protected boolean | isItemValid()
This method returns true if the return item is valid.
|
protected boolean | isPreviousRowsValid()
Returns true if the previous rows in the return item table is valid.
|
protected void | openBundleDialog(Product product)
This method opens the bundle dialog.
|
protected void | openProductAttributesDialog(Product product)
This method opens the product attributes dialog.
|
protected void | populateReturnsCache()
This method populates the return cache with line items from the Return model.
|
protected void | processMultipleOrderItemAddition(java.util.ArrayList orderItemList)
This method processes multiple addition of a single product.
|
protected void | processMultipleProductAddition(SubProductInfo[] products)
This method processes multiple addition of a single product.
|
protected void | processValidatedProduct(Product product)
This method checks the Product ID (SKU) was validated, so now check what type of Product and act accordingly.
|
void | refreshControl(ConfiguredControl configuredControl)
This method refresh the specific controls based on information found in the widget manager's input properties.
|
protected void | resetInputProperty(java.lang.String key, java.lang.Object value)
This method resets the value in Widgetinputproperties
|
void | saveColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn, java.lang.Object value)
This method saves the contents of the column.
|
protected void | setInput(ConfiguredTable configuredTable)
This method refreshes the item table with local cache line item values.
|
void | setReturn(Return return_)
This method sets the return from the return model object.
|
protected void | update(java.util.HashMap updatedItems)
This method indicates that the Update action is required.
|
boolean | validateProductId(java.lang.String productId)
This method is ReturnItem implementation of this framework method sends a request for a find electronic catalog to WebSphere Commerce issuing the action ID of com.ibm.commerce.telesales.findProduct to the TelesalesJobScheduler.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String MANAGER_TYPE_RETURN_ITEM_EDITOR
public static final java.lang.String TABLE_ADD_BUTTON
public static final java.lang.String TABLE_APPLY_BUTTON
public static final java.lang.String TABLE_DELETE_BUTTON
public static final java.lang.String TABLE_REFRESH_BUTTON
public static final java.lang.String INPUT_PROP_SELECTED_ROWS
public static final java.lang.String ITEM_TABLE
public static final java.lang.String ITEM_SUMMERYTABLE
public static final java.lang.String ITEM_TABLE_EDITABLE_COLUMN
public static final java.lang.String PRODUCT_COLUMN
public static final java.lang.String QUANTITY_TEXT
public static final java.lang.String COMMENTS_TEXT
public static final java.lang.String CREDIT_ADJUSTMENT_TEXT
public static final java.lang.String CREDIT_AMOUNT_COULUMN
public static final java.lang.String CREDIT_BEFORE_TAX
public static final java.lang.String PHYSICAL_RETURN_TEXT
public static final java.lang.String RETURN_RECIEPTS_COLUMN
public static final java.lang.String SERIAL_NUMBER_COLUMN
public static final java.lang.String RETURN_REASON
public static final java.lang.String INPUT_TOTAL_CREDIT_AMOUNT
public static final java.lang.String INPUT_PROP_BUTTON_TYPE
public static final java.lang.String INPUT_PROP_FIELD_TYPE
public static final java.lang.String INPUT_PROP_COLUMN_TYPE
public static final java.lang.String INPUT_PROP_LABEL_TYPE
public static final java.lang.String INPUT_PROP_TABLE_TYPE
public static final java.lang.String FIELD_TYPE_SERIALNUMBER_LIST1
public static final java.lang.String FIELD_TYPE_SERIALNUMBER_LIST2
public static final java.lang.String BUTTON_TYPE_ADD_SERIALNUMBER
public static final java.lang.String BUTTON_TYPE_ADD_OTHER_SERIALNUMBER
public static final java.lang.String BUTTON_TYPE_REMOVE_SERIALNUMBER
public static final java.lang.String BUTTON_TYPE_ADD_OTHER_SERIALNUMBER_FIELD
public static final java.lang.String FIELD_TYPE_RETURN_REASON
public static final java.lang.String INPUT_PROP_RETURN
public static final java.lang.String INPUT_PROP_PAGE_ITEMS
public static final java.lang.String INPUT_PROP_SERIAL_NUMBERS
public static final java.lang.String INPUT_PROP_SERIAL_NUMBERLIST_CONTROL
public static final java.lang.String ZERO_CASH
Value is "0.00"
The data stored under the ZERO_CASH property is a String that contains the value to initialize all fields containing cash figures.
public static final java.math.BigDecimal MAX_TOTAL_PRICE
public static final java.lang.String EVENT_ADD_ITEM
public static final java.lang.String EVENT_DELETE_ITEM
public static final java.lang.String EVENT_APPLY_ITEM
public static final java.lang.String EVENT_REFRESH
protected final org.eclipse.swt.events.SelectionListener cacheSortListener_
public ReturnItemsPageManager()
public void init(ConfiguredComposite configuredComposite, WidgetManagerInputProperties inputProperties)
public void initControl(ConfiguredControl configuredControl)
public void initTableColumn(ConfiguredTableColumn configuredColumn)
public java.lang.Boolean canModify(java.lang.Object element, ConfiguredTableColumn configuredTableColumn, ConfiguredTable configuredTable)
public java.lang.Object getTableDefaultElement(ConfiguredTable configuredTable)
public org.eclipse.swt.graphics.Image getTableColumnImage(java.lang.Object element, ConfiguredTableColumn tableColumn)
public java.lang.String getTableColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn)
protected void update(java.util.HashMap updatedItems)
This method sends a request to update an item.
Subclasses may override.
public void doDeleteItem(java.util.ArrayList removeList)
public void doRefresh(Return return_)
public void saveColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn, java.lang.Object value)
public java.lang.Object getColumnCellValue(java.lang.Object element, ConfiguredTableColumn tableColumn)
public java.lang.String getReturnReasonCode(java.lang.String returnReasonName)
public java.lang.String getPhysicalReturnCode(java.lang.String physicalReturnName)
public boolean getReturnRecieptCode(java.lang.String returnReciept)
public boolean validateProductId(java.lang.String productId)
If the results do not contain one, and only one, product ID, the requested product is set as invalid.
Subclasses may override this method.
protected void processValidatedProduct(Product product)
protected void openBundleDialog(Product product)
protected void openProductAttributesDialog(Product product)
protected TelesalesProperties getFindProductParameters(java.lang.String productId)
protected void processMultipleProductAddition(SubProductInfo[] products)
protected void processMultipleOrderItemAddition(java.util.ArrayList orderItemList)
public Return getReturn()
public void setReturn(Return return_)
protected TelesalesProperties getUpdateReturnParameters(Return return_)
protected TelesalesProperties getFindReturnParameters(Return return_)
protected void evaluateStatus(Return return_)
protected void populateReturnsCache()
public void refreshControl(ConfiguredControl configuredControl)
public void dispose()
protected void setInput(ConfiguredTable configuredTable)
protected void resetInputProperty(java.lang.String key, java.lang.Object value)
public java.lang.Integer compare(ConfiguredTableColumn tableColumn, java.lang.Object element1, java.lang.Object element2)
protected boolean isPreviousRowsValid()
protected boolean isItemValid()
public static org.eclipse.swt.graphics.Color getRequiredFieldForegroundColor()
Checks for high contrast mode being enabled.
public void disposeTableColumn(ConfiguredTableColumn configuredTableColumn)
public void disposeControl(ConfiguredControl configuredControl)