Class ListItem

All Implemented Interfaces:
ParagraphContainer, ParagraphItemContainer, BlankLineContainer, Content
Direct Known Subclasses:
BulletListItem, DefinitionItem, DefinitionTerm, OrderedListItem, TaskListItem

public abstract class ListItem extends Block implements ParagraphItemContainer, BlankLineContainer, ParagraphContainer
  • Field Details

    • openingMarker

      protected BasedSequence openingMarker
    • markerSuffix

      protected BasedSequence markerSuffix
    • tight

      private boolean tight
    • hadBlankAfterItemParagraph

      private boolean hadBlankAfterItemParagraph
    • containsBlankLine

      private boolean containsBlankLine
    • priority

      private int priority
  • Constructor Details

  • Method Details

    • isOrderedItem

      public boolean isOrderedItem()
    • getAstExtra

      public void getAstExtra(@NotNull @NotNull StringBuilder out)
      Overrides:
      getAstExtra in class Node
    • getSegments

      @NotNull public @NotNull BasedSequence[] getSegments()
      Specified by:
      getSegments in class Node
    • canChangeMarker

      public boolean canChangeMarker()
    • getPriority

      public int getPriority()
    • setPriority

      public void setPriority(int priority)
    • getOpeningMarker

      public BasedSequence getOpeningMarker()
    • setOpeningMarker

      public void setOpeningMarker(BasedSequence openingMarker)
    • getMarkerSuffix

      public BasedSequence getMarkerSuffix()
    • setMarkerSuffix

      public void setMarkerSuffix(BasedSequence markerSuffix)
    • setTight

      public void setTight(boolean tight)
    • setLoose

      public void setLoose(boolean loose)
    • isTight

      public boolean isTight()
    • isOwnTight

      public boolean isOwnTight()
    • isLoose

      public boolean isLoose()
    • isParagraphEndWrappingDisabled

      public boolean isParagraphEndWrappingDisabled(Paragraph node)
      Specified by:
      isParagraphEndWrappingDisabled in interface ParagraphContainer
    • isParagraphStartWrappingDisabled

      public boolean isParagraphStartWrappingDisabled(Paragraph node)
      Specified by:
      isParagraphStartWrappingDisabled in interface ParagraphContainer
    • isParagraphInTightListItem

      public boolean isParagraphInTightListItem(Paragraph node)
      Specified by:
      isParagraphInTightListItem in interface ParagraphItemContainer
    • isItemParagraph

      public boolean isItemParagraph(Paragraph node)
      Specified by:
      isItemParagraph in interface ParagraphItemContainer
    • isParagraphWrappingDisabled

      public boolean isParagraphWrappingDisabled(Paragraph node, ListOptions listOptions, DataHolder options)
      Specified by:
      isParagraphWrappingDisabled in interface ParagraphItemContainer
    • isInTightList

      public boolean isInTightList()
    • isHadBlankAfterItemParagraph

      public boolean isHadBlankAfterItemParagraph()
    • isContainsBlankLine

      public boolean isContainsBlankLine()
    • setContainsBlankLine

      public void setContainsBlankLine(boolean containsBlankLine)
    • setHadBlankAfterItemParagraph

      public void setHadBlankAfterItemParagraph(boolean hadBlankAfterItemParagraph)
    • getLastBlankLineChild

      public Node getLastBlankLineChild()
      Description copied from class: Node
      Overridden by ListBlock and any others whose children propagate their blank line to parent
      Overrides:
      getLastBlankLineChild in class Node
      Returns:
      return a child block that can contain the parent's last blank line