Interface Block

All Known Implementing Classes:
Paragraph, Picture, SectionBreak, Table

public interface Block

One top-level unit of a Document's body: a Paragraph, a Table or a Picture.

Blocks are immutable. Every block carries an id that is unique within its document and stays the same when the block is edited, so an editor, an undo history or a comment anchor can follow a block across versions of the document.

  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    The block's document-local id.
  • Method Details

    • id

      String id()

      The block's document-local id.

      Returns

      the id, never null