| | |
| | | this.callbacks = callbacks; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public MenuResult<T> invoke(ConsoleApplication app) throws ClientException { |
| | | List<T> values = new ArrayList<T>(); |
| | | for (MenuCallback<T> callback : callbacks) { |
| | |
| | | this.nMaxTries = nMaxTries; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public MenuResult<T> run() throws ClientException { |
| | | // The validation call-back which will be used to determine the |
| | | // action call-back. |
| | |
| | | this.result = result; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public MenuResult<T> invoke(ConsoleApplication app) throws ClientException { |
| | | return result; |
| | | } |