Class Index | File Index

Classes


Class gva.component.Subscriptions


Extends .

Defined in: Subscriptions.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
A list of grid items DOM elements
 
Monitors the viewport size so that the grid can flex.
Method Summary
Method Attributes Method Name and Description
 
addItem(item)
Creates a DOM element for an item and appends it to the grid
 
Binds event listeners
 
initialize($context)
 
Navigates to the next show item
 
Event handler for when a show's details button is clicked.
 
Event handler for when an item is clicked that brings to the spotlight.
 
onNavClick(event)
Event handler for when an pagination link is clicked
 
Event handler for when an item's remove button is clicked
 
Navigates to the previous show item
 
Refreshes the grid updating visible items.
 
Refreshes the subscription count based on the number of items stored.
 
Removes a show from the list.
 
resize(event)
Updates grid boundaries and refreshes the grid if necessary.
 
Toggles the subscription grid.
 
Refreshes the unwatched show count displayed for the given show.
Class Detail
gva.component.Subscriptions()
Field Detail
$shows
A list of grid items DOM elements

viewportMonitor
Monitors the viewport size so that the grid can flex.
Method Detail
addItem(item)
Creates a DOM element for an item and appends it to the grid
Parameters:
{gva.vo.Show} item
The data for the item to add.

addListeners()
Binds event listeners

initialize($context)
Parameters:
$context

nextShow()
Navigates to the next show item

onDetailsClicked(event)
Event handler for when a show's details button is clicked.
Parameters:
{goog.events.Event} event
The event which triggered the handler.

onItemClicked(event)
Event handler for when an item is clicked that brings to the spotlight.
Parameters:
{goog.events.Event} event
The event which triggered the handler.

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

onRemoveClicked(event)
Event handler for when an item's remove button is clicked
Parameters:
{goog.events.Event} event
The event which triggered the handler.

prevShow()
Navigates to the previous show item

refresh()
Refreshes the grid updating visible items.

refreshCount()
Refreshes the subscription count based on the number of items stored.

removeItem(id)
Removes a show from the list.
Parameters:
{number} id
The show id to remove.

resize(event)
Updates grid boundaries and refreshes the grid if necessary.
Parameters:
{goog.events.Event=} event
The event that triggered the resize.

toggleGrid()
Toggles the subscription grid.

updateUnwatchedCount(showID)
Refreshes the unwatched show count displayed for the given show.
Parameters:
{number} showID
The show/element id that needs an updated count.

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