public class ProductCompareEditor extends TelesalesConfigurableEditorPart
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
static java.lang.String | EDITOR_ID
A unique constant to indicate product compare editor ID.
|
static java.lang.String | PRODUCT_COMPARE_EDITOR_BUTTON_BAR_MANAGED_COMPOSITE_ID
A unique constant to indicate product compare editor button bar managed composite ID.
|
static java.lang.String | PRODUCT_COMPARE_EDITOR_MANAGED_COMPOSITE_ID
A unique constant to indicate product compare editor managed composite ID.
|
Constructor and Description |
---|
ProductCompareEditor() |
Modifier and Type | Method and Description |
---|---|
void | addNewProductToCompare()
This method called when the user selects the "More..." button.
|
void | addProductToOrder(Product product)
This method is called when the "Add To Order" button is pressed.
|
protected void | addProductToTargetObject(Product product, java.lang.Object targetObject)
This method adds the selected products to the selected Order or Quote editor.
|
void | cancelPressed()
This method gets called when the "Cancel" (or Close) button is pressed.
|
void | dispose()
This implementation ensures that the context is deactivated before calling the parent's dispose method.
|
protected SalesContainer[] | getApplicableSales()
This method returns the applicable Order and Quote objects from the current opened sales containers.
|
protected java.lang.String | getButtonBarManagedCompositeId()
This method returns the page content managed composite ID.
|
protected java.lang.String | getHelpContextId()
This method returns the help context ID so that Product Compare Editor Part has info pops.
|
protected java.lang.String | getHelpResource()
This method returns a help HREF for linking a Help action within the title area's toolbar.
|
protected boolean | getInventory(Product product)
This method refreshes the inventory of the given product by requesting GetInventoryBalanceRequest service.
|
protected TelesalesProperties | getInventoryBalanceParameters(Product product)
Deprecated.
Do not use this method for any customization, rather use action class.
|
java.lang.Object | getMember()
This method returns the member (either Customer or Operator) for whom this product compare editor was opened.
|
protected java.lang.String | getPageContentManagedCompositeId()
This method returns the page content managed composite ID.
|
java.lang.String | getPartName()
This method returns the part title.
|
ModelObjectList | getProducts()
This method returns the list of Products that needs to be compared.
|
protected TelesalesProperties | getRemoteImageParameters(Product product)
Deprecated.
Do not use this method for any customization, rather use action class
|
void | getThumbnailImages()
This method requests the thumbnail size images for the products being compared.
|
org.eclipse.swt.graphics.Image | getTitleImage()
This method returns the image to appear in the title of the editor.
|
WidgetManagerInputProperties | getWidgetManagerInputProperties()
This method gets the widget manager input properties.
|
void | init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput)
This method initializes this editor.
|
void | initializeWidgetManagerInputProperties()
This method initializes the widget manager input properties.
|
protected boolean | isApplicableOrder(Order order)
This method returns true if the Order in question is in NEW or EDIT state.
|
protected boolean | isApplicableQuote(Quote quote)
This method returns true if the Quote in question is in NEW state.
|
void | openFindProductDialog(Product product)
This method opens the Find Product Dialog for finding a replacement for the specified product.
|
void | openInventoryFor(Product product)
This method opens the Product Inventory Dialog.
|
void | openProductAttributesDialog(Product product)
This method opens the product attributes dialog if the given product has attributes.
|
protected void | processMultipleProductAddition(Product[] products)
This method gets called when multiple products are selected from the Find Product Dialog.
|
protected void | processMultipleProductReplacement(Product[] products, int replaceIndex)
This method gets called when one product is to be replaced with multiple other products.
|
protected void | processSingleProductAddition(Product product)
This method gets called to add a single product to the current comparison.
|
protected void | processSingleProductReplacement(Product product, int replaceIndex)
This method gets called to replace a product currently in the comparison with another one.
|
void | removeProduct(Product product)
This method is called to remove a given product from the comparison.
|
void | setMember(java.lang.Object member)
This method sets the member (either Customer or Operator) for whom this product compare editor was opened.
|
protected boolean | useButtonBar()
This method indicates that the product compare editor requires a button bar.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EDITOR_ID
public static final java.lang.String PRODUCT_COMPARE_EDITOR_MANAGED_COMPOSITE_ID
public static final java.lang.String PRODUCT_COMPARE_EDITOR_BUTTON_BAR_MANAGED_COMPOSITE_ID
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput) throws org.eclipse.ui.PartInitException
public void dispose()
public ModelObjectList getProducts()
protected boolean useButtonBar()
protected java.lang.String getHelpResource()
Help action will not added if this value is null.
Subclasses should override this method.
protected java.lang.String getHelpContextId()
public java.lang.String getPartName()
public org.eclipse.swt.graphics.Image getTitleImage()
public void addNewProductToCompare()
public void removeProduct(Product product)
public void openFindProductDialog(Product product)
protected void processSingleProductAddition(Product product)
protected void processSingleProductReplacement(Product product, int replaceIndex)
protected void processMultipleProductAddition(Product[] products)
protected void processMultipleProductReplacement(Product[] products, int replaceIndex)
public void openInventoryFor(Product product)
public void openProductAttributesDialog(Product product)
public void addProductToOrder(Product product)
protected SalesContainer[] getApplicableSales()
protected boolean isApplicableQuote(Quote quote)
protected boolean isApplicableOrder(Order order)
protected void addProductToTargetObject(Product product, java.lang.Object targetObject)
public void cancelPressed()
public java.lang.Object getMember()
public void setMember(java.lang.Object member)
protected boolean getInventory(Product product)
protected TelesalesProperties getInventoryBalanceParameters(Product product)
public void getThumbnailImages()
protected TelesalesProperties getRemoteImageParameters(Product product)
protected java.lang.String getPageContentManagedCompositeId()
protected java.lang.String getButtonBarManagedCompositeId()
public WidgetManagerInputProperties getWidgetManagerInputProperties()
public void initializeWidgetManagerInputProperties()