Package com.inet.html

Class InetHtmlDocument.ExtendedDocuementEvent

All Implemented Interfaces:
Serializable, DocumentEvent, UndoableEdit
Enclosing class:
InetHtmlDocument

public class InetHtmlDocument.ExtendedDocuementEvent extends AbstractDocument.DefaultDocumentEvent
Extends the DefaultDocumentEvent to support the update events by grouping the changes by paragraph element. This is required to avoid problems with the different structure of view and model.
See Also:
  • Constructor Details

    • ExtendedDocuementEvent

      public ExtendedDocuementEvent(int offs, int len, DocumentEvent.EventType type, InetHtmlDocument document)
      Generates a Document event.
      Parameters:
      offs - the offset into the document of the change >= 0
      len - the length of the change >= 0
      type - the type of event (DocumentEvent.EventType)
      document - The enclosing document
    • ExtendedDocuementEvent

      public ExtendedDocuementEvent(int offs, int len, int contentChangeLen, DocumentEvent.EventType type, InetHtmlDocument document)
      Generates a Document event.
      Parameters:
      offs - the offset within the document where the structural change starts
      len - the length of the change structural >= 0
      contentChangeLen - the length of content added/removed
      type - the type of event (DocumentEvent.EventType)
      document - The enclosing document
    • ExtendedDocuementEvent

      public ExtendedDocuementEvent(int offs, int len, int contentChangeStart, int contentChangeLen, DocumentEvent.EventType type, InetHtmlDocument document)
      Generates a Document event for a complex change. The difference between the user and the change length is due to the required structural changes. E.g. a simple removal a the end of a line
      Parameters:
      offs - the original start offset as defined by the user/caret
      len - original length of the change as defined by the user/caret
      contentChangeStart - the first position where something is different now, must be <= offset
      contentChangeLen - the length of the actual change, must be >= len
      type - the type of event (DocumentEvent.EventType)
      document - The enclosing document
  • Method Details