Class Index | File Index

Classes


Class SweetDevRia.MenuItem


Extends Menu, Menu.

Defined in: MenuItem.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
This is the MenuItem component class
Field Summary
Field Attributes Field Name and Description
<static>  
SweetDevRia.MenuItem.CHECK_EVENT
This event type is fired when check a menu item
<static>  
SweetDevRia.MenuItem.CLICK_EVENT
This event type is fired when click on menu item
<static>  
SweetDevRia.MenuItem.DISABLE_EVENT
This event type is fired when disable a menu item
<static>  
SweetDevRia.MenuItem.ENABLE_EVENT
This event type is fired when enalbe a menu item
<static>  
SweetDevRia.MenuItem.HIDE_EVENT
This event type is fired when hide a menu item
<static>  
SweetDevRia.MenuItem.IMAGE_EVENT
This event type is fired when change menu item image
<static>  
SweetDevRia.MenuItem.KEYDOWN_EVENT
This event type is fired when press key down on menu item
<static>  
SweetDevRia.MenuItem.SHOW_EVENT
This event type is fired when show a menu item
<static>  
SweetDevRia.MenuItem.UNCHECK_EVENT
This event type is fired when uncheck a menu item
Method Summary
Method Attributes Method Name and Description
<private>  
Action execute when the user click on an item
<private>  
Action execute when the user press a key down and the item is selected
 
This method is called after Action execute when the user click on an item To be overriden !!
 
This method is called after Action execute when the user press a key down on an item To be overriden !!
 
This method is called after Set the MenuItem checked property To be overriden !!
 
This method is called after Set the MenuItem disabled property To be overriden !!
 
This method is called after Set the MenuItem image property To be overriden !!
 
This method is called after Set the MenuItem visible property To be overriden !!
<private>  
This method is called before Action execute when the user click on an item To be overriden !!
<private>  
This method is called before Action execute when the user press a key down on an item To be overriden !!
 
This method is called before Set the MenuItem checked property To be overriden !!
 
This method is called before Set the MenuItem disabled property To be overriden !!
 
This method is called before Set the MenuItem image property To be overriden !!
 
This method is called before Set the MenuItem visible property To be overriden !!
 
Give the focus to the menuItem
 
setChecked(checked)
Set the MenuItem checked property
 
setDisabled(disabled)
Set the MenuItem disabled property
 
setImage(bool)
Set the MenuItem image property
<static>  
SweetDevRia.MenuItem.updateZindex(id)
**************************************************************************** Internet Explorer hover hack ****************************************************************************
 
Give the focus to the menuItem
Class Detail
SweetDevRia.MenuItem(id)
This is the MenuItem component class
Parameters:
{String} id
Identifiant of this MenuItem
Field Detail
<static> SweetDevRia.MenuItem.CHECK_EVENT
This event type is fired when check a menu item

<static> SweetDevRia.MenuItem.CLICK_EVENT
This event type is fired when click on menu item

<static> SweetDevRia.MenuItem.DISABLE_EVENT
This event type is fired when disable a menu item

<static> SweetDevRia.MenuItem.ENABLE_EVENT
This event type is fired when enalbe a menu item

<static> SweetDevRia.MenuItem.HIDE_EVENT
This event type is fired when hide a menu item

<static> SweetDevRia.MenuItem.IMAGE_EVENT
This event type is fired when change menu item image

<static> SweetDevRia.MenuItem.KEYDOWN_EVENT
This event type is fired when press key down on menu item

<static> SweetDevRia.MenuItem.SHOW_EVENT
This event type is fired when show a menu item

<static> SweetDevRia.MenuItem.UNCHECK_EVENT
This event type is fired when uncheck a menu item
Method Detail
<private> _onclick(e)
Action execute when the user click on an item
Parameters:
{Event} e
mouse left click event

<private> _onkeydown(e)
Action execute when the user press a key down and the item is selected
Parameters:
{Event} e
key down event

afterClick()
This method is called after Action execute when the user click on an item To be overriden !!

afterKeyDown()
This method is called after Action execute when the user press a key down on an item To be overriden !!

afterSetChecked()
This method is called after Set the MenuItem checked property To be overriden !!

afterSetDisabled()
This method is called after Set the MenuItem disabled property To be overriden !!

afterSetImage()
This method is called after Set the MenuItem image property To be overriden !!

afterSetVisible()
This method is called after Set the MenuItem visible property To be overriden !!

<private> {boolean} beforeClick(e)
This method is called before Action execute when the user click on an item To be overriden !!
Parameters:
{Event} e
mouse left click event
Returns:
True if this method can be called, else false.

<private> {boolean} beforeKeyDown(e)
This method is called before Action execute when the user press a key down on an item To be overriden !!
Parameters:
{Event} e
press a key down event
Returns:
True if this method can be called, else false.

{boolean} beforeSetChecked(checked)
This method is called before Set the MenuItem checked property To be overriden !!
Parameters:
{boolean} checked
the new checked property value
Returns:
True if this method can be called, else false.

{boolean} beforeSetDisabled(disabled)
This method is called before Set the MenuItem disabled property To be overriden !!
Parameters:
{boolean} disabled
the new disabled property value
Returns:
True if this method can be called, else false.

{boolean} beforeSetImage(bool)
This method is called before Set the MenuItem image property To be overriden !!
Parameters:
{boolean} bool
the new image property value
Returns:
True if this method can be called, else false.

{boolean} beforeSetVisible(visible)
This method is called before Set the MenuItem visible property To be overriden !!
Parameters:
{boolean} visible
the new visible property value
Returns:
True if this method can be called, else false.

focus()
Give the focus to the menuItem

setChecked(checked)
Set the MenuItem checked property
Parameters:
{boolean} checked
the new checked property value

setDisabled(disabled)
Set the MenuItem disabled property
Parameters:
{boolean} disabled
the new disabled property value

setImage(bool)
Set the MenuItem image property
Parameters:
{boolean} bool
the new image property value

<static> SweetDevRia.MenuItem.updateZindex(id)
**************************************************************************** Internet Explorer hover hack ****************************************************************************
Parameters:
id

valideItem(e)
Give the focus to the menuItem
Parameters:
e

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