public abstract class SalesContainerConfigurableItemsPage extends TelesalesConfigurableOrderPage
This page can be extended.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
static java.lang.String | DRAG_ADD_LINE_ITEM
Dragged line item input property name.
|
static java.lang.String | DRAG_AND_DROP
Drag and drop input property name.
|
static java.lang.String | DRAG_REPLACE_LINE_ITEM
Replaced line item input property name.
|
static java.lang.String | DRAG_REPLACE_PRODUCT
Replaced product input property name.
|
protected org.eclipse.swt.dnd.DropTarget | dropTarget_
Drop target for the drag and drop event.
|
Constructor and Description |
---|
SalesContainerConfigurableItemsPage() |
Modifier and Type | Method and Description |
---|---|
void | addDropSupport()
This implementation instantiates the drop target and sets the transfer types.
|
protected void | addShippingCarrier(ShippingInfo shippingInfo)
Add a shipping carrier to an item.
|
protected void | addShippingInstructions(ShippingInfo shippingInfo)
Add shipping instructions to an item.
|
boolean | canLeavePage()
Returns true only if the pending item edits are saved.
|
protected void | completeQuote()
This method completes the quote and save it.
|
protected abstract void | delete(Line[] lineItems)
Notifies that a Delete item action is required.
|
protected void | deleteShippingInstructions(ShippingInfo shippingInfo)
Delete shipping instructions from an item.
|
java.lang.Object | getAdapter(java.lang.Class adapter)
Returns an object which is an instance of the given class associated with this object.
|
protected org.eclipse.swt.dnd.DropTargetAdapter | getDropTargetAdapter()
Returns the drop adapter.
|
Product | getDynamicKitForDetail()
Getter to retrieve the Product model object of type Dynamic Kit that will used by the Dynamic Kit dialog detail
|
java.lang.String | getHelpContextId()
Retrieves the page's help context ID.
|
java.lang.String | getHelpResource()
Returns the help resource.
|
protected abstract void | getSalesOrderWithDynaKitDetails(Line line)
Submits a request to retrieve the dynamic kit detail.
|
protected TelesalesProperties | getShippingInstructionsParameters(ShippingInfo shippingInfo)
Deprecated.
Do not use this method for any customization, rather use action class.
|
java.lang.String | getTitle()
Returns the title of the editor.
|
void | handleShippingCarrierRequest(ModelObjectList shippingCarriersMOList)
Indicates that an Add, Update, or Delete action is required.
|
void | handleShippingInstructionsRequest(ModelObjectList shippingInstructionsMOList)
Indicates that an Add, Update, or Delete action is required.
|
abstract void | refresh()
This method refreshes the editor Page.
|
protected abstract void | refreshPricesPressed()
Refreshes the sales container.
|
void | replaceLine(Line[] lines, Product product)
Sets the line to be replaced into widget manager properties.
|
void | setAddLine(Line line)
Sets the dragged line into widget manager properties.
|
void | setDynamicKitForDetail(Product aProduct)
Setter used to set the Product model object of type Dynamic Kit that will used by the Dynamic Kit dialog detail
|
void | synchronizeAssociations(Product product)
Synchronizes the association pages with the products in the editor.
|
protected void | updateShippingCarrier(ShippingInfo shippingInfo)
Update the shipping carrier for an item.
|
protected void | updateShippingInstructions(ShippingInfo shippingInfo)
Update shipping instructions for an item.
|
void | widgetManagerChanged(WidgetManagerEvent widgetManagerEvent)
Handles widget manager events.
|
public static final java.lang.String COPYRIGHT
protected org.eclipse.swt.dnd.DropTarget dropTarget_
public static final java.lang.String DRAG_ADD_LINE_ITEM
public static final java.lang.String DRAG_REPLACE_LINE_ITEM
public static final java.lang.String DRAG_REPLACE_PRODUCT
public static final java.lang.String DRAG_AND_DROP
public void setAddLine(Line line)
Key: DRAG_ADD_LINE_ITEM
Value: Line that was dragged
Key: DRAG_AND_DROP
Value: Boolean value true
public void replaceLine(Line[] lines, Product product)
Key: DRAG_REPLACE_LINE_ITEM
Value: Line that is to be replaced
Key: DRAG_REPLACE_PRODUCT
Value: Product that replaces the selected Line
Key: DRAG_AND_DROP
Value: Boolean value true
public void addDropSupport()
The OrderEditorDropAdapter is used as the DropListener.
If the order is non-editable, the AssociationTransfer is not added as a transfer type.
public boolean canLeavePage()
protected abstract void delete(Line[] lineItems)
Subclasses need to override.
public java.lang.Object getAdapter(java.lang.Class adapter)
Returns null if no such object can be found.
protected org.eclipse.swt.dnd.DropTargetAdapter getDropTargetAdapter()
public java.lang.String getHelpContextId()
public java.lang.String getHelpResource()
public java.lang.String getTitle()
protected abstract void refreshPricesPressed()
This implementation of this framework method is a no-op.
Subclasses need to implement.
protected abstract void getSalesOrderWithDynaKitDetails(Line line)
public abstract void refresh()
public void synchronizeAssociations(Product product)
public void setDynamicKitForDetail(Product aProduct)
public Product getDynamicKitForDetail()
public void widgetManagerChanged(WidgetManagerEvent widgetManagerEvent)
protected void completeQuote()
public void handleShippingCarrierRequest(ModelObjectList shippingCarriersMOList)
This implementation of this framework method sends a request for an add, update, or delete shipping carrier by calling addShippingCarrier(ShippingInfo) or updateShippingCarrier(ShippingInfo) TelesalesJobScheduler.
Subclasses may override this method.
protected void addShippingCarrier(ShippingInfo shippingInfo)
This method sends a request to the server to add a shipping carrier to a line item. If the shipping carrier is being added to an order, then the service request ID is "com.ibm.commerce.telesales.addOrderShippingCarrier". If the shipping carrier is being added to a quote, then the service request ID is "com.ibm.commerce.telesales.addQuoteShippingCarrier".
Subclasses may override.
protected TelesalesProperties getShippingInstructionsParameters(ShippingInfo shippingInfo)
protected void updateShippingCarrier(ShippingInfo shippingInfo)
This method sends a request to the server to update a shipping carrier for a line item. If the shipping carrier is being updated for an order, then the service request ID is "com.ibm.commerce.telesales.updateOrderShippingCarrier". If the shipping carrier is being updated for a quote, then the service request ID is "com.ibm.commerce.telesales.updateQuoteShippingCarrier".
Subclasses may override.
public void handleShippingInstructionsRequest(ModelObjectList shippingInstructionsMOList)
This implementation of this framework method sends a request for an add, update, or delete shipping instruction to WebSphere Commerce by calling addShippingInstructions(ShippingInfo), updateShippingInstructions(ShippingInfo) or deleteShippingInstructions(ShippingInfo) TelesalesJobScheduler.
Subclasses may override this method.
protected void addShippingInstructions(ShippingInfo shippingInfo)
This method sends a request to the server to add shipping instructions to a line item. If the shipping instructions are being added to an order, then the service request ID is "com.ibm.commerce.telesales.addOrderShippingInstruction". If the shipping instructions are being added to a quote, then the service request ID is "com.ibm.commerce.telesales.addQuoteShippingInstruction".
Subclasses may override.
protected void deleteShippingInstructions(ShippingInfo shippingInfo)
This method sends a request to the server to delete shipping instructions from a line item. If the shipping instructions are being deleted from an order, then the service request ID is "com.ibm.commerce.telesales.deleteOrderShippingInstruction". If the shipping instructions are being deleted from a quote, then the service request ID is "com.ibm.commerce.telesales.deleteQuoteShippingInstruction".
Subclasses may override.
protected void updateShippingInstructions(ShippingInfo shippingInfo)
This method sends a request to the server to update shipping instructions from a line item. If the shipping instructions are being updated for an order, then the service request ID is "com.ibm.commerce.telesales.updateOrderShippingInstruction". If the shipping instructions are being updated for a quote, then the service request ID is "com.ibm.commerce.telesales.updateQuoteShippingInstruction".
Subclasses may override.