public class WikiRenderingHints
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | REVISION | 
| Constructor and Description | 
|---|
| WikiRenderingHints()Creates a new WikiRenderingHints with the default values. | 
| WikiRenderingHints(java.lang.String css,
                  boolean isSpan)Creates a new WikiRenderingHints with the specified values | 
| WikiRenderingHints(java.lang.String css,
                  boolean isSpan,
                  java.lang.String baseURL)Creates a new WikiRenderingHints with the specified values | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | getAttribute(java.lang.String name)Get a rendering attribute. | 
| java.util.Map | getAttributeMap()Returns the attributeMap used to store extra rendering options. | 
| java.lang.String | getBaseUrl()Return the optionnal base URL used during rendering | 
| java.lang.String | getCss()Returns the css class(es) used during the rendering. | 
| boolean | isSpan()Returns whether a span or a div is used durint rendering. | 
| void | setAttribute(java.lang.String name,
            java.lang.Object value)Set a rendering attribute. | 
| void | setAttributeMap(java.util.Map attributeMap)Set the attributeMap used to store extra rendering options. | 
| void | setBaseUrl(java.lang.String baseURL)Set the base URL to use in all generated links. | 
| void | setCss(java.lang.String css)Set the css to use in the surrounding html div/span generated by the rendering. | 
| void | setSpan(boolean isSpan)Set whether a div or span should be used during the rendering. | 
public static final java.lang.String REVISION
public WikiRenderingHints()
public WikiRenderingHints(java.lang.String css,
                  boolean isSpan)
css - the name of the CSS class to useisSpan - if true generate a span instead of divpublic WikiRenderingHints(java.lang.String css,
                  boolean isSpan,
                  java.lang.String baseURL)
css - the name of the CSS class to useisSpan - if true generate a span instead of divbaseURL - if specified, this baseURL will be used to generate
        absolute link instead of the usual relative links. leave to null.public void setCss(java.lang.String css)
css - one or more css class.public java.lang.String getCss()
public void setSpan(boolean isSpan)
isSpan - true to use a span, false to use a div.public boolean isSpan()
public void setBaseUrl(java.lang.String baseURL)
baseURL - the base URL of the site, ending with a
        slash, such as http://mysite.com/mywebapp/public java.lang.String getBaseUrl()
public java.util.Map getAttributeMap()
public void setAttributeMap(java.util.Map attributeMap)
attributeMap - the attributeMap.public void setAttribute(java.lang.String name,
                java.lang.Object value)
name - the attribute's key.value - the attribute's value.public java.lang.Object getAttribute(java.lang.String name)
name - the attribute's name.Copyright © 2001-2010 Jalios SA. All Rights Reserved.