Class HistoryAnnotation

All Implemented Interfaces:
PermissionsProvider<Annotation>, PropertiesProvider, com.levigo.jadice.web.shared.model.annotation.internal.JwtAnnotation, Serializable, org.jadice.util.base.MementoOriginator
Direct Known Subclasses:
JWTSerializableHistoryAnnotation

public class HistoryAnnotation extends TextAnnotation
See Also:
  • Field Details

    • secureText

      protected String secureText
  • Constructor Details

    • HistoryAnnotation

      public HistoryAnnotation()
  • Method Details

    • getEntireText

      public String getEntireText()
      Returns entire text (new text + history pattern + secure text)
      Returns:
      Entire text
    • setEntireText

      public void setEntireText(String entireText)
      Sets the entire text, this method should be used by the reader- / writer-implementations.
      Parameters:
      entireText -
    • copy

      public HistoryAnnotation copy()
      Specified by:
      copy in interface com.levigo.jadice.web.shared.model.annotation.internal.JwtAnnotation
      Overrides:
      copy in class TextAnnotation
    • copyAttributesTo

      protected void copyAttributesTo(Annotation annotation)
      Overrides:
      copyAttributesTo in class TextAnnotation
    • setHistoryPattern

      public void setHistoryPattern(String historyPattern)
      Set history pattern displayed as non editable text.
      Parameters:
      historyPattern - History pattern to set
    • getHistoryPattern

      public String getHistoryPattern()
      Returns current history pattern
      Returns:
      History pattern
    • getPatternPosition

      public HistoryAnnotation.HistoryPatternPosition getPatternPosition()
      Return current pattern position.
      Returns:
      Pattern position
    • setPatternPosition

      public void setPatternPosition(HistoryAnnotation.HistoryPatternPosition patternPosition)
      Set history pattern position, possible values see HistoryAnnotation.HistoryPatternPosition.
      Parameters:
      patternPosition -