EndElement() public method

public EndElement ( String tag ) : void
tag String
return void
Exemplo n.º 1
0
 /**
  * @throws DocumentException
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
  */
 public void StartElement(HTMLWorker worker, String tag, IDictionary <String, String> attrs)
 {
     worker.CarriageReturn();
     if (worker.IsPendingTR())
     {
         worker.EndElement(tag);
     }
     worker.SetSkipText(true);
     worker.SetPendingTR(true);
     worker.UpdateChain(tag, attrs);
 }
Exemplo n.º 2
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#endElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
  */
 public void EndElement(HTMLWorker worker, String tag)
 {
     worker.CarriageReturn();
     if (worker.IsPendingLI())
     {
         worker.EndElement(HtmlTags.LI);
     }
     worker.SetSkipText(false);
     worker.UpdateChain(tag);
     worker.ProcessList();
 }
Exemplo n.º 3
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
  */
 public void StartElement(HTMLWorker worker, String tag, IDictionary <String, String> attrs)
 {
     worker.CarriageReturn();
     if (worker.IsPendingLI())
     {
         worker.EndElement(HtmlTags.LI);
     }
     worker.SetSkipText(true);
     worker.UpdateChain(tag, attrs);;
     worker.PushToStack(worker.CreateList(tag));
 }
Exemplo n.º 4
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#endElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
  */
 public void EndElement(HTMLWorker worker, String tag)
 {
     worker.CarriageReturn();
     if (worker.IsPendingTD())
     {
         worker.EndElement(HtmlTags.TD);
     }
     worker.SetPendingTR(false);
     worker.UpdateChain(tag);
     worker.ProcessRow();
     worker.SetSkipText(true);
 }
Exemplo n.º 5
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#endElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
  */
 public void EndElement(HTMLWorker worker, String tag)
 {
     worker.CarriageReturn();
     if (worker.IsPendingTR())
     {
         worker.EndElement(HtmlTags.TR);
     }
     worker.UpdateChain(tag);
     worker.ProcessTable();
     worker.PopTableState();
     worker.SetSkipText(false);
 }
Exemplo n.º 6
0
 /**
  * @throws DocumentException
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
  */
 virtual public void StartElement(HTMLWorker worker, String tag, IDictionary <String, String> attrs)
 {
     worker.CarriageReturn();
     if (worker.IsPendingTD())
     {
         worker.EndElement(tag);
     }
     worker.SetSkipText(false);
     worker.SetPendingTD(true);
     worker.UpdateChain(HtmlTags.TD, attrs);
     worker.PushToStack(worker.CreateCell(tag));
 }