info.bliki.wiki.filter
Class WPTable

java.lang.Object
  extended by org.htmlcleaner.TagToken
      extended by org.htmlcleaner.TagNode
          extended by info.bliki.wiki.tags.HTMLTag
              extended by info.bliki.wiki.tags.WPTag
                  extended by info.bliki.wiki.filter.WPTable
All Implemented Interfaces:
java.lang.Cloneable, BaseToken

public class WPTable
extends WPTag

Represents a wiki table (i.e. table syntax bordered by {| ..... |} ).


Field Summary
 
Fields inherited from class info.bliki.wiki.tags.HTMLTag
NEW_LINES
 
Constructor Summary
WPTable(java.util.ArrayList<WPRow> rows)
           
 
Method Summary
 boolean add(WPRow row)
           
 java.lang.Object clone()
           
 java.lang.Object get(int index)
           
 int getNumColumns()
           
 java.lang.String getParams()
           
 java.lang.String getParents()
          Get the allowed parent tags for this tag
 boolean isReduceTokenStack()
           
 void renderHTML(ITextConverter converter, java.lang.Appendable buf, IWikiModel wikiModel)
           
 void renderLaTeX(ITextConverter converter, java.lang.Appendable _out, IWikiModel model)
           
 void setParams(java.lang.String params)
           
 int size()
           
 
Methods inherited from class info.bliki.wiki.tags.WPTag
equals
 
Methods inherited from class info.bliki.wiki.tags.HTMLTag
appendAttributes, appendEscapedAttributes, appendUnescapedAttributes, getBodyString, renderHTMLWithoutTag, setTemplate
 
Methods inherited from class org.htmlcleaner.TagNode
addAttribute, addChild, addChildren, addItemForMoving, addObjectAttribute, getAttributes, getChildren, getItemsToMove, getObjectAttributes, getParent, isFormed, makeCopy, serialize, setFormed, setItemsToMove, setParent
 
Methods inherited from class org.htmlcleaner.TagToken
getName, getOriginalSource, hashCode, setName, setOriginalSource, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WPTable

public WPTable(java.util.ArrayList<WPRow> rows)
Method Detail

getParams

public java.lang.String getParams()
Returns:
Returns the params.

setParams

public void setParams(java.lang.String params)
Parameters:
params - The params to set.

add

public boolean add(WPRow row)
Parameters:
o -
Returns:

get

public java.lang.Object get(int index)
Parameters:
index -
Returns:

size

public int size()
Returns:

renderHTML

public void renderHTML(ITextConverter converter,
                       java.lang.Appendable buf,
                       IWikiModel wikiModel)
                throws java.io.IOException
Overrides:
renderHTML in class WPTag
Throws:
java.io.IOException

getNumColumns

public int getNumColumns()

renderLaTeX

public void renderLaTeX(ITextConverter converter,
                        java.lang.Appendable _out,
                        IWikiModel model)
                 throws java.io.IOException
Overrides:
renderLaTeX in class WPTag
Throws:
java.io.IOException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class TagNode
Throws:
java.lang.CloneNotSupportedException

isReduceTokenStack

public boolean isReduceTokenStack()
Overrides:
isReduceTokenStack in class WPTag

getParents

public java.lang.String getParents()
Description copied from class: TagToken
Get the allowed parent tags for this tag

Overrides:
getParents in class TagNode
Returns:
null if no parent tags are allowed