com.ibm.commerce.pa.beans
Class CompareListDataBean

java.lang.Object
  |
  +--com.ibm.commerce.pa.beans.DynamicDataBeanImpl
        |
        +--com.ibm.commerce.pa.widget.beans.TableDataBean
              |
              +--com.ibm.commerce.pa.beans.CompareListDataBean
All Implemented Interfaces:
CommandDataBean, DataBean, DynamicDataBean, InputDataBean, java.io.Serializable

public class CompareListDataBean
extends TableDataBean

This class represents the data from a compare list that the customer is interested in

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
protected  java.lang.String duplicateMessage
           
protected  int limit
           
protected  java.lang.String limitMessage
           
protected  java.lang.String link
           
protected  java.lang.String listName
           
protected  java.lang.String target
           
 
Fields inherited from class com.ibm.commerce.pa.widget.beans.TableDataBean
columnNameCache, removeIrrelevant, table
 
Fields inherited from class com.ibm.commerce.pa.beans.DynamicDataBeanImpl
constraintList, defaultWidget, errorCode, errorMessage, interfaceName, metaData, pageName, parent, parentName, requestProperties, scriptName
 
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
 
Constructor Summary
CompareListDataBean()
          CompareListDataBean constructor comment.
 
Method Summary
 java.lang.String getDuplicateMessage()
          This method gets the message to be used when a duplicate product is added to the list
 int getLimit()
          This method gets the limit to the number of products allowed in the list.
 java.lang.String getLimitMessage()
          This method gets the message to be used when the limit is exceeded of the limit is greater than zero.
 java.lang.String getLink()
          This method gets the link.
 java.lang.String getListName()
          This method gets the name of the list in the session.
 java.lang.String getTarget()
          This method gets the target
 void setDuplicateMessage(java.lang.String msg)
          This method sets the message to be used when a duplicate product is added to the list
 void setLimit(int max)
          This method sets the limit to the number of products allowed in the list
 void setLimitMessage(java.lang.String msg)
          This method sets the message to be used when the limit is exceeded.
 void setLink(java.lang.String newValue)
          This method sets the link.
 void setListName(java.lang.String newValue)
          This method sets the list name to be used in the session.
 void setTarget(java.lang.String newValue)
          This method sets the target.
 
Methods inherited from class com.ibm.commerce.pa.widget.beans.TableDataBean
addColumn, addRow, copy, createColumnNameCache, getColumn, getColumnAt, getColumnCount, getColumnIndex, getElementAt, getRemoveIrrelevant, getRowAt, getRowCount, getRowElements, getTable, getTableHeaderPresentation, insertColumn, insertRow, removeIrrelevantColumns, setRemoveIrrelevant, setTable
 
Methods inherited from class com.ibm.commerce.pa.beans.DynamicDataBeanImpl
addConstraint, getCommandInterfaceName, getConstraintList, getDefaultWidget, getErrorCode, getErrorMessage, getMetaData, getPageName, getParent, getParentName, getRequestProperties, getScriptName, setCommandInterfaceName, setConstraintList, setDefaultWidget, setErrorCode, setErrorMessage, setMetaData, setPageName, setParent, setParentName, setRequestProperties, setScriptName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

duplicateMessage

protected java.lang.String duplicateMessage

limit

protected int limit

limitMessage

protected java.lang.String limitMessage

link

protected java.lang.String link

listName

protected java.lang.String listName

target

protected java.lang.String target
Constructor Detail

CompareListDataBean

public CompareListDataBean()
CompareListDataBean constructor comment.
Method Detail

getDuplicateMessage

public java.lang.String getDuplicateMessage()
This method gets the message to be used when a duplicate product is added to the list
Returns:
java.lang.String the message to use

getLimit

public int getLimit()
This method gets the limit to the number of products allowed in the list. A value of zero (0) indecates that the list is not limited.
Returns:
int the maximum number allowed in the list

getLimitMessage

public java.lang.String getLimitMessage()
This method gets the message to be used when the limit is exceeded of the limit is greater than zero.
Returns:
java.lang.String the message to be displayed.

getLink

public java.lang.String getLink()
This method gets the link.
Returns:
java.lang.String The link.

getListName

public java.lang.String getListName()
This method gets the name of the list in the session.
Returns:
java.lang.String The list name.

getTarget

public java.lang.String getTarget()
This method gets the target
Returns:
java.lang.String The target.

setDuplicateMessage

public void setDuplicateMessage(java.lang.String msg)
This method sets the message to be used when a duplicate product is added to the list
Parameters:
msg - java.lang.String

setLimit

public void setLimit(int max)
This method sets the limit to the number of products allowed in the list
Parameters:
max - int the maximum number of products for the list

setLimitMessage

public void setLimitMessage(java.lang.String msg)
This method sets the message to be used when the limit is exceeded.
Parameters:
msg - java.lang.String The message to be used.

setLink

public void setLink(java.lang.String newValue)
This method sets the link.
Parameters:
newValue - java.lang.String The link to be used.

setListName

public void setListName(java.lang.String newValue)
This method sets the list name to be used in the session.
Parameters:
newValue - java.lang.String The list name to be used.

setTarget

public void setTarget(java.lang.String newValue)
This method sets the target.
Parameters:
newValue - java.lang.String The target to be used.