Package net.sf.jpluck.plucker.parsing.html

Source Code of net.sf.jpluck.plucker.parsing.html.ParagraphHandler

package net.sf.jpluck.plucker.parsing.html;

import net.sf.jpluck.plucker.Paragraph;


public class ParagraphHandler implements TagHandler, Alignable {
  public void start(HTMLSerializer ser, StyledElement elem) {
    Paragraph p = ser.addParagraph();
    String id = elem.getAttributes().getValue("id");
    if (id != null) {
      p.addAnchor(id);
    }
  }
 
  public void end(HTMLSerializer ser, StyledElement elem) {
    ser.addParagraph();
  }
}
TOP

Related Classes of net.sf.jpluck.plucker.parsing.html.ParagraphHandler

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.