Class ZmObjectHandler
Class Detail
ZmObjectHandler(typeName, className)
Creates the object handler.
Method Detail
clicked(obj, span, ev, context)
This method is called by the Zimlet framework when the object is clicked.
{string}
getActiveClassName(obj, context, spanId)
Gets the active class name for a given object.
{string}
getClassName(obj, context, spanId)
Gets the class name for a given object.
{string}
getHoveredClassName(obj, context, spanId)
Gets the hovered class name for the given object.
{string}
getToolTipText(obj, context)
Gets the handler tool tip text.
{string}
getTypeName()
Gets the type name.
hasToolTipText(obj, context)
Checks if the handler has tool tip text.
init(typeName, className)
This method is called by the Zimlet framework to initialize the object.
match(content, startIndex)
This method is used to match content for a zimlet. Zimlet implementations should
override this method. Usage should return a non-null result in the format of
String.match if text on the line matched the handler regular expression.
var result = handler.match(line); result[0] // should be matched string result.index // should be location within line match occurredHandlers can also set result.context which will be passed back to them during the various method calls (#getToolTipText, etc). Handlers should set regex.lastIndex to startIndex and then use regex.exec(content) . Handlers should
also use the "g" option when constructing their regex.
populateToolTip(obj, context)
Populates the handler tool tip text.
selected(obj, span, ev, context)
This method is called by the Zimlet framework when the object is selected.
{string}
toString()
Returns a string representation of the object.
|
||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:38 GMT-0400 (EDT)
|