Class Index | File Index

Classes


Class objTabs


Defined in: ObjectTabs.jsm.

Class Summary
Constructor Attributes Constructor Name and Description
 
Class responsible for showing and hiding object tabs.
Field Summary
Field Attributes Field Name and Description
<static>  
objTabs.currentElement
Document element the object tab is currently being displayed for.
<static>  
Parameters for _showTab, to be called once initialization is complete.
<static>  
objTabs.HIDE_DELAY
Number of milliseconds to wait until hiding tab after the mouse moves away.
<static>  
objTabs.hideTargetTime
Used when hideTimer is running, time when the tab should be hidden.
<static>  
objTabs.hideTimer
Timer used to delay hiding of the object tab.
<static>  
objTabs.initialized
Flag used to trigger object tabs initialization first time object tabs are used.
<static>  
objTabs.initializing
Will be set to true while initialization is in progress.
<static>  
Randomly generated class to be used for invisible object tabs.
<static>  
Randomly generated class to be used for visible object tabs at the bottom of the object.
<static>  
Randomly generated class to be used for visible object tabs on top of object.
<static>  
objTabs.objtabElement
Panel element currently used as object tab.
<static>  
objTabs.positionTimer
Timer used to update position of the object tab.
<static>  
Time of previous position update.
<static>  
objTabs.windowListeners
Windows that the window event handler is currently registered for.
Method Summary
Method Attributes Method Name and Description
<private> <static>  
objTabs._getElementPosition(element)
Calculates element's position relative to the top frame and considering clipping due to scrolling.
<private> <static>  
objTabs._hideTab()
Hides the tab element.
<private> <static>  
objTabs._initCSS()
Initializes object tabs (generates random classes and registers stylesheet).
<private> <static>  
objTabs._positionTab()
Updates position of the tab element.
<private> <static>  
objTabs._showTab(hooks, element, data)
Makes the tab element visible.
<static>  
objTabs.doBlock()
<static>  
objTabs.getHooksForElement(element)
Looks up the chrome window containing an element and returns abp-hooks element for this window if any.
<static>  
objTabs.hideTabFor(element)
Called to hide object tab for an element (actual hiding happens delayed).
<static>  
objTabs.observe(subject, topic, data)
Called whenever a timer fires.
<static>  
objTabs.showTabFor(element)
Called to show object tab for an element.
Class Detail
objTabs()
Class responsible for showing and hiding object tabs.
Field Detail
<static> {Element} objTabs.currentElement
Document element the object tab is currently being displayed for.

<static> objTabs.delayedShowParams
Parameters for _showTab, to be called once initialization is complete.

<static> {Integer} objTabs.HIDE_DELAY
Number of milliseconds to wait until hiding tab after the mouse moves away.

<static> {Integer} objTabs.hideTargetTime
Used when hideTimer is running, time when the tab should be hidden.

<static> {nsITimer} objTabs.hideTimer
Timer used to delay hiding of the object tab.

<static> {Boolean} objTabs.initialized
Flag used to trigger object tabs initialization first time object tabs are used.

<static> {Boolean} objTabs.initializing
Will be set to true while initialization is in progress.

<static> {String} objTabs.objTabClassHidden
Randomly generated class to be used for invisible object tabs.

<static> {String} objTabs.objTabClassVisibleBottom
Randomly generated class to be used for visible object tabs at the bottom of the object.

<static> {String} objTabs.objTabClassVisibleTop
Randomly generated class to be used for visible object tabs on top of object.

<static> {Element} objTabs.objtabElement
Panel element currently used as object tab.

<static> {nsITimer} objTabs.positionTimer
Timer used to update position of the object tab.

<static> {Integer} objTabs.prevPositionUpdate
Time of previous position update.

<static> {Array of Window} objTabs.windowListeners
Windows that the window event handler is currently registered for.
Method Detail
<private> <static> {left: Number|top: Number|right: Number|bottom: Number} objTabs._getElementPosition(element)
Calculates element's position relative to the top frame and considering clipping due to scrolling.
Parameters:
{Element} element
Returns:
{left: Number|top: Number|right: Number|bottom: Number}

<private> <static> objTabs._hideTab()
Hides the tab element.

<private> <static> objTabs._initCSS()
Initializes object tabs (generates random classes and registers stylesheet).

<private> <static> objTabs._positionTab()
Updates position of the tab element.

<private> <static> objTabs._showTab(hooks, element, data)
Makes the tab element visible.
Parameters:
{Element} hooks
{Element} element
{RequestEntry} data

<static> objTabs.doBlock()

<static> {Element} objTabs.getHooksForElement(element)
Looks up the chrome window containing an element and returns abp-hooks element for this window if any.
Parameters:
{Element} element

<static> objTabs.hideTabFor(element)
Called to hide object tab for an element (actual hiding happens delayed).
Parameters:
{Element} element

<static> objTabs.observe(subject, topic, data)
Called whenever a timer fires.
Parameters:
{nsISupport} subject
{String} topic
{String} data

<static> objTabs.showTabFor(element)
Called to show object tab for an element.
Parameters:
{Element} element

Documentation generated by JsDoc Toolkit 2.3.2 on Wed May 09 2012 10:50:20 GMT+0000 (UTC)