|
Jive API (4.5.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RenderMacro
The RenderMacro interface provides the ability to transfor element(s) of a document. For example a "User" macro may transform the text inside an element to an link to users profile page.
Macros have 0 or more properties that can be configured by an administrator. Each property may control any aspect of how the macro works -- for example, a property named "color" could control which color to format text in. All properties are configurable through the standard JavaBeans conventions. You should specify exactly which properties can be controlled by an administrator by using theBeanInfo interface and JiveBeanInfo class described above.
JiveBeanInfo| Nested Class Summary | |
|---|---|
static class |
RenderMacro.Type
|
| Field Summary | |
|---|---|
static java.lang.String |
MACROS_SHOW_OBJECT_TITLES
|
| Method Summary | |
|---|---|
void |
execute(org.w3c.dom.Element element,
RenderContext renderContext)
Applies the filter to the passed in string and returns the filtered string. |
java.util.List<com.jivesoftware.community.renderer.macro.MacroParameter<?>> |
getAllowedParameters()
return a list of all parameters allowed by this macro |
java.lang.String |
getIcon()
returns the relative path of the icon image. |
java.util.List<com.jivesoftware.community.renderer.macro.MacroParameterSet> |
getMacroParameterSets()
Returns a list of all available default parameter implementations, if any |
RenderMacro.Type |
getMacroTag()
returns tag type |
int |
getOrder()
returns the order the macro should be run in. 0 should be "normal" |
java.lang.String |
getShortMacroName()
Returns the tag name of the macro. |
java.lang.String |
getUrl()
Returns the optional URL to open when adding this macro |
boolean |
isButton()
Returns true if the macro should be displayed as a button in the toolbar as opposed to the insert menu |
boolean |
isIncludeContainerAsUrlParam()
Should the container id and type be included in the url that is included in the macro's RTE menu item. |
boolean |
isIncludeJiveContentObjectAsUrlParam()
Should the content object id and type be included in the url that is included in the macro's RTE menu item. |
boolean |
isShowInRTE()
Returns true if the macro should be displayed and edited using the RTE editor |
boolean |
isShowSettings()
returns true if the macro's settings should be editable in the RTE |
boolean |
isSingleTagMacro()
Returns true is the macro has only a single tag such as {testMacro}, false if the macro should have both an opening and closing tag ({testMacro}text here{testMacro}) |
| Methods inherited from interface com.jivesoftware.community.renderer.RenderPlugin |
|---|
getName, getParameters, isEnabled, setEnabled, setParameters |
| Field Detail |
|---|
static final java.lang.String MACROS_SHOW_OBJECT_TITLES
| Method Detail |
|---|
java.lang.String getShortMacroName()
boolean isSingleTagMacro()
java.lang.String getUrl()
boolean isShowInRTE()
boolean isButton()
boolean isShowSettings()
RenderMacro.Type getMacroTag()
int getOrder()
getOrder in interface com.jivesoftware.community.renderer.RenderPluginjava.lang.String getIcon()
java.util.List<com.jivesoftware.community.renderer.macro.MacroParameter<?>> getAllowedParameters()
java.util.List<com.jivesoftware.community.renderer.macro.MacroParameterSet> getMacroParameterSets()
boolean isIncludeJiveContentObjectAsUrlParam()
boolean isIncludeContainerAsUrlParam()
void execute(org.w3c.dom.Element element,
RenderContext renderContext)
RenderStrategy denotes that links should not be filtered and the current filter does nothing but change text to
links, then the filter should just return the input string.RenderTarget that the filter should target the output towards.RenderedTextStore to store text snippets if no further rendering of the all or portions of the returned content
should not be performed.
element - the element to filter and which the filtered string will modifyrenderContext - the context the filter is being executed within
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||