com.ibm.commerce.pa.widget
Class SalesAssistantHistoryWidget

com.ibm.commerce.pa.widget.SalesAssistantHistoryWidget

public class SalesAssistantHistoryWidget

This class will render the Sales Assistant History as a table of previous questions and chosen answers.


Field Summary
protected  boolean reverseOrder
           
protected  java.lang.String title
           
 
Constructor Summary
SalesAssistantHistoryWidget()
          SalesAssistantHistoryWidget constructor.
 
Method Summary
 boolean getReverseOrder()
          Return whether to display the history with the most recent question first.
 java.lang.String getTitle()
          Return the title to use for the history table.
 void render(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Render the table.
 void renderQnA(ListDataBean qna)
          Render an individual question and the answer selected.
 void setReverseOrder(boolean newValue)
          Set whether the most recently answered question should be displayed first.
 void setTitle(java.lang.String newValue)
          Set the title to display for the history table.
 

Field Detail

reverseOrder

protected boolean reverseOrder

title

protected java.lang.String title
Constructor Detail

SalesAssistantHistoryWidget

public SalesAssistantHistoryWidget()
SalesAssistantHistoryWidget constructor.
Method Detail

getReverseOrder

public boolean getReverseOrder()
Return whether to display the history with the most recent question first.
Returns:
boolean

getTitle

public java.lang.String getTitle()
Return the title to use for the history table.
Returns:
java.lang.String

render

public void render(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
Render the table.

renderQnA

public void renderQnA(ListDataBean qna)
               throws java.io.IOException
Render an individual question and the answer selected. This method is called by the render method. It is not recommended that this method be called directly.
Parameters:
qna - com.ibm.commerce.beans.ListDataBean

setReverseOrder

public void setReverseOrder(boolean newValue)
Set whether the most recently answered question should be displayed first.
Parameters:
newValue - boolean

setTitle

public void setTitle(java.lang.String newValue)
Set the title to display for the history table.
Parameters:
newValue - java.lang.String