Class Index | File Index

Classes


Class SweetDevRia.SuggestItemViewManager


Defined in: Suggest.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
This is the SuggestItemViewManager component class This class manages the relation between the items and their HTML render
Method Summary
Method Attributes Method Name and Description
<private>  
add(item, aId)
Add an association item/HTML
 
Return true if an item is contained in the manager : if it is displayed in HTML
 
getItem(itemId)
Return the item with this identifiant.
 
getItemAt(index)
Return the item displayed at a specified HTML index.
<private>  
Return the item associated with this tag a id
 
getItemIndex(itemId)
Return the index of one item
 
Return the HTML id view for a specified item
 
Return true if an item is disabled, else false
 
Return true if an item is hidden, else false
 
Return the number of associations of the view manager (the number of items currently displayed in HTML)
<private>  
Clean the associations item/HTML
Class Detail
SweetDevRia.SuggestItemViewManager()
This is the SuggestItemViewManager component class This class manages the relation between the items and their HTML render
Method Detail
<private> add(item, aId)
Add an association item/HTML
Parameters:
{SuggestItem} item
the item to associate
{String} aId
the HTML id to associate the item with

{boolean} containsItem(item)
Return true if an item is contained in the manager : if it is displayed in HTML
Parameters:
item
Returns:
true if an item is contained in the manager

{SuggestItem} getItem(itemId)
Return the item with this identifiant.
Parameters:
{String} itemId
identifiant of the searched item
Returns:
the item with this identifiant.

{SuggestItem} getItemAt(index)
Return the item displayed at a specified HTML index.
Parameters:
{int} index
the index to get
Returns:
the item displayed at a specified HTML index.

<private> getItemIdForA(aId)
Return the item associated with this tag a id
Parameters:
{String} aId
the tag a identifiant
Returns:
the item associated with this tag a id

getItemIndex(itemId)
Return the index of one item
Parameters:
itemId
Item identifiant to search for
Returns:
index of the searched item

{String} getViewForItem(item)
Return the HTML id view for a specified item
Parameters:
{SuggestItem} item
the item to get the view from.
Returns:
the HTML id view for a specified item

{Boolean} isDisabledItem(item)
Return true if an item is disabled, else false
Parameters:
{SuggestItem} item
Returns:
true if an item is disabled, else false

{Boolean} isHiddenItem(item)
Return true if an item is hidden, else false
Parameters:
{SuggestItem} item
Returns:
true if an item is hidden, else false

{int} length()
Return the number of associations of the view manager (the number of items currently displayed in HTML)
Returns:
the number of associations of the view manager

<private> reset()
Clean the associations item/HTML

Documentation generated by JsDoc Toolkit 2.0.0 on Thu Dec 02 2010 15:18:57 GMT+0100 (CET)