Class Index | File Index

Classes


Class gva.component.SearchForm


Extends .

Defined in: SearchForm.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Empties episode results from drop down.
 
handleClick(event)
Event handler for all clicks that collapses the component when clicking outside of it.
 
initialize($context)
 
Builds the drop down results container.
 
makeResult(episode)
Creates a DOM element for an episode result list item.
 
Event handler for when an episode link is clicked
 
onFormSubmit(event)
Event handler for when the search input is submitted.
 
Event handler for when the search input value changes.
 
onKeyUp(event)
Event handler for keyUp events while typing in the search input.
 
Event handler for when the reset button is clicked
 
onSearchBlur(event)
Event handler for when the search input is blurred.
 
Event handler for when the search input is focused.
 
Event handler for when a show link is clicked
 
toggleResultDisplay(display, skipIntro)
Toggles the display of each li element in the results list to block or none.
Class Detail
gva.component.SearchForm()
Method Detail
clearResults()
Empties episode results from drop down.

handleClick(event)
Event handler for all clicks that collapses the component when clicking outside of it.
Parameters:
{goog.events.Event} event
The event which triggered the handler.

initialize($context)
Parameters:
$context

initResults()
Builds the drop down results container.

{Element} makeResult(episode)
Creates a DOM element for an episode result list item.
Parameters:
{gva.vo.Episode} episode
The data for the result item.
Returns:
{Element} The element for the episode's entry in the results list.

onEpisodeClicked(event)
Event handler for when an episode link is clicked
Parameters:
{goog.events.Event} event
The event which triggered the handler.

onFormSubmit(event)
Event handler for when the search input is submitted.
Parameters:
{goog.events.Event} event
The event which triggered the handler.

onInputChange(event)
Event handler for when the search input value changes.
Parameters:
{goog.events.Event} event
The event which triggered the handler.

onKeyUp(event)
Event handler for keyUp events while typing in the search input.
Parameters:
{goog.events.Event} event
The event which triggered the handler.

onResetClicked(event)
Event handler for when the reset button is clicked
Parameters:
{goog.events.Event} event
The event which triggered the handler.

onSearchBlur(event)
Event handler for when the search input is blurred.
Parameters:
{goog.events.Event} event
The event which triggered the handler.

onSearchFocus(event)
Event handler for when the search input is focused.
Parameters:
{goog.events.Event} event
The event which triggered the handler.

onShowClicked(event)
Event handler for when a show link is clicked
Parameters:
{goog.events.Event} event
The event which triggered the handler.

toggleResultDisplay(display, skipIntro)
Toggles the display of each li element in the results list to block or none.
Parameters:
{Boolean} display
True to display block, false for none.
{Boolean} skipIntro
True to ignore the first li (which shows the num results).

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Dec 22 2011 17:41:22 GMT-0800 (PST)