org.bejug.javacareers.common.ajax
Class CompletionResult

java.lang.Object
  extended byorg.bejug.javacareers.common.ajax.CompletionResult

public class CompletionResult
extends java.lang.Object

Class which gathers completion results from event handlers

Author:
Tor Norbye, Bavo Bruylandt (Last modified by $Author: shally $) $Revision: 1.12 $ - $Date: 2005/12/20 15:36:46 $

Method Summary
 void addItem(java.lang.String item)
          Add the given String into the set of completion items returned to the browser.
 void addItems(java.util.Collection items)
          Add all the items in the given collection of Strings into the set of completion items returned to the browser.
 void addItems(java.lang.String[] items)
          Add all the items in the given String artray into the set of completion items returned to the browser.
 java.util.List getItems()
          Provide the results to other ajax textfield classes such that the results can be encoded and returned to the browser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addItem

public void addItem(java.lang.String item)
Add the given String into the set of completion items returned to the browser.

Parameters:
item - The item to be added to the completion result

addItems

public void addItems(java.lang.String[] items)
Add all the items in the given String artray into the set of completion items returned to the browser.

Parameters:
items - The item array to be added to the completion result

addItems

public void addItems(java.util.Collection items)
Add all the items in the given collection of Strings into the set of completion items returned to the browser.

Parameters:
items - The collection of Strings to be added

getItems

public java.util.List getItems()
Provide the results to other ajax textfield classes such that the results can be encoded and returned to the browser.

Returns:
A list of completion results.


Copyright © 2005-2006 BeJUG. All Rights Reserved.