org.odlabs.wiquery.ui.autocomplete
Class AutocompleteSource

java.lang.Object
  extended by org.odlabs.wiquery.ui.autocomplete.AutocompleteSource
All Implemented Interfaces:
Serializable, IComplexOption

public class AutocompleteSource
extends Object
implements IComplexOption

$Id$

Bean for the source option into the Autocomplete component

Since:
1.1
Author:
Julien Roche
See Also:
Serialized Form

Constructor Summary
AutocompleteSource(ArrayItemOptions<? extends IListItemOption> array)
          Constructor
AutocompleteSource(JsScope jsScope)
          Constructor
AutocompleteSource(String string)
          Constructor
 
Method Summary
 ArrayItemOptions<? extends IListItemOption> getArray()
           
 CharSequence getJavascriptOption()
          Method retrieving the javascript representation of this complex option
 JsScope getJsScope()
           
 String getString()
           
 void setArray(ArrayItemOptions<? extends IListItemOption> array)
          Set the array param
 void setJsScope(JsScope jsScope)
          Set the scope param
 void setString(String string)
          Set the string param
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutocompleteSource

public AutocompleteSource(ArrayItemOptions<? extends IListItemOption> array)
Constructor

Parameters:
array - Array parameter

AutocompleteSource

public AutocompleteSource(JsScope jsScope)
Constructor

Parameters:
jsScope - Scope parameter

AutocompleteSource

public AutocompleteSource(String string)
Constructor

Parameters:
string - String parameter
Method Detail

getArray

public ArrayItemOptions<? extends IListItemOption> getArray()
Returns:
the array param

getJavascriptOption

public CharSequence getJavascriptOption()
Description copied from interface: IComplexOption
Method retrieving the javascript representation of this complex option

Specified by:
getJavascriptOption in interface IComplexOption
Returns:
the javascript

getJsScope

public JsScope getJsScope()
Returns:
the scope param

getString

public String getString()
Returns:
the string param

setArray

public void setArray(ArrayItemOptions<? extends IListItemOption> array)
Set the array param

Parameters:
array -

setJsScope

public void setJsScope(JsScope jsScope)
Set the scope param

Parameters:
jsScope -

setString

public void setString(String string)
Set the string param

Parameters:
string -


Copyright © 2012. All Rights Reserved.