Class SideBySideView.Line.Item

  • Enclosing class:
    SideBySideView.Line

    public static class SideBySideView.Line.Item
    extends Object
    Simple representation of a diff element. Additional to the the text this includes the linenumber as well as the corresponding cssClass which signals whether the item was modified, added or deleted.
    • Constructor Detail

      • Item

        public Item()
    • Method Detail

      • getLineNumber

        public String getLineNumber()
        Returns the line number of the Item.
        Returns:
        lineNumber.
      • getText

        public String getText()
        Returns the text of the Item.
        Returns:
        text.
      • getCssClass

        public String getCssClass()
        Returns the cssClass of the Item.
        Returns:
        cssClass.
      • setCssClass

        public void setCssClass​(String cssClass)
        Sets cssClass.
        Parameters:
        cssClass - cssClass
      • setLineNumber

        public void setLineNumber​(Integer lineNumber)
        Parameters:
        lineNumber - the lineNumber to set
      • setText

        public void setText​(String text)
        Parameters:
        text - the text to set