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.
Constructor Attributes | Constructor Name and Description |
---|---|
Firebug.SourceBoxDecorator(sourceBox)
|
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.
|
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