@@ -102,6 +102,8 @@ public ActionObject(PdfName type) {
102
102
/**
103
103
* Returns the type of inner action element. Possible values: {@link PdfName#URI}, {@link PdfName#Launch},
104
104
* {@link PdfName#GoTo}, {@link PdfName#GoToR}, {@link PdfName#Named}.
105
+ *
106
+ * @return {@link PdfName} type of inner action element
105
107
*/
106
108
public PdfName getType () {
107
109
return type ;
@@ -110,6 +112,9 @@ public PdfName getType() {
110
112
/**
111
113
* Sets the type of inner action element. Possible values: {@link PdfName#URI}, {@link PdfName#Launch},
112
114
* {@link PdfName#GoTo}, {@link PdfName#GoToR}, {@link PdfName#Named}.
115
+ *
116
+ * @param type {@link PdfName} type of inner action object
117
+ * @return current {@link ActionObject}
113
118
*/
114
119
public ActionObject setType (PdfName type ) {
115
120
this .type = type ;
@@ -119,14 +124,19 @@ public ActionObject setType(PdfName type) {
119
124
/**
120
125
* Gets the string value of URI elements. Corresponds to Name, required attribute of URI element.
121
126
* For more details see paragraph 6.5.30 in Xfdf specification.
127
+ *
128
+ * @return {@link PdfString} value of URI element
122
129
*/
123
130
public PdfString getUri () {
124
131
return uri ;
125
132
}
126
133
127
134
/**
128
- * Sets the string value of URI elements . Corresponds to Name, required attribute of URI element.
135
+ * Sets the string value of URI element . Corresponds to Name, required attribute of URI element.
129
136
* For more details see paragraph 6.5.30 in Xfdf specification.
137
+ *
138
+ * @param uri {@link PdfString} value to be set to URI element
139
+ * @return current {@link ActionObject}
130
140
*/
131
141
public ActionObject setUri (PdfString uri ) {
132
142
this .uri = uri ;
@@ -135,13 +145,18 @@ public ActionObject setUri(PdfString uri) {
135
145
136
146
/**
137
147
* Gets IsMap, optional attribute of URI element. For more details see paragraph 6.5.30 in Xfdf specification.
148
+ *
149
+ * @return boolean indicating if URI element is a map
138
150
*/
139
151
public boolean isMap () {
140
152
return isMap ;
141
153
}
142
154
143
155
/**
144
156
* Sets IsMap, optional attribute of URI element. For more details see paragraph 6.5.30 in Xfdf specification.
157
+ *
158
+ * @param map boolean indicating if URI element is a map
159
+ * @return current {@link ActionObject}
145
160
*/
146
161
public ActionObject setMap (boolean map ) {
147
162
isMap = map ;
@@ -150,13 +165,18 @@ public ActionObject setMap(boolean map) {
150
165
151
166
/**
152
167
* Gets the value of Name, required attribute of Named element. For more details see paragraph 6.5.24 in Xfdf specification.
168
+ *
169
+ * @return {@link PdfName} value of Name attribute of a named action element
153
170
*/
154
171
public PdfName getNameAction () {
155
172
return nameAction ;
156
173
}
157
174
158
175
/**
159
176
* Sets the value of Name, required attribute of Named element. For more details see paragraph 6.5.24 in Xfdf specification.
177
+ *
178
+ * @param nameAction {@link PdfName} value to be set to Name attribute of a named action element
179
+ * @return current {@link ActionObject}
160
180
*/
161
181
public ActionObject setNameAction (PdfName nameAction ) {
162
182
this .nameAction = nameAction ;
@@ -167,6 +187,8 @@ public ActionObject setNameAction(PdfName nameAction) {
167
187
* Gets the string value of OriginalName, required attribute of File inner element of GoToR or Launch element.
168
188
* Corresponds to F key in go-to action or launch dictionaries.
169
189
* For more details see paragraphs 6.5.11, 6.5.23 in Xfdf specification.
190
+ *
191
+ * @return {@link String} value of OriginalName attribute of current action object
170
192
*/
171
193
public String getFileOriginalName () {
172
194
return fileOriginalName ;
@@ -176,21 +198,29 @@ public String getFileOriginalName() {
176
198
* Sets the string value of OriginalName, required attribute of File inner element of GoToR or Launch element.
177
199
* Corresponds to F key in go-to action or launch dictionaries.
178
200
* For more details see paragraphs 6.5.11, 6.5.23 in Xfdf specification.
201
+ *
202
+ * @param fileOriginalName {@link String} value of OriginalName attribute of action object
203
+ * @return current {@link ActionObject}
179
204
*/
180
205
public ActionObject setFileOriginalName (String fileOriginalName ) {
181
206
this .fileOriginalName = fileOriginalName ;
182
207
return this ;
183
208
}
184
209
185
210
/**
186
- * Sets the boolean value of NewWindow, optional attribute of Launch element. For more details see paragraph 6.5.23 in Xfdf specification.
211
+ * Gets the boolean value of NewWindow, optional attribute of Launch element. For more details see paragraph 6.5.23 in Xfdf specification.
212
+ *
213
+ * @return boolean indicating if current Launch action element should be opened in a new window
187
214
*/
188
215
public boolean isNewWindow () {
189
216
return isNewWindow ;
190
217
}
191
218
192
219
/**
193
- * Gets the boolean value of NewWindow, optional attribute of Launch element. For more details see paragraph 6.5.23 in Xfdf specification.
220
+ * Sets the boolean value of NewWindow, optional attribute of Launch element. For more details see paragraph 6.5.23 in Xfdf specification.
221
+ *
222
+ * @param newWindow boolean indicating if current Launch action element should be opened in a new window
223
+ * @return current {@link ActionObject}
194
224
*/
195
225
public ActionObject setNewWindow (boolean newWindow ) {
196
226
isNewWindow = newWindow ;
@@ -201,6 +231,8 @@ public ActionObject setNewWindow(boolean newWindow) {
201
231
* Gets Dest, inner element of link, GoTo, and GoToR elements.
202
232
* Corresponds to Dest key in link annotation dictionary.
203
233
* For more details see paragraph 6.5.10 in Xfdf specification.
234
+ *
235
+ * @return {@link DestObject} destination attribute of current action element
204
236
*/
205
237
public DestObject getDestination () {
206
238
return destination ;
@@ -210,6 +242,9 @@ public DestObject getDestination() {
210
242
* Sets Dest, inner element of link, GoTo, and GoToR elements.
211
243
* Corresponds to Dest key in link annotation dictionary.
212
244
* For more details see paragraph 6.5.10 in Xfdf specification.
245
+ *
246
+ * @param destination {@link DestObject} destination attribute of the action element
247
+ * @return current {@link ActionObject}
213
248
*/
214
249
public ActionObject setDestination (DestObject destination ) {
215
250
this .destination = destination ;
0 commit comments