Skip to content

Commit 96fadd7

Browse files
BlackEgoistiText-CI
authored andcommitted
Fix javadoc warnings
DEVSIX-4161
1 parent 9643dcd commit 96fadd7

File tree

1 file changed

+38
-3
lines changed

1 file changed

+38
-3
lines changed

forms/src/main/java/com/itextpdf/forms/xfdf/ActionObject.java

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ public ActionObject(PdfName type) {
102102
/**
103103
* Returns the type of inner action element. Possible values: {@link PdfName#URI}, {@link PdfName#Launch},
104104
* {@link PdfName#GoTo}, {@link PdfName#GoToR}, {@link PdfName#Named}.
105+
*
106+
* @return {@link PdfName} type of inner action element
105107
*/
106108
public PdfName getType() {
107109
return type;
@@ -110,6 +112,9 @@ public PdfName getType() {
110112
/**
111113
* Sets the type of inner action element. Possible values: {@link PdfName#URI}, {@link PdfName#Launch},
112114
* {@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}
113118
*/
114119
public ActionObject setType(PdfName type) {
115120
this.type = type;
@@ -119,14 +124,19 @@ public ActionObject setType(PdfName type) {
119124
/**
120125
* Gets the string value of URI elements. Corresponds to Name, required attribute of URI element.
121126
* For more details see paragraph 6.5.30 in Xfdf specification.
127+
*
128+
* @return {@link PdfString} value of URI element
122129
*/
123130
public PdfString getUri() {
124131
return uri;
125132
}
126133

127134
/**
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.
129136
* 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}
130140
*/
131141
public ActionObject setUri(PdfString uri) {
132142
this.uri = uri;
@@ -135,13 +145,18 @@ public ActionObject setUri(PdfString uri) {
135145

136146
/**
137147
* 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
138150
*/
139151
public boolean isMap() {
140152
return isMap;
141153
}
142154

143155
/**
144156
* 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}
145160
*/
146161
public ActionObject setMap(boolean map) {
147162
isMap = map;
@@ -150,13 +165,18 @@ public ActionObject setMap(boolean map) {
150165

151166
/**
152167
* 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
153170
*/
154171
public PdfName getNameAction() {
155172
return nameAction;
156173
}
157174

158175
/**
159176
* 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}
160180
*/
161181
public ActionObject setNameAction(PdfName nameAction) {
162182
this.nameAction = nameAction;
@@ -167,6 +187,8 @@ public ActionObject setNameAction(PdfName nameAction) {
167187
* Gets the string value of OriginalName, required attribute of File inner element of GoToR or Launch element.
168188
* Corresponds to F key in go-to action or launch dictionaries.
169189
* 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
170192
*/
171193
public String getFileOriginalName() {
172194
return fileOriginalName;
@@ -176,21 +198,29 @@ public String getFileOriginalName() {
176198
* Sets the string value of OriginalName, required attribute of File inner element of GoToR or Launch element.
177199
* Corresponds to F key in go-to action or launch dictionaries.
178200
* 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}
179204
*/
180205
public ActionObject setFileOriginalName(String fileOriginalName) {
181206
this.fileOriginalName = fileOriginalName;
182207
return this;
183208
}
184209

185210
/**
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
187214
*/
188215
public boolean isNewWindow() {
189216
return isNewWindow;
190217
}
191218

192219
/**
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}
194224
*/
195225
public ActionObject setNewWindow(boolean newWindow) {
196226
isNewWindow = newWindow;
@@ -201,6 +231,8 @@ public ActionObject setNewWindow(boolean newWindow) {
201231
* Gets Dest, inner element of link, GoTo, and GoToR elements.
202232
* Corresponds to Dest key in link annotation dictionary.
203233
* For more details see paragraph 6.5.10 in Xfdf specification.
234+
*
235+
* @return {@link DestObject} destination attribute of current action element
204236
*/
205237
public DestObject getDestination() {
206238
return destination;
@@ -210,6 +242,9 @@ public DestObject getDestination() {
210242
* Sets Dest, inner element of link, GoTo, and GoToR elements.
211243
* Corresponds to Dest key in link annotation dictionary.
212244
* 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}
213248
*/
214249
public ActionObject setDestination(DestObject destination) {
215250
this.destination = destination;

0 commit comments

Comments
 (0)