public class QuoteEditor 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
Quote Editor ID.
|
static java.lang.String | EDITOR_PAGES_ID
Quote Editor pages ID.
|
static java.lang.String | MAX_THRESHOLD_PER_PAGE
Property name to define value for maximum number of records displayed per page for quote editor pages.
|
Constructor and Description |
---|
QuoteEditor() |
Modifier and Type | Method and Description |
---|---|
void | addLineItem(Product product)
Adds an item to the quote.
|
protected void | cancelQuote()
Notifies that the Cancel Quote button of this page has been pressed.
|
void | cancelQuotePressed()
Notifies that the Cancel Quote button of this page has been pressed.
|
void | closeSalesContainer()
This method invokes the RemoveQuoteAction action.
|
void | createOrderButtonPressed()
Notifies that the Create quote button of this page has been pressed.This method is a wrapper to increase the visibility of create order pressed to abstract pages.
|
protected void | createOrderPressed()
Notifies that the Create quote button of this page has been pressed.
|
protected TelesalesProperties | getCancelQuoteParameters()
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 | getFindQuoteParameters(java.lang.String quoteId)
Deprecated.
Do not use this method for any customization, rather use action class.
|
protected TelesalesProperties | getPrepareQuoteParameters()
Deprecated.
Do not use this method for any customization, rather use action class.
|
TelesalesProperties | getSaveQuoteParameters()
Deprecated.
Do not use this method for any customization, rather use action class.
|
java.lang.String | getTitle()
Gets the title.
|
org.eclipse.swt.graphics.Image | getTitleImage()
Gets the image for the title area.
|
WidgetManagerInputProperties | getWidgetManagerInputProperties()
This method gets the widget manager input properties.
|
void | initializeWidgetManagerInputProperties()
This method initializes the widget manager input properties.
|
boolean | isEditable()
Returns whether the quote is in an editable state.
|
protected QuoteItemsConfigurablePage | lookupQuoteItemsPage()
Returns the quote items page if found.
|
protected void | prepareQuote()
Initiates the "com.ibm.commerce.telesales.prepareQuote" request.
|
void | refreshSalesContainer()
Requests that the quote editor input be refreshed from the server.
|
void | replaceLineItems(Line[] originalLineItems, Product product)
Replaces items in the order.
|
void | saveQuote()
Initiates the "com.ibm.commerce.telesales.saveQuote" request.
|
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 MAX_THRESHOLD_PER_PAGE
public org.eclipse.swt.graphics.Image getTitleImage()
public java.lang.String getTitle()
public boolean isEditable()
public java.lang.String getEditorId()
public java.lang.String getEditorPagesId()
public void addLineItem(Product product)
The QuoteEditor implementation checks the quote is editable. If the status is in edit mode, this method continues with locating the QuoteItemsConfigurablePage, then integrates the current line item before setting the new item.
public void replaceLineItems(Line[] originalLineItems, Product product)
The QuoteEditor implementation checks the order is editable. If the status is in an edit mode, this method continues with locating the QuoteItemsConfigurablePage, then integrates the current item before setting the new item.
protected QuoteItemsConfigurablePage lookupQuoteItemsPage()
protected void prepareQuote()
protected TelesalesProperties getPrepareQuoteParameters()
public void refreshSalesContainer()
The QuoteEditor implementation of this framework method requests a find quote to WebSphere Commerce issuing the action ID of com.ibm.commerce.telesales.findQuote/code> to the TelesalesJobScheduler.
protected TelesalesProperties getFindQuoteParameters(java.lang.String quoteId)
public void closeSalesContainer()
public void saveQuote()
public TelesalesProperties getSaveQuoteParameters()
public java.lang.String getContextId()
protected void cancelQuote()
Subclasses may override.
public void cancelQuotePressed()
Subclasses may override.
protected TelesalesProperties getCancelQuoteParameters()
protected void createOrderPressed()
Subclasses may override.
public void createOrderButtonPressed()
Subclasses may override.
public WidgetManagerInputProperties getWidgetManagerInputProperties()
public void initializeWidgetManagerInputProperties()