View Javadoc
1   /*
2    * Metis: Java Data Framework
3    * Copyright 2026. Tony Washer
4    *
5    * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6    * use this file except in compliance with the License.  You may obtain a copy
7    * of the License at
8    *
9    *   http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
14   * License for the specific language governing permissions and limitations under
15   * the License.
16   */
17  
18  package io.github.tonywasher.joceanus.metis.report;
19  
20  import io.github.tonywasher.joceanus.metis.report.MetisReportHTMLBuilder.MetisReportHTMLTable;
21  
22  /**
23   * Simple element class for delayed tables.
24   */
25  public final class MetisReportDelayedTable {
26      /**
27       * The table id.
28       */
29      private final String theId;
30  
31      /**
32       * The parent control.
33       */
34      private final MetisReportHTMLTable theParent;
35  
36      /**
37       * The table source.
38       */
39      private final Object theSource;
40  
41      /**
42       * Constructor.
43       *
44       * @param pId     the table id
45       * @param pParent the parent table.
46       * @param pSource the source
47       */
48      MetisReportDelayedTable(final String pId,
49                              final MetisReportHTMLTable pParent,
50                              final Object pSource) {
51          /* Store details */
52          theId = pId;
53          theParent = pParent;
54          theSource = pSource;
55      }
56  
57      /**
58       * Obtain the id.
59       *
60       * @return the id
61       */
62      public String getId() {
63          return theId;
64      }
65  
66      /**
67       * Obtain the parent.
68       *
69       * @return the parent
70       */
71      public MetisReportHTMLTable getParent() {
72          return theParent;
73      }
74  
75      /**
76       * Obtain the source.
77       *
78       * @return the source
79       */
80      public Object getSource() {
81          return theSource;
82      }
83  }