public class ProductComparisonChip extends AbstractChip
| Modifier and Type | Field and Description |
|---|---|
static String |
OPEN_PRODUCT |
static String |
SET_MASTER_PRODUCT |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
ProductComparisonChip(Chip parent,
List<Product> products,
ClassificationClass cclass) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeName(ClassAttributeAssignment assignment)
Returns the name for an attribute.
|
protected Collection<ClassAttributeAssignment> |
getClassAssigmentsForClass(ClassificationClass cclass)
Returns a collection of classattribute assignments for a specified classification class
|
Collection<ClassAttributeAssignment> |
getClassAssignments()
Returns all comparable class assignments for the local classification class
|
ClassificationClass |
getClassificationClass()
Returns the classification class
|
protected FeatureContainer |
getFeatureContainer(Product product)
Returns the feature container for a given product.
|
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
Product |
getMasterProduct() |
List<Product> |
getProducts()
Returns the list of the products
|
String |
getValue(ClassAttributeAssignment assignment,
Product product)
Returns the value for an attribute for a specified product as string.
|
boolean |
isMasterProduct(Product product)
Checks, if given product is the actual master product
|
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
void |
setMasterProduct(Product masterProduct) |
addEventListener, checkValid, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueName, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refresh, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final String OPEN_PRODUCT
public static final String SET_MASTER_PRODUCT
public ProductComparisonChip(Chip parent, List<Product> products, ClassificationClass cclass)
parent - the parent chipproducts - the products selected in the search resultcclass - the classification classpublic String getJSPURI()
Chippublic void processEvents(Map events)
Chippublic boolean isMasterProduct(Product product)
product - the product to compare with master productpublic Collection<ClassAttributeAssignment> getClassAssignments()
protected Collection<ClassAttributeAssignment> getClassAssigmentsForClass(ClassificationClass cclass)
cclass - the classification classpublic String getAttributeName(ClassAttributeAssignment assignment)
assignment - the class attribute assignment for the attributepublic String getValue(ClassAttributeAssignment assignment, Product product)
assignment - The attribute assignment for the attributeproduct - The product with the attributeprotected FeatureContainer getFeatureContainer(Product product)
product - the productpublic List<Product> getProducts()
public ClassificationClass getClassificationClass()
public Product getMasterProduct()
public void setMasterProduct(Product masterProduct)
masterProduct - the masterProduct to setCopyright © 2017 SAP SE. All Rights Reserved.