Class Index | File Index

Classes


Class RXBuild.UI.HtmlResultTreeViewer


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_matcher_tree.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a new instance of RXBuild.UI.HtmlResultTreeViewer (which inherits RXBuild.Engine.ResultListener)
Field Summary
Field Attributes Field Name and Description
 
The DOM element that holds the results for display
Method Summary
Method Attributes Method Name and Description
 
Event handler for the yahoo tree labelClick event
 
finished(regexp, inputText, matchCount, error)
Called when matching is over.
 
foundMatch(regexp, inputText, matchIndex, matchItem)
Called once for each match.
 
startMatch(regexp, inputText)
Called when a new match session has started
 
updateRegExp(regex, input)
Updates the view to reflect the provided regular expression and input
Class Detail
RXBuild.UI.HtmlResultTreeViewer(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
clickedOnNode(node)
Event handler for the yahoo tree labelClick event
Parameters:
node

finished(regexp, inputText, matchCount, error)
Called when matching is over.
Parameters:
{RXBuild.RegExp} regexp
The pattern that was run
{String} inputText
The input text against which to match
{Integer} matchCount
The number of matches (until aborting), or -1 if an error occured.
{String} error
If an error occured, the error object, otherwise, null

{Boolean} foundMatch(regexp, inputText, matchIndex, matchItem)
Called once for each match.
Parameters:
{RXBuild.RegExp} regexp
The pattern that is running
{String} inputText
The input text against which to match
{Number} matchIndex
The 0-based index of this match
{object} matchItem
A single match description
Returns:
{Boolean} True to continue matching, false to abort.

startMatch(regexp, inputText)
Called when a new match session has started
Parameters:
{RXBuild.RegExp} regexp
The pattern that will be ran
{String} inputText
The input text against which to match

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

Documentation generated by JsDoc Toolkit 2.0.2 on Mon May 02 2016 20:27:57 GMT+0200 (CEST)