public class OrderEditor extends SalesContainerBaseEditor implements org.eclipse.ui.ISelectionListener
This class can be extended.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
static java.lang.String | EDITOR_ID
Order Editor ID.
|
static java.lang.String | EDITOR_PAGES_HISTORY_ID
Order Editor pages ID with the order history page.
|
static java.lang.String | EDITOR_PAGES_ID
Order Editor pages ID.
|
static java.lang.String | EDITOR_PAGES_NO_COMMENTS_ID
Order Editor pages ID without the comments page.
|
static java.lang.String | MAX_THRESHOLD_PER_PAGE
Property name to define value for maximum number of records displayed per page for order editor pages.
|
Constructor and Description |
---|
OrderEditor() |
Modifier and Type | Method and Description |
---|---|
void | addLineItem(Product product)
Adds an item to the order.
|
protected void | beginOrder()
Calls the begin order implementation provided in the editor.
|
void | cancelOrder()
Initiates the "CancelOrderAction" action.
|
void | closeSalesContainer()
This method invokes the RemoveOrderAction action.
|
protected void | editOrder()
Notifies that the Edit order button of this page has been pressed.
|
protected TelesalesProperties | getCalculateOrderParameters(Order order)
Deprecated.
do not use this method for any customization, rather use action class.
|
java.lang.String | getContextId()
Returns the context ID that would be used by the command plugin.
|
java.lang.String | getEditorId()
Returns the editor ID for this editor.
|
java.lang.String | getEditorPagesId()
Returns the editor pages ID for this editor.
|
protected TelesalesProperties | getPrepareOrderParameters()
Deprecated.
do not use this method for any customization, rather use action class.
|
java.lang.String | getTitle()
Gets the order editor title.
|
org.eclipse.swt.graphics.Image | getTitleImage()
Gets the order title image.
|
java.lang.String | getTitleToolTip()
Gets the tool tip for title.
|
WidgetManagerInputProperties | getWidgetManagerInputProperties()
This method gets the widget manager input properties.
|
void | initializeWidgetManagerInputProperties()
This method initializes the widget manager input properties.
|
protected OrderItemsConfigurablePage | lookupOrderItemsPage()
Returns the order items page if found.
|
protected void | orderToQuote()
Initiates the CreateQuoteFromOrderAction.
|
protected void | prepareOrder()
Initiates the "com.ibm.commerce.telesales.prepareOrder" request.
|
void | refreshSalesContainer()
Requests that the order editor input be refreshed.
|
void | replaceLineItems(Line[] originalLineItems, Product product)
Replaces items in the order.
|
protected void | submitOrderPressed()
Notifies that the Submit order button of this page has been pressed.
|
void | updateSubmitButtonEnablement()
Update the OK button enablement.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EDITOR_ID
public static final java.lang.String EDITOR_PAGES_ID
public static final java.lang.String EDITOR_PAGES_NO_COMMENTS_ID
public static final java.lang.String EDITOR_PAGES_HISTORY_ID
public static final java.lang.String MAX_THRESHOLD_PER_PAGE
public void addLineItem(Product product)
The OrderEditor implementation checks the order is editable. If order is editable then this method continues with locating the OrderItemsConfigurablePage, then integrates the current line item to the list of items.
public void replaceLineItems(Line[] originalLineItems, Product product)
The QuoteEditor implementation checks if the order is editable. If the order is editable then this method continues with locating the OrderItemsConfigurablePage, then replaces the input line items with the input product.
public java.lang.String getTitle()
public java.lang.String getTitleToolTip()
public org.eclipse.swt.graphics.Image getTitleImage()
protected OrderItemsConfigurablePage lookupOrderItemsPage()
public java.lang.String getEditorId()
public java.lang.String getEditorPagesId()
public void refreshSalesContainer()
The OrderEditor implementation of this framework method requests a calculate order to WebSphere Commerce issuing the action ID of com.ibm.commerce.telesales.calculateOrder to the TelesalesJobScheduler.
protected TelesalesProperties getCalculateOrderParameters(Order order)
protected void prepareOrder()
protected TelesalesProperties getPrepareOrderParameters()
public void closeSalesContainer()
public java.lang.String getContextId()
protected void submitOrderPressed()
Subclasses may override.
protected void editOrder()
This implementation calls the begin order request to put the order into EDT state.
Subclasses may override.
protected void beginOrder()
protected void orderToQuote()
Subclasses may override.
public void updateSubmitButtonEnablement()
public void cancelOrder()
public WidgetManagerInputProperties getWidgetManagerInputProperties()
public void initializeWidgetManagerInputProperties()