Package com.smartgwt.client.util
Class SyntaxHiliter
java.lang.Object
com.smartgwt.client.core.BaseClass
com.smartgwt.client.util.SyntaxHiliter
- All Implemented Interfaces:
- HasHandlers
- Direct Known Subclasses:
- JSSyntaxHiliter,- XMLSyntaxHiliter
Abstract base class for regular expression-based source code colorizer. 
 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.
- 
Field SummaryFields inherited from class com.smartgwt.client.core.BaseClassconfig, configOnly, factoryCreated, factoryProperties, id, scClassName
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate()getJsObj()static SyntaxHilitergetOrCreateRef(JavaScriptObject jsObj) Highlights the passed in source by applying span style elements to matched tokens and returns it as a string.booleanvoidMethods inherited from class com.smartgwt.client.core.BaseClassaddDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, 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, setConfigOnly, setFactoryCreated, setID, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
- 
Constructor Details- 
SyntaxHiliterpublic SyntaxHiliter()
- 
SyntaxHiliter
 
- 
- 
Method Details- 
getOrCreateRef
- 
setJavaScriptObject- Overrides:
- setJavaScriptObjectin class- BaseClass
 
- 
create
- 
isCreatedpublic boolean isCreated()
- 
getJsObj
- 
getOrCreateJsObj- Overrides:
- getOrCreateJsObjin class- BaseClass
 
- 
hiliteHighlights the passed in source by applying span style elements to matched tokens and returns it as a string.- Parameters:
- source- the source to be colorized
- Returns:
- the marked-up source as HTML
 
 
-