info.bliki.wiki.filter
Class WPCell

java.lang.Object
  extended by info.bliki.wiki.filter.WPCell

public class WPCell
extends java.lang.Object

Represents a single cell in a wiki table (i.e. table syntax bordered by {| ..... |} ). See: Help - Table


Field Summary
static int ALIGN_CENTER
           
static int ALIGN_JUSTIFY
           
static int ALIGN_LEFT
           
static int ALIGN_NOT_SET
           
static int ALIGN_RIGHT
           
static int CAPTION
          The >caption< tag should be used
static int DEFAULT
          The >td< tag should be used
static int TH
          The >th< tag should be used
static int UNDEFINED
          No table cell tag specified in the wiki table
 
Constructor Summary
WPCell(int start)
           
 
Method Summary
 void createTagStack(WPTable parent, java.lang.String src, IWikiModel wikiModel, int endPos)
          Create the internal TagNodes stack for a single table cell
 int getAlign()
           
 int getEndPos()
           
 java.util.Map<java.lang.String,java.lang.String> getNodeAttributes()
           
 int getStartPos()
           
 TagStack getTagStack()
           
 int getType()
           
 void renderHTML(ITextConverter converter, java.lang.Appendable buf, IWikiModel wikiModel)
           
 void renderPlainText(ITextConverter converter, java.lang.Appendable buf, IWikiModel wikiModel)
           
 void setStartPos(int startPos)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIGN_NOT_SET

public static final int ALIGN_NOT_SET
See Also:
Constant Field Values

ALIGN_LEFT

public static final int ALIGN_LEFT
See Also:
Constant Field Values

ALIGN_RIGHT

public static final int ALIGN_RIGHT
See Also:
Constant Field Values

ALIGN_CENTER

public static final int ALIGN_CENTER
See Also:
Constant Field Values

ALIGN_JUSTIFY

public static final int ALIGN_JUSTIFY
See Also:
Constant Field Values

DEFAULT

public static final int DEFAULT
The >td< tag should be used

See Also:
Constant Field Values

TH

public static final int TH
The >th< tag should be used

See Also:
Constant Field Values

CAPTION

public static final int CAPTION
The >caption< tag should be used

See Also:
Constant Field Values

UNDEFINED

public static final int UNDEFINED
No table cell tag specified in the wiki table

See Also:
Constant Field Values
Constructor Detail

WPCell

public WPCell(int start)
Method Detail

getEndPos

public int getEndPos()
Returns:
Returns the endPos.

createTagStack

public void createTagStack(WPTable parent,
                           java.lang.String src,
                           IWikiModel wikiModel,
                           int endPos)
Create the internal TagNodes stack for a single table cell

Parameters:
endPos - The endPos to set.

getStartPos

public int getStartPos()
Returns:
Returns the startPos.

setStartPos

public void setStartPos(int startPos)
Parameters:
startPos - The startPos to set.

renderHTML

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

renderPlainText

public void renderPlainText(ITextConverter converter,
                            java.lang.Appendable buf,
                            IWikiModel wikiModel)
                     throws java.io.IOException
Throws:
java.io.IOException

getType

public int getType()
Returns:
Returns the type.

getAlign

public int getAlign()

setType

public void setType(int type)
Parameters:
type - The type to set.

getTagStack

public TagStack getTagStack()

getNodeAttributes

public java.util.Map<java.lang.String,java.lang.String> getNodeAttributes()


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.