public class FindProductDialog
extends com.ibm.commerce.telesales.ui.impl.dialogs.find.ConfiguredFindDialog
The find product managed composites for the dialog area and button bar are defined in the com.ibm.commerce.telesales.ui.impl.find.product fragment.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CAT_ENTRY_ID
A unique constant to indicate entry id key (value "catEntryId").
|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
static java.lang.String | customerId_
This is a static string that stores the customer identifier.
|
static java.lang.String | FALSE
A unique constant to indicate false value (value "false").
|
static java.lang.String | GET_DETAILS
A unique constant to indicate details key (value "GetDetails").
|
static java.lang.String | GET_PROMOTIONS
A unique constant to indicate promotions key (value "GetPromotions").
|
static java.lang.String | storeID_
This is a static string that stores the store identifier.
|
static java.lang.String | TRUE
A unique constant to indicate true value (value "true").
|
Constructor and Description |
---|
FindProductDialog()
Default constructor to create a new find product dialog.
|
Modifier and Type | Method and Description |
---|---|
protected void | addCachedProductDetails(Product product)
This method caches the product details for this dialog.
|
protected void | clearProductDetailsCache()
This method clears the product details cache.
|
void | comparePressed()
This method is called when the Compare button is pressed.
|
protected void | configureShell(org.eclipse.swt.widgets.Shell newShell)
This method configures the given shell in preparation for opening this window in it.
|
protected org.eclipse.swt.widgets.Control | createDialogArea(org.eclipse.swt.widgets.Composite parent)
This method creates and returns the contents of the upper part of the dialog (above the button bar).
|
void | detailsPressed()
This method is called when the Details button is pressed.
|
protected java.lang.String | getButtonBarManagedCompositeId()
This method returns the button bar managed composite ID.
|
protected java.lang.String | getDialogAreaManagedCompositeId()
This method returns the dialog area managed composite ID.
|
protected java.lang.String | getDialogId()
This method returns the specific (find) dialog ID.
|
protected java.lang.String | getFindServiceRequestID()
This method returns the String ID of the service request that knows how to request the data that needs to be found.
|
protected java.lang.Object | getForUser()
This method returns the user for whom the Find Product is executed.
|
protected java.lang.String | getHelpContextId()
This method retrieves the help context ID.
|
protected boolean | getInventory(Product product)
This method refreshes the inventory of the given product by requesting GetInventoryBalanceRequest service.
|
protected TelesalesProperties | getInventoryBalanceParameters(Product product)
This method creates parameters to run the GetInventoryBalanceRequest request.
|
java.lang.Boolean | getNeedToProcessSelection()
This method indicates whether this find dialog has been set up to process some of its search result selection when the OK button is pressed.
|
protected java.util.ArrayList | getProductsWithDetails(java.util.ArrayList productList, boolean getPromotions)
This method opens the Product Details Dialog implementation.
|
protected TelesalesProperties | getProductsWithDetailsParameters(java.util.ArrayList productList, boolean getPromotions)
This method returns the parameters for the com.ibm.commerce.telesales.getSalesOrderWithDynaKitDetails action.
|
protected Product | getProductWithDetails(Product product, boolean getPromotions)
This method opens the Product Details Dialog implementation.
|
boolean | getSuppressOkAction()
This method indicates whether this find dialog has been set up to suppress the OK action.
|
void | inventoryPressed()
This method is called when the Inventory button is pressed.
|
protected boolean | isComparingProducts()
This method checks flag set for adding to a product comparison.
|
boolean | isShowLastSearchResult()
This method returns the value of the showLastSearchResult.
|
boolean | isShowLastSearchResult(java.lang.String storeId, java.lang.String customerId)
This method checks whether the provided store and customer ids are same as the store and user ids for which product compare window was launched.
|
void | okPressed()
The okPressed() method of the FindDialog parent is over-ridden.
|
protected void | openProductDetailsDialog(Product product)
This method opens the Product Details Dialog implementation.
|
protected boolean | removeProductDetails(Product product)
This method removes the specified product from cache.
|
protected void | setForUser(java.lang.Object forUser)
This method sets the user for whom the Find Product is executed.
|
void | setNeedToProcessSelection(java.lang.Boolean process)
This method sets whether this find dialog needs to process some of its search result selection when OK button is pressed.
|
void | setShowLastSearchResult(boolean bShowLastSearchResult)
This method sets the value of the showLastSearchResult.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String GET_PROMOTIONS
public static final java.lang.String GET_DETAILS
public static final java.lang.String CAT_ENTRY_ID
public static final java.lang.String TRUE
public static final java.lang.String FALSE
public static java.lang.String customerId_
public static java.lang.String storeID_
public FindProductDialog()
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
protected java.lang.String getHelpContextId()
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
protected java.lang.String getDialogId()
public void detailsPressed()
public void inventoryPressed()
protected void setForUser(java.lang.Object forUser)
protected java.lang.Object getForUser()
protected boolean getInventory(Product product)
protected TelesalesProperties getInventoryBalanceParameters(Product product)
public void comparePressed()
protected java.lang.String getFindServiceRequestID()
public void okPressed()
protected boolean isComparingProducts()
public java.lang.Boolean getNeedToProcessSelection()
public void setNeedToProcessSelection(java.lang.Boolean process)
protected void openProductDetailsDialog(Product product)
protected Product getProductWithDetails(Product product, boolean getPromotions)
protected java.util.ArrayList getProductsWithDetails(java.util.ArrayList productList, boolean getPromotions)
protected void clearProductDetailsCache()
protected void addCachedProductDetails(Product product)
protected boolean removeProductDetails(Product product)
protected TelesalesProperties getProductsWithDetailsParameters(java.util.ArrayList productList, boolean getPromotions)
public boolean isShowLastSearchResult()
public void setShowLastSearchResult(boolean bShowLastSearchResult)
protected java.lang.String getDialogAreaManagedCompositeId()
protected java.lang.String getButtonBarManagedCompositeId()
public boolean getSuppressOkAction()
public boolean isShowLastSearchResult(java.lang.String storeId, java.lang.String customerId)