Class Index | File Index

Modules


Panels


Templates


Services (XPCOM)


Libraries


All Classes


Report Doc Issue | How To Comment Firebug Code

Class Firebug.SourceBoxDecorator

Defines the API for SourceBoxDecorator and provides the default implementation. Decorators are passed the source box on construction, called to create the HTML, and called whenever the user scrolls the view.

Defined in: sourceBox.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
Firebug.SourceBoxDecorator.decorate(sourceBox, compilationUnit)
called on a delay after the view port is updated, eg vertical scroll The sourceBox will contain lines from firstRenderedLine to lastRenderedLine The user will be able to see sourceBox.firstViewableLine to sourceBox.lastViewableLine
<static>  
Firebug.SourceBoxDecorator.getLineHTML(lineNo, lineNo)
call once as each line is being rendered.
<static>  
Firebug.SourceBoxDecorator.getLineId(sourceBox, lineNo)
<static>  
Firebug.SourceBoxDecorator.getUserVisibleLineNumber(lineNo, lineNo)
called once as each line is being rendered.
Class Detail
Firebug.SourceBoxDecorator(sourceBox)
Parameters:
sourceBox
Method Detail
<static> Firebug.SourceBoxDecorator.decorate(sourceBox, compilationUnit)
called on a delay after the view port is updated, eg vertical scroll The sourceBox will contain lines from firstRenderedLine to lastRenderedLine The user will be able to see sourceBox.firstViewableLine to sourceBox.lastViewableLine
Parameters:
sourceBox
compilationUnit

<static> Firebug.SourceBoxDecorator.getLineHTML(lineNo, lineNo)
call once as each line is being rendered.
Parameters:
lineNo
integer 1-maxLineNumbers
lineNo

<static> Firebug.SourceBoxDecorator.getLineId(sourceBox, lineNo)
Parameters:
sourceBox
lineNo
Returns:
a string unique to the sourcebox and line number, valid in getElementById()

<static> Firebug.SourceBoxDecorator.getUserVisibleLineNumber(lineNo, lineNo)
called once as each line is being rendered.
Parameters:
lineNo
integer 1-maxLineNumbers
lineNo

Documentation generated by JsDoc Toolkit 2.3.0 on Sat Jan 05 2013 23:10:39 GMT+0100 (CET)