jcolibri.extensions.recommendation.casesDisplay
Class DisplayCasesMethod

java.lang.Object
  extended by jcolibri.extensions.recommendation.casesDisplay.DisplayCasesMethod

public class DisplayCasesMethod
extends java.lang.Object

Displays the cases in a panel with a "previous" and "next" buttons to move through the cases.
This method is useful when showing composed cases.
It allways shows an "Add to Basket" and a "Quit" buttons. Optionally it shows an "Edit Query" button for conversational recommenders (not useful in one-shot recommenders).
The methods of this class return an UserChoice object.

Version:
1.0
Author:
Juan A. Recio-Garcia, Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
See Also:
UserChoice

Constructor Summary
DisplayCasesMethod()
           
 
Method Summary
static UserChoice displayCases(java.util.Collection<CBRCase> cases)
          Shows the dialog without the "Edit Query" option
static UserChoice displayCases(java.util.Collection<CBRCase> cases, boolean editQueryEnabled)
          Shows the dialog and allows to choose if show the "Edit Query" option.
static UserChoice displayCasesWithEditOption(java.util.Collection<CBRCase> cases)
          Shows the dialog without the "Edit Query" option
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayCasesMethod

public DisplayCasesMethod()
Method Detail

displayCases

public static UserChoice displayCases(java.util.Collection<CBRCase> cases)
Shows the dialog without the "Edit Query" option

Parameters:
cases - to display
Returns:
UserChoice object

displayCasesWithEditOption

public static UserChoice displayCasesWithEditOption(java.util.Collection<CBRCase> cases)
Shows the dialog without the "Edit Query" option

Parameters:
cases - to display
Returns:
UserChoice object

displayCases

public static UserChoice displayCases(java.util.Collection<CBRCase> cases,
                                      boolean editQueryEnabled)
Shows the dialog and allows to choose if show the "Edit Query" option.

Parameters:
cases - to display.
editQueryEnabled - decides if show the "Edit Query" option.
Returns:
UserChoice object.

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es