com.itmill.toolkit.ui
Class Select.OptionsStream

java.lang.Object
  extended by com.itmill.toolkit.ui.Select.OptionsStream
All Implemented Interfaces:
URIHandler
Enclosing class:
Select

protected class Select.OptionsStream
extends Object
implements URIHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.itmill.toolkit.terminal.URIHandler
URIHandler.ErrorEvent
 
Constructor Summary
Select.OptionsStream(Select select)
           
 
Method Summary
protected  void addToJSONArray(StringBuffer json, ArrayList values)
           
 DownloadStream createDownloadStream(int size, int first, String filter)
          Creates the DownloadStream for response.
 ArrayList filterContent(String key)
          Updates the visible items by given key.
protected  String getCurrentFilter()
           
protected  String getJSON(int size, int first, String filter)
           
 OptionFilter getOptionFilter()
           
 DownloadStream handleURI(URL context, String relativeUri)
          Handles the given relative URI.
protected  void setCurrentFilter(String currentFilter)
           
 void setOptionFilter(OptionFilter of2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Select.OptionsStream

public Select.OptionsStream(Select select)
Method Detail

getOptionFilter

public OptionFilter getOptionFilter()

setOptionFilter

public void setOptionFilter(OptionFilter of2)

handleURI

public DownloadStream handleURI(URL context,
                                String relativeUri)
Handles the given relative URI.

Specified by:
handleURI in interface URIHandler
Parameters:
context - the URl.
relativeUri - the relative uri.
Returns:
the download stream object.
See Also:
URIHandler.handleURI(java.net.URL, java.lang.String)

createDownloadStream

public DownloadStream createDownloadStream(int size,
                                           int first,
                                           String filter)
Creates the DownloadStream for response.

Parameters:
size - the Items to be return.
first -
filter -
Returns:
the new DownloadStream.

filterContent

public ArrayList filterContent(String key)
Updates the visible items by given key.

Parameters:
key - the key given to OptionFilter
Returns:
All item ids filtered by given key.

addToJSONArray

protected void addToJSONArray(StringBuffer json,
                              ArrayList values)

getJSON

protected String getJSON(int size,
                         int first,
                         String filter)

getCurrentFilter

protected String getCurrentFilter()

setCurrentFilter

protected void setCurrentFilter(String currentFilter)


Copyright © 2000-2008 IT Mill Ltd. All Rights Reserved.