osdep.console
Class ConsoleChooser<T>

java.lang.Object
  extended by osdep.console.ConsoleChooser<T>

public class ConsoleChooser<T>
extends java.lang.Object

To let the user choose one element from a list of them using the console

Author:
SHZ Mar 17, 2008

Constructor Summary
ConsoleChooser(java.util.List<T> lstEntry, IChoiceDescription<T> description)
           
 
Method Summary
 T getChoice()
          Interacts with the user until he chooses one of the entries, which it returns
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleChooser

public ConsoleChooser(java.util.List<T> lstEntry,
                      IChoiceDescription<T> description)
Method Detail

getChoice

public T getChoice()
Interacts with the user until he chooses one of the entries, which it returns

Returns:
the entry object that has been chosen