Class RXBuild.UI.HtmlExplanationTreeViewer
Extends
RXBuild.Engine.ResultListener.
The RXBuild.UI.HtmlResultTreeViewer displays the results of matching a regular expression inline with the text
Defined in: ui_regex_viewer_explain_tree.js.
Constructor Attributes | Constructor Name and Description |
---|---|
RXBuild.UI.HtmlExplanationTreeViewer(container, id)
Creates a new instance of RXBuild.UI.HtmlResultTreeViewer (which inherits RXBuild.Engine.ResultListener)
|
Field Attributes | Field Name and Description |
---|---|
The DOM element that holds the results for display
|
Method Attributes | Method Name and Description |
---|---|
updateRegExp(regex, input)
Updates the view to reflect the provided regular expression and input
|
- Methods borrowed from class RXBuild.Engine.ResultListener:
- finished, foundMatch, startMatch
Class Detail
RXBuild.UI.HtmlExplanationTreeViewer(container, id)
Creates a new instance of RXBuild.UI.HtmlResultTreeViewer (which inherits RXBuild.Engine.ResultListener)
- Parameters:
- container
- id
Field Detail
{HTMLElement}
container
The DOM element that holds the results for display
Method Detail
updateRegExp(regex, input)
Updates the view to reflect the provided regular expression and input
- Parameters:
- {RXBuild.RegExp} regex
- The new pattern
- {String} input
- The sample input text in which to run the matches