public class ProductDetailsDialog extends ConfiguredTitleAreaDialog
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
Constructor and Description |
---|
ProductDetailsDialog()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | configureShell(org.eclipse.swt.widgets.Shell shell)
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).
|
protected java.lang.String | getButtonBarManagedCompositeId()
This method returns the dialog area managed composite ID.
|
protected java.lang.String | getDefaultMessage()
This method returns the default message for this dialog.
|
protected java.lang.String | getDialogAreaManagedCompositeId()
This method returns the button bar managed composite ID.
|
protected java.lang.String | getHelpContextId()
This method retrieves the help context ID.
|
protected org.eclipse.swt.graphics.Point | getInitialSize()
This method returns the initial size to use for this shell.
|
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 GetInventoryBalanceRequest request.
|
Product | getProduct()
This method returns the Product whose details are shown in this dialog.
|
protected TelesalesProperties | getRemoteImageParameters()
This method returns the parameters for the com.ibm.commerce.telesales.getRemoteImage request.
|
java.lang.Object | getResult()
This dialog does not return any objects.
|
void | getThumbnailImage()
This method makes an asynchronous request for the thumbnail.
|
void | inventoryPressed()
This method gets called when the inventory button is pressed.
|
void | okPressed()
This method gets called by the buttonPressed method.
|
void | setProduct(Product p)
This method set the current value of product.
|
void | viewImagePressed()
This method gets called when the view image button is pressed and launches the product image zoom dialog.
|
public static final java.lang.String COPYRIGHT
public ProductDetailsDialog()
protected java.lang.String getButtonBarManagedCompositeId()
protected java.lang.String getDialogAreaManagedCompositeId()
protected void configureShell(org.eclipse.swt.widgets.Shell shell)
protected org.eclipse.swt.graphics.Point getInitialSize()
protected java.lang.String getHelpContextId()
protected java.lang.String getDefaultMessage()
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
protected boolean getInventory(Product product)
protected TelesalesProperties getInventoryBalanceParameters(Product product)
public java.lang.Object getResult()
public void okPressed()
public void inventoryPressed()
public void viewImagePressed()
public Product getProduct()
public void setProduct(Product p)
public void getThumbnailImage()
protected TelesalesProperties getRemoteImageParameters()