@@ -55,22 +55,23 @@ public class ActionObject {
55
55
56
56
57
57
/**
58
- * Type of inner action element. Possible values: URI, Launch, GoTo, GoToR, Named.
58
+ * Type of inner action element. Possible values: {@link PdfName#URI}, {@link PdfName#Launch}, {@link PdfName#GoTo},
59
+ * {@link PdfName#GoToR}, {@link PdfName#Named}.
59
60
*/
60
61
private PdfName type ;
61
62
62
63
/**
63
- * Represents Name required attribute of URI element. For more details see paragraph 6.5.30 in Xfdf specification.
64
+ * Represents Name, required attribute of URI element. For more details see paragraph 6.5.30 in Xfdf specification.
64
65
*/
65
66
private PdfString uri ;
66
67
67
68
/**
68
- * Represents IsMap optional attribute of URI element. For more details see paragraph 6.5.30 in Xfdf specification.
69
+ * Represents IsMap, optional attribute of URI element. For more details see paragraph 6.5.30 in Xfdf specification.
69
70
*/
70
71
private boolean isMap ;
71
72
72
73
/**
73
- * Represents Name required attribute of Named element. For more details see paragraph 6.5.24 in Xfdf specification.
74
+ * Represents Name, required attribute of Named element. For more details see paragraph 6.5.24 in Xfdf specification.
74
75
*/
75
76
private PdfName nameAction ;
76
77
@@ -82,12 +83,12 @@ public class ActionObject {
82
83
private String fileOriginalName ;
83
84
84
85
/**
85
- * Represents NewWindows optional attribute of Launch element. For more details see paragraph 6.5.23 in Xfdf specification.
86
+ * Represents NewWindow, optional attribute of Launch element. For more details see paragraph 6.5.23 in Xfdf specification.
86
87
*/
87
88
private boolean isNewWindow ;
88
89
89
90
/**
90
- * Represents Dest inner element of link, GoTo, and GoToR elements.
91
+ * Represents Dest, inner element of link, GoTo, and GoToR elements.
91
92
* Corresponds to Dest key in link annotation dictionary.
92
93
* For more details see paragraph 6.5.10 in Xfdf specification.
93
94
*/
@@ -97,64 +98,119 @@ public ActionObject(PdfName type) {
97
98
this .type = type ;
98
99
}
99
100
101
+
102
+ /**
103
+ * Returns the type of inner action element. Possible values: {@link PdfName#URI}, {@link PdfName#Launch},
104
+ * {@link PdfName#GoTo}, {@link PdfName#GoToR}, {@link PdfName#Named}.
105
+ */
100
106
public PdfName getType () {
101
107
return type ;
102
108
}
103
109
110
+ /**
111
+ * Sets the type of inner action element. Possible values: {@link PdfName#URI}, {@link PdfName#Launch},
112
+ * {@link PdfName#GoTo}, {@link PdfName#GoToR}, {@link PdfName#Named}.
113
+ */
104
114
public ActionObject setType (PdfName type ) {
105
115
this .type = type ;
106
116
return this ;
107
117
}
108
118
119
+ /**
120
+ * Gets the string value of URI elements. Corresponds to Name, required attribute of URI element.
121
+ * For more details see paragraph 6.5.30 in Xfdf specification.
122
+ */
109
123
public PdfString getUri () {
110
124
return uri ;
111
125
}
112
126
127
+ /**
128
+ * Sets the string value of URI elements. Corresponds to Name, required attribute of URI element.
129
+ * For more details see paragraph 6.5.30 in Xfdf specification.
130
+ */
113
131
public ActionObject setUri (PdfString uri ) {
114
132
this .uri = uri ;
115
133
return this ;
116
134
}
117
135
136
+ /**
137
+ * Gets IsMap, optional attribute of URI element. For more details see paragraph 6.5.30 in Xfdf specification.
138
+ */
118
139
public boolean isMap () {
119
140
return isMap ;
120
141
}
121
142
143
+ /**
144
+ * Sets IsMap, optional attribute of URI element. For more details see paragraph 6.5.30 in Xfdf specification.
145
+ */
122
146
public ActionObject setMap (boolean map ) {
123
147
isMap = map ;
124
148
return this ;
125
149
}
126
150
151
+ /**
152
+ * Gets the value of Name, required attribute of Named element. For more details see paragraph 6.5.24 in Xfdf specification.
153
+ */
127
154
public PdfName getNameAction () {
128
155
return nameAction ;
129
156
}
130
157
158
+ /**
159
+ * Sets the value of Name, required attribute of Named element. For more details see paragraph 6.5.24 in Xfdf specification.
160
+ */
131
161
public ActionObject setNameAction (PdfName nameAction ) {
132
162
this .nameAction = nameAction ;
133
163
return this ;
134
164
}
135
165
166
+ /**
167
+ * Gets the string value of OriginalName, required attribute of File inner element of GoToR or Launch element.
168
+ * Corresponds to F key in go-to action or launch dictionaries.
169
+ * For more details see paragraphs 6.5.11, 6.5.23 in Xfdf specification.
170
+ */
136
171
public String getFileOriginalName () {
137
172
return fileOriginalName ;
138
173
}
139
174
175
+ /**
176
+ * Sets the string value of OriginalName, required attribute of File inner element of GoToR or Launch element.
177
+ * Corresponds to F key in go-to action or launch dictionaries.
178
+ * For more details see paragraphs 6.5.11, 6.5.23 in Xfdf specification.
179
+ */
140
180
public ActionObject setFileOriginalName (String fileOriginalName ) {
141
181
this .fileOriginalName = fileOriginalName ;
142
182
return this ;
143
183
}
144
184
185
+ /**
186
+ * Sets the boolean value of NewWindow, optional attribute of Launch element. For more details see paragraph 6.5.23 in Xfdf specification.
187
+ */
145
188
public boolean isNewWindow () {
146
189
return isNewWindow ;
147
190
}
148
191
192
+ /**
193
+ * Gets the boolean value of NewWindow, optional attribute of Launch element. For more details see paragraph 6.5.23 in Xfdf specification.
194
+ */
149
195
public ActionObject setNewWindow (boolean newWindow ) {
150
196
isNewWindow = newWindow ;
151
197
return this ;
152
198
}
153
199
200
+ /**
201
+ * Gets Dest, inner element of link, GoTo, and GoToR elements.
202
+ * Corresponds to Dest key in link annotation dictionary.
203
+ * For more details see paragraph 6.5.10 in Xfdf specification.
204
+ */
154
205
public DestObject getDestination () {
155
206
return destination ;
156
207
}
157
208
209
+ /**
210
+ * Sets Dest, inner element of link, GoTo, and GoToR elements.
211
+ * Corresponds to Dest key in link annotation dictionary.
212
+ * For more details see paragraph 6.5.10 in Xfdf specification.
213
+ */
158
214
public ActionObject setDestination (DestObject destination ) {
159
215
this .destination = destination ;
160
216
return this ;
0 commit comments