View Javadoc

1   package net.trajano.twiff.renderer;
2   
3   import java.util.List;
4   
5   /***
6    * A page data that contains other page data. Implements the composite pattern.
7    * 
8    * @author Archimedes Trajano
9    */
10  public interface CompositePageElement extends PageElement {
11      /***
12       * Append page data to the composite.
13       * 
14       * @param pageData
15       *                   page data.
16       */
17      void addElement(PageElement pageData);
18  
19      /***
20       * @return elements inside this composite.
21       */
22      List<PageElement> getElements();
23  }