Interface BlockParent

  • All Known Subinterfaces:
    Block, Table

    public interface BlockParent
    An interface to be implemented by any class that can contain an ordered set of Blocks.
    Version:
    ©2004-2024 Snowtide
    • Method Detail

      • getChildCnt

        int getChildCnt()
        Returns the number of children held by this BlockParent.
      • getChild

        Block getChild​(int idx)
        Returns the child and the given index.
      • removeChild

        Block removeChild​(int idx)
        Removes and returns the child at the given index.
        Throws:
        UnsupportedOperationException - if the implementation is not mutable
      • replaceChild

        void replaceChild​(int idx,
                          Block b)
        Replaces the child at the given index with the provided Block.
      • removeAllChildren

        void removeAllChildren()