|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase org.kuali.rice.krad.uif.component.ComponentBase org.kuali.rice.krad.uif.widget.WidgetBase org.kuali.rice.krad.uif.widget.SyntaxHighlighter
public class SyntaxHighlighter
Widget that renders text syntax highlighted
The widget renders a div with a header. In the div the source code text will be added in pre tags with the specified plugin class that is needed for the plugin to alter the text.
Field Summary |
---|
Fields inherited from class org.kuali.rice.krad.uif.component.ComponentBase |
---|
templateOptions |
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
componentCode, namespaceCode |
Fields inherited from interface org.kuali.rice.krad.uif.component.Ordered |
---|
INITIAL_ORDER_VALUE |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
SyntaxHighlighter()
|
Method Summary | ||
---|---|---|
protected
|
copyProperties(T component)
Copies properties for copy() |
|
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through the lifecycle |
|
Header |
getHeader()
|
|
String |
getPluginCssClass()
The class that will be set on the pre tags |
|
String |
getSourceCode()
The text to render with syntax highlighting |
|
boolean |
isAllowCopy()
Indicates if the ZeroClipboard copy functionality must be added |
|
boolean |
isShowCopyConfirmation()
Indicates if a confirmation dialog must be shown after copy action |
|
void |
setAllowCopy(boolean allowCopy)
Setter for the allow copy flag |
|
void |
setHeader(Header header)
|
|
void |
setPluginCssClass(String pluginCssClass)
Setter for the plugin css class |
|
void |
setShowCopyConfirmation(boolean showCopyConfirmation)
Setter for the show copy confirmation dialog flag |
|
void |
setSourceCode(String sourceCode)
Setter for the source code text |
Methods inherited from class org.kuali.rice.krad.uif.widget.WidgetBase |
---|
getComponentTypeName |
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode |
Methods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement |
---|
checkMutable, copy, getId, initializePendingTasks, isMutable, performApplyModel, performFinalize, performInitialization, setId |
Constructor Detail |
---|
public SyntaxHighlighter()
Method Detail |
---|
public List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService
for the various lifecycle callbacks
getComponentsForLifecycle
in interface Component
getComponentsForLifecycle
in class ComponentBase
ComponentBase.getComponentsForLifecycle()
public Header getHeader()
public void setHeader(Header header)
public String getSourceCode()
public void setSourceCode(String sourceCode)
sourceCode
- public String getPluginCssClass()
The class is used by the prettify plugin to identify text to highlight and to specify type of highlighting.
public void setPluginCssClass(String pluginCssClass)
pluginCssClass
- public boolean isAllowCopy()
When copy is allowed a copy button will be shown when the mouse hovers over the syntax highlighter. This button will be hidden the otherwise to avoid obstructing some of the displayed code.
public void setAllowCopy(boolean allowCopy)
allowCopy
- public boolean isShowCopyConfirmation()
public void setShowCopyConfirmation(boolean showCopyConfirmation)
showCopyConfirmation
- protected <T> void copyProperties(T component)
DictionaryBeanBase
copyProperties
in class WidgetBase
component
- base beanDictionaryBeanBase.copyProperties(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |