ContentBox Core API 1.6.0

contentbox.model.content.renderers
Class WidgetRenderer

WEB-INF.cftags.component
        extended by contentbox.model.content.renderers.WidgetRenderer

public class WidgetRenderer
extends WEB-INF.cftags.component

A content renderer that transforms {{{}}} into widget executions

Property Summary
Type Property & Description Default Serializable Required
 any log


Attributes:
  • inject = logbox:logger:{this}
true false
 any widgetService


Attributes:
  • inject = id:widgetService@cb
true false
 
Method Summary
 any GETLOG()
          get:
 any GETWIDGETSERVICE()
          get:
 WidgetRenderer SETLOG(any log)
          set:
 WidgetRenderer SETWIDGETSERVICE(any widgetService)
          set:
 void cb_onContentRendering([any event], [struct interceptData])
          Execute on content translations for pages and blog entries
 void configure()
private void parseTagWidgets(any builder)
          Parses content to find
private void parseTripleMustacheWidgets(any builder)
          Parses content to find {{{
private any translateContent(any builder, [any content])
          Executes custom parsing rules on content
 
Methods inherited from class WEB-INF.cftags.component
None
 

Property Detail

log

any log

Attributes:
inject - logbox:logger:{this}
required - false
serializable - true
default -

widgetService

any widgetService

Attributes:
inject - id:widgetService@cb
required - false
serializable - true
default -

Method Detail

GETLOG

public any GETLOG()
get:


GETWIDGETSERVICE

public any GETWIDGETSERVICE()
get:


SETLOG

public WidgetRenderer SETLOG(any log)
set:

Parameters:
log

SETWIDGETSERVICE

public WidgetRenderer SETWIDGETSERVICE(any widgetService)
set:

Parameters:
widgetService

cb_onContentRendering

public void cb_onContentRendering([any event], [struct interceptData])
Execute on content translations for pages and blog entries

Parameters:
event
interceptData

configure

public void configure()


parseTagWidgets

private void parseTagWidgets(any builder)
Parses content to find ... tags, and renders the associated widget

Parameters:
builder - {java.lang.StringBuilder}

parseTripleMustacheWidgets

private void parseTripleMustacheWidgets(any builder)
Parses content to find {{{...}}} syntax, and renders the associated widget

Parameters:
builder - {java.lang.StringBuilder}

translateContent

private any translateContent(any builder, [any content])
Executes custom parsing rules on content

Parameters:
builder - {java.lang.StringBuilder}
content - {String}

ContentBox Core API 1.6.0