org.wikimodel.wem.xml
Class WemTableTagNotifier

java.lang.Object
  extended by org.wikimodel.wem.xml.AbstractTagNotifier
      extended by org.wikimodel.wem.xml.WemTableTagNotifier
All Implemented Interfaces:
IWemListenerTable, ISaxConst

public class WemTableTagNotifier
extends AbstractTagNotifier
implements IWemListenerTable

Author:
kotelnikov

Field Summary
 
Fields inherited from class org.wikimodel.wem.xml.AbstractTagNotifier
EMPTY_MAP, fListener
 
Fields inherited from interface org.wikimodel.wem.xml.ISaxConst
DEFINITION_DESCRIPTION, DEFINITION_LIST, DEFINITION_TERM, DOCUMENT, EMPTY_LINES, EMPTY_LINES_SIZE, ESCAPE, EXTENSION_BLOCK, EXTENSION_INLINE, EXTENSION_NAME, FORMAT, HEADER, HEADER_LEVEL, HORIZONTAL_LINE, IMAGE, IMAGE_IMPLICIT, INFO_BLOCK, INFO_BLOCK_TYPE, LINE_BREAK, LIST_ITEM, LIST_ORDERED, LIST_UNORDERED, MACRO_BLOCK, MACRO_INLINE, MACRO_NAME, NEW_LINE, PARAGRAPH, PROPERTY_BLOCK, PROPERTY_DOC, PROPERTY_INLINE, PROPERTY_URL, QUOTATION, QUOTATION_LINE, REF_EXPLICIT, REF_IMPLICIT, SECTION, SECTION_CONTENT, SECTION_DOC_LEVEL, SECTION_HEADER_LEVEL, SECTION_LEVEL, STYLES, TABLE, TABLE_CAPTION, TABLE_CAPTION_PARAM, TABLE_CELL, TABLE_HEAD, TABLE_ROW, VERBATIM_BLOCK, VERBATIM_INLINE
 
Constructor Summary
WemTableTagNotifier(ITagListener listener)
           
 
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.
 
Methods inherited from class org.wikimodel.wem.xml.AbstractTagNotifier
newParamMap, tagParams, tagParams, tagParams, tagParams, userParams, userParams, userParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WemTableTagNotifier

public WemTableTagNotifier(ITagListener listener)
Parameters:
listener -
Method Detail

beginTable

public void beginTable(WikiParameters params)
Description copied from interface: IWemListenerTable
This method notifies about the beginning of a new table in the document.

Specified by:
beginTable in interface IWemListenerTable
Parameters:
params - table parameters
See Also:
IWemListenerTable.endTable(WikiParameters)

beginTableCell

public void beginTableCell(boolean tableHead,
                           WikiParameters params)
Description copied from interface: IWemListenerTable
This method is used to notify about the beginning of a new table cell.

Specified by:
beginTableCell in interface IWemListenerTable
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:
IWemListenerTable.endTableCell(boolean, WikiParameters)

beginTableRow

public void beginTableRow(WikiParameters params)
Description copied from interface: IWemListenerTable
This method is used to notify about the beginning of a new table row.

Specified by:
beginTableRow in interface IWemListenerTable
Parameters:
params - parameters of the row.
See Also:
IWemListenerTable.endTableRow(WikiParameters)

endTable

public void endTable(WikiParameters params)
Description copied from interface: IWemListenerTable
This method notifies about the end of a table in the document.

Specified by:
endTable in interface IWemListenerTable
Parameters:
params - table parameters
See Also:
IWemListenerTable.beginTable(WikiParameters)

endTableCell

public void endTableCell(boolean tableHead,
                         WikiParameters params)
Description copied from interface: IWemListenerTable
This method is used to notify about the end of a table cell.

Specified by:
endTableCell in interface IWemListenerTable
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:
IWemListenerTable.beginTableCell(boolean, WikiParameters)

endTableRow

public void endTableRow(WikiParameters params)
Description copied from interface: IWemListenerTable
This method is used to notify about the end of a table row.

Specified by:
endTableRow in interface IWemListenerTable
Parameters:
params - parameters of the row.
See Also:
IWemListenerTable.beginTableRow(WikiParameters)

onTableCaption

public void onTableCaption(String str)
Description copied from interface: IWemListenerTable
Notifies the table caption.

Specified by:
onTableCaption in interface IWemListenerTable
Parameters:
str - the content of the table caption


Copyright © 2005-2012. All Rights Reserved.