org.xwiki.rendering.wikimodel
Interface IWemListenerTable

All Known Subinterfaces:
IWemListener
All Known Implementing Classes:
AgregatingWemListener, CompositeListener, ConfluenceExtendedWikiParser.EnhancedListener, EmptyWemListener, EventDumpListener, JspWikiSerializer, PrintInlineListener, PrintListener, PrintTextListener, TexSerializer, WemTableTagNotifier, WemTagNotifier, XWikiSerializer, XWikiSerializer2

public interface IWemListenerTable

This interface re-groups all methods used to notify about tables and their structural elements.

Since:
4.0M1
Version:
$Id: 2be8fee0722c291f9a00fc9689a3472e9cfe9198 $

Method Summary
 void beginTable(WikiParameters params)
          This method notifies about the beginning of a new table in the document.
 void beginTableCell(boolean tableHead, WikiParameters params)
          This method is used to notify about the beginning of a new table cell.
 void beginTableRow(WikiParameters params)
          This method is used to notify about the beginning of a new table row.
 void endTable(WikiParameters params)
          This method notifies about the end of a table in the document.
 void endTableCell(boolean tableHead, WikiParameters params)
          This method is used to notify about the end of a table cell.
 void endTableRow(WikiParameters params)
          This method is used to notify about the end of a table row.
 void onTableCaption(String str)
          Notifies the table caption.
 

Method Detail

beginTable

void beginTable(WikiParameters params)
This method notifies about the beginning of a new table in the document.

Parameters:
params - table parameters
See Also:
endTable(WikiParameters)

beginTableCell

void beginTableCell(boolean tableHead,
                    WikiParameters params)
This method is used to notify about the beginning of a new table cell.

Parameters:
tableHead - if this flag is true then the reported cell corresponds to the table head ("th" element); otherwise it should be considered as a normal table cell ("td" element).
params - parameters of this cell
See Also:
endTableCell(boolean, WikiParameters)

beginTableRow

void beginTableRow(WikiParameters params)
This method is used to notify about the beginning of a new table row.

Parameters:
params - parameters of the row.
See Also:
endTableRow(WikiParameters)

endTable

void endTable(WikiParameters params)
This method notifies about the end of a table in the document.

Parameters:
params - table parameters
See Also:
beginTable(WikiParameters)

endTableCell

void endTableCell(boolean tableHead,
                  WikiParameters params)
This method is used to notify about the end of a table cell.

Parameters:
tableHead - if this flag is true then the reported cell corresponds to the table head ("th" element); otherwise it should be considered as a normal table cell ("td" element).
params - parameters of this cell
See Also:
beginTableCell(boolean, WikiParameters)

endTableRow

void endTableRow(WikiParameters params)
This method is used to notify about the end of a table row.

Parameters:
params - parameters of the row.
See Also:
beginTableRow(WikiParameters)

onTableCaption

void onTableCaption(String str)
Notifies the table caption.

Parameters:
str - the content of the table caption


Copyright © 2004–2014 XWiki. All rights reserved.