Class Del<T extends Del<T>>


public class Del<T extends Del<T>> extends PhrasingContentElement<T>
Represents an HTML <del> element for deleted text.

The Del element defines text that has been deleted from a document. Browsers typically render deleted text with a strikethrough. The cite and datetime attributes can provide additional context about the deletion.

Features:

  • Semantic markup for deleted content
  • Typically rendered with strikethrough
  • Optional cite attribute for explanation URL
  • Optional datetime for when text was deleted
  • Useful for tracking document changes

Usage:


 Paragraph p = new Paragraph();
 p.addChild(new Del("old text"));
 p.addChild(new Ins("new text"));
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • Del

      public Del()
      Constructs an empty <del> element.
    • Del

      public Del(String text)
      Constructs a <del> element with text content.
      Parameters:
      text - the deleted text
  • Method Details

    • setCite

      public final T setCite(String url)
      Sets a URL to a document explaining why the text was deleted.

      If the URL starts with "/" (absolute path within the application), the servlet context path will be automatically prepended.

      Parameters:
      url - the citation URL
    • setDateTime

      public final T setDateTime(String dateTime)
      Sets the date and time when the text was deleted.
      Parameters:
      dateTime - the date/time in a valid datetime format