com.xpn.xwiki.plugin.charts
Class RadeoxHelper

java.lang.Object
  extended by com.xpn.xwiki.plugin.charts.RadeoxHelper

public class RadeoxHelper
extends java.lang.Object


Field Summary
private  XWikiContext context
           
private static XWikiRenderingEngine customEngine
           
private  XWikiDocument document
           
private  XWikiRenderer radeoxRenderer
           
private static java.lang.String TABLE
           
 
Constructor Summary
RadeoxHelper(XWikiDocument document, XWikiContext context)
           
 
Method Summary
static java.lang.String buildMacro(java.lang.String name, java.util.Map params)
           
private  org.radeox.macro.table.Table buildTable(java.lang.String content)
           
 java.lang.String getCell(org.radeox.macro.table.Table table, int columnIndex, int rowIndex)
           
 char getColumn(int columnIndex)
           
 java.lang.String getPreRadeoxContent()
           
 java.lang.String getRenderedTable(int idx)
           
 org.radeox.macro.table.Table getTable(int idx)
           
 int getTableColumnCount(org.radeox.macro.table.Table t)
           
 int getTableRowCount(org.radeox.macro.table.Table t)
           
 org.radeox.macro.table.Table[] getTables()
           
 java.lang.String getTableString(int idx)
           
 java.lang.String[] getTableStrings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customEngine

private static volatile XWikiRenderingEngine customEngine

radeoxRenderer

private XWikiRenderer radeoxRenderer

context

private XWikiContext context

document

private XWikiDocument document

TABLE

private static final java.lang.String TABLE
See Also:
Constant Field Values
Constructor Detail

RadeoxHelper

public RadeoxHelper(XWikiDocument document,
                    XWikiContext context)
             throws XWikiException
Throws:
XWikiException
Method Detail

getPreRadeoxContent

public java.lang.String getPreRadeoxContent()

getTableStrings

public java.lang.String[] getTableStrings()
Returns:
The string content of all the the tables in the document

getTables

public org.radeox.macro.table.Table[] getTables()
Returns:
All the radeox tables in the document

getTableString

public java.lang.String getTableString(int idx)
Returns:
The string content of the given table, or null, when no such table exists

getTable

public org.radeox.macro.table.Table getTable(int idx)
Returns:
The radeox table coresponding to the given index, or null, when no such table exists

getRenderedTable

public java.lang.String getRenderedTable(int idx)
Returns:
The HTML representation of the given table-content

buildTable

private org.radeox.macro.table.Table buildTable(java.lang.String content)

getTableColumnCount

public int getTableColumnCount(org.radeox.macro.table.Table t)

getTableRowCount

public int getTableRowCount(org.radeox.macro.table.Table t)

getCell

public java.lang.String getCell(org.radeox.macro.table.Table table,
                                int columnIndex,
                                int rowIndex)

buildMacro

public static java.lang.String buildMacro(java.lang.String name,
                                          java.util.Map params)

getColumn

public char getColumn(int columnIndex)


Copyright 2003 Ludovic Dubost