@@ -92,37 +92,43 @@ public Paragraph(Text text) {
92
92
}
93
93
94
94
/**
95
- * Adds a piece of text to the Paragraph
95
+ * Adds a piece of text to this {@link Paragraph}.
96
96
*
97
97
* @param text the content to be added, as a {@link String}
98
- * @return this Paragraph
98
+ * @return this {@link Paragraph}
99
99
*/
100
100
public Paragraph add (String text ) {
101
101
return add (new Text (text ));
102
102
}
103
103
104
104
/**
105
- * Adds a layout element to the Paragraph.
105
+ * Adds a {@link ILeafElement element} to this {@link Paragraph} .
106
106
*
107
107
* @param element the content to be added, any {@link ILeafElement}
108
- * @return this Paragraph
108
+ * @return this {@link Paragraph}
109
109
*/
110
110
public Paragraph add (ILeafElement element ) {
111
111
childElements .add (element );
112
112
return this ;
113
113
}
114
114
115
+ /**
116
+ * Adds an {@link IBlockElement element} to this {@link Paragraph}.
117
+ *
118
+ * @param element the content to be added, any {@link IBlockElement}
119
+ * @return this {@link Paragraph}
120
+ */
115
121
public Paragraph add (IBlockElement element ) {
116
122
childElements .add (element );
117
123
return this ;
118
124
}
119
125
120
126
/**
121
- * Adds a {@link java.util.List} of layout elements to the Paragraph.
127
+ * Adds a {@link java.util.List} of layout elements to this {@link Paragraph} .
122
128
*
123
129
* @param elements the content to be added
124
130
* @param <T2> any {@link ILeafElement}
125
- * @return this Paragraph
131
+ * @return this {@link Paragraph}
126
132
*/
127
133
public <T2 extends ILeafElement > Paragraph addAll (java .util .List <T2 > elements ) {
128
134
for (ILeafElement element : elements ) {
@@ -132,10 +138,10 @@ public <T2 extends ILeafElement> Paragraph addAll(java.util.List<T2> elements) {
132
138
}
133
139
134
140
/**
135
- * Adds an unspecified amount of tabstop elements as properties to the Paragraph.
141
+ * Adds an unspecified amount of tabstop elements as properties to this {@link Paragraph} .
136
142
*
137
143
* @param tabStops the {@link TabStop tabstop(s)} to be added as properties
138
- * @return this Paragraph
144
+ * @return this {@link Paragraph}
139
145
* @see TabStop
140
146
*/
141
147
public Paragraph addTabStops (TabStop ... tabStops ) {
@@ -144,10 +150,10 @@ public Paragraph addTabStops(TabStop... tabStops) {
144
150
}
145
151
146
152
/**
147
- * Adds a {@link java.util.List} of tabstop elements as properties to the Paragraph.
153
+ * Adds a {@link java.util.List} of tabstop elements as properties to this {@link Paragraph} .
148
154
*
149
155
* @param tabStops the list of {@link TabStop}s to be added as properties
150
- * @return this Paragraph
156
+ * @return this {@link Paragraph}
151
157
* @see TabStop
152
158
*/
153
159
public Paragraph addTabStops (java .util .List <TabStop > tabStops ) {
0 commit comments