public class SyntaxHiliter extends BaseClass
An instance of this class is never
instantiated. Instead, use one of the source-specific subclasses: XMLSyntaxHiliter or
JSSyntaxHiliter.
NOTE: This class exists only for use with the Smart GWT Feature Explorer and SmartGWT Showcases and cannot be used in any other environment.
config, factoryCreated, factoryProperties, id, scClassName| Constructor and Description |
|---|
SyntaxHiliter() |
SyntaxHiliter(JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
JavaScriptObject |
create() |
JavaScriptObject |
getJsObj() |
JavaScriptObject |
getOrCreateJsObj() |
static SyntaxHiliter |
getOrCreateRef(JavaScriptObject jsObj) |
java.lang.String |
hilite(java.lang.String source)
Highlights the passed in source by applying span style elements to matched tokens and returns it as a string.
|
boolean |
isCreated() |
void |
setJavaScriptObject(JavaScriptObject jsObj) |
applyFactoryProperties, asSGWTComponent, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getRef, getScClassName, getTestInstance, hasAutoAssignedID, internalSetID, internalSetID, isFactoryCreated, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setFactoryCreated, setID, setProperty, setProperty, setProperty, setProperty, setScClassNamepublic SyntaxHiliter()
public SyntaxHiliter(JavaScriptObject jsObj)
public static SyntaxHiliter getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
setJavaScriptObject in class BaseClasspublic JavaScriptObject create()
public JavaScriptObject getJsObj()
public JavaScriptObject getOrCreateJsObj()
getOrCreateJsObj in class BaseClasspublic java.lang.String hilite(java.lang.String source)
source - the source to be colorized