@@ -47,12 +47,12 @@ public class ActiveXComponent extends Dispatch {
47
47
* This constructor causes a new Windows object of the requested type to be
48
48
* created. The windows CoCreate() function gets called to create the
49
49
* underlying windows object.
50
- *
50
+ *
51
51
* <pre>
52
52
* new ActiveXComponent("ScriptControl");
53
53
* </pre>
54
- *
55
- * @param programId
54
+ *
55
+ * @param programId the registry identifer for the target
56
56
*/
57
57
public ActiveXComponent (String programId ) {
58
58
super (programId );
@@ -62,16 +62,16 @@ public ActiveXComponent(String programId) {
62
62
* Creates an active X component that is built on top of the COM pointers
63
63
* held in the passed in dispatch. This widens the Dispatch object to pick
64
64
* up the ActiveXComponent API
65
- *
66
- * @param dispatchToBeWrapped
65
+ *
66
+ * @param dispatchToBeWrapped - can wrap an ActiveXComponent around a dispatch
67
67
*/
68
68
public ActiveXComponent (Dispatch dispatchToBeWrapped ) {
69
69
super (dispatchToBeWrapped );
70
70
}
71
71
72
72
/**
73
73
* only used by the factories
74
- *
74
+ *
75
75
*/
76
76
private ActiveXComponent () {
77
77
super ();
@@ -80,7 +80,7 @@ private ActiveXComponent() {
80
80
/**
81
81
* Probably was a cover for something else in the past. Should be
82
82
* deprecated.
83
- *
83
+ *
84
84
* @return Now it actually returns this exact same object.
85
85
*/
86
86
public Dispatch getObject () {
@@ -97,8 +97,8 @@ public Dispatch getObject() {
97
97
* throws no exceptions and returns null on failure.
98
98
* <p>
99
99
* This will fail for any prog id with a ":" in it.
100
- *
101
- * @param pRequestedProgramId
100
+ *
101
+ * @param pRequestedProgramId the program id from the registry
102
102
* @return Dispatch pointer to the COM object or null if couldn't create
103
103
*/
104
104
public static ActiveXComponent createNewInstance (String pRequestedProgramId ) {
@@ -126,8 +126,8 @@ public static ActiveXComponent createNewInstance(String pRequestedProgramId) {
126
126
* that it throws no exceptions and returns null on failure.
127
127
* <p>
128
128
* This will fail for any prog id with a ":" in it
129
- *
130
- * @param pRequestedProgramId
129
+ *
130
+ * @param pRequestedProgramId the regsistry program id
131
131
* @return Dispatch pointer to a COM object or null if wasn't already
132
132
* running
133
133
*/
@@ -157,15 +157,15 @@ protected void finalize() {
157
157
158
158
/*
159
159
* ============================================================
160
- *
160
+ *
161
161
* start of instance based calls to the COM layer
162
162
* ===========================================================
163
163
*/
164
164
165
165
/**
166
166
* retrieves a property and returns it as a Variant
167
- *
168
- * @param propertyName
167
+ *
168
+ * @param propertyName the property name
169
169
* @return variant value of property
170
170
*/
171
171
public Variant getProperty (String propertyName ) {
@@ -174,8 +174,8 @@ public Variant getProperty(String propertyName) {
174
174
175
175
/**
176
176
* retrieves a property and returns it as an ActiveX component
177
- *
178
- * @param propertyName
177
+ *
178
+ * @param propertyName the property name
179
179
* @return Dispatch representing the object under the property name
180
180
*/
181
181
public ActiveXComponent getPropertyAsComponent (String propertyName ) {
@@ -186,9 +186,9 @@ public ActiveXComponent getPropertyAsComponent(String propertyName) {
186
186
187
187
/**
188
188
* retrieves a property and returns it as a Boolean
189
- *
190
- * @param propertyName
191
- * property we are looking up
189
+ *
190
+ * @param propertyName the property name
191
+ * property we are looking up
192
192
* @return boolean value of property
193
193
*/
194
194
public boolean getPropertyAsBoolean (String propertyName ) {
@@ -197,9 +197,9 @@ public boolean getPropertyAsBoolean(String propertyName) {
197
197
198
198
/**
199
199
* retrieves a property and returns it as a byte
200
- *
201
- * @param propertyName
202
- * property we are looking up
200
+ *
201
+ * @param propertyName the property name
202
+ * property we are looking up
203
203
* @return byte value of property
204
204
*/
205
205
public byte getPropertyAsByte (String propertyName ) {
@@ -208,8 +208,8 @@ public byte getPropertyAsByte(String propertyName) {
208
208
209
209
/**
210
210
* retrieves a property and returns it as a String
211
- *
212
- * @param propertyName
211
+ *
212
+ * @param propertyName the property name
213
213
* @return String value of property
214
214
*/
215
215
public String getPropertyAsString (String propertyName ) {
@@ -219,8 +219,8 @@ public String getPropertyAsString(String propertyName) {
219
219
220
220
/**
221
221
* retrieves a property and returns it as a int
222
- *
223
- * @param propertyName
222
+ *
223
+ * @param propertyName the property name
224
224
* @return the property value as an int
225
225
*/
226
226
public int getPropertyAsInt (String propertyName ) {
@@ -229,66 +229,59 @@ public int getPropertyAsInt(String propertyName) {
229
229
230
230
/**
231
231
* sets a property on this object
232
- *
233
- * @param propertyName
234
- * property name
235
- * @param arg
236
- * variant value to be set
232
+ *
233
+ * @param propertyName property name
234
+ * @param arg variant value to be set
237
235
*/
238
236
public void setProperty (String propertyName , Variant arg ) {
239
237
Dispatch .put (this , propertyName , arg );
240
238
}
241
239
242
240
/**
243
241
* sets a property on this object
244
- *
245
- * @param propertyName
246
- * property name
247
- * @param arg
248
- * variant value to be set
242
+ *
243
+ * @param propertyName property name
244
+ * @param arg variant value to be set
249
245
*/
250
246
public void setProperty (String propertyName , Dispatch arg ) {
251
247
Dispatch .put (this , propertyName , arg );
252
248
}
253
249
254
250
/**
255
251
* sets a property to be the value of the string
256
- *
257
- * @param propertyName
258
- * @param propertyValue
252
+ *
253
+ * @param propertyName the property name
254
+ * @param propertyValue the new value
259
255
*/
260
256
public void setProperty (String propertyName , String propertyValue ) {
261
257
this .setProperty (propertyName , new Variant (propertyValue ));
262
258
}
263
259
264
260
/**
265
261
* sets a property as a boolean value
266
- *
267
- * @param propertyName
268
- * @param propValue
269
- * the boolean value we want the prop set to
262
+ *
263
+ * @param propertyName the property name
264
+ * @param propValue the boolean value we want the prop set to
270
265
*/
271
266
public void setProperty (String propertyName , boolean propValue ) {
272
267
this .setProperty (propertyName , new Variant (propValue ));
273
268
}
274
269
275
270
/**
276
271
* sets a property as a boolean value
277
- *
278
- * @param propertyName
279
- * @param propValue
280
- * the boolean value we want the prop set to
272
+ *
273
+ * @param propertyName the property value
274
+ * @param propValue the boolean value we want the prop set to
281
275
*/
282
276
public void setProperty (String propertyName , byte propValue ) {
283
277
this .setProperty (propertyName , new Variant (propValue ));
284
278
}
285
279
286
280
/**
287
281
* sets the property as an int value
288
- *
289
- * @param propertyName
290
- * @param propValue
291
- * the int value we want the prop to be set to.
282
+ *
283
+ * @param propertyName the property name
284
+ * @param propValue the int value we want the prop to be set to.
292
285
*/
293
286
public void setProperty (String propertyName , int propValue ) {
294
287
this .setProperty (propertyName , new Variant (propValue ));
@@ -306,12 +299,10 @@ public void setProperty(String propertyName, int propValue) {
306
299
307
300
/**
308
301
* used by the doc and application listeners to get intelligent logging
309
- *
310
- * @param description
311
- * event description
312
- * @param args
313
- * args passed in (variants)
314
- *
302
+ *
303
+ * @param description event description
304
+ * @param args args passed in (variants)
305
+ *
315
306
*/
316
307
public void logCallbackEvent (String description , Variant [] args ) {
317
308
String argString = "" ;
@@ -364,15 +355,15 @@ public void logCallbackEvent(String description, Variant[] args) {
364
355
365
356
/*
366
357
* ==============================================================
367
- *
358
+ *
368
359
* covers for dispatch call methods
369
360
* =============================================================
370
361
*/
371
362
372
363
/**
373
364
* makes a dispatch call for the passed in action and no parameter
374
- *
375
- * @param callAction
365
+ *
366
+ * @param callAction the action to be called
376
367
* @return ActiveXComponent representing the results of the call
377
368
*/
378
369
public ActiveXComponent invokeGetComponent (String callAction ) {
@@ -381,9 +372,9 @@ public ActiveXComponent invokeGetComponent(String callAction) {
381
372
382
373
/**
383
374
* makes a dispatch call for the passed in action and single parameter
384
- *
385
- * @param callAction
386
- * @param parameters
375
+ *
376
+ * @param callAction the action to be passed in
377
+ * @param parameters this looks plural..
387
378
* @return ActiveXComponent representing the results of the call
388
379
*/
389
380
public ActiveXComponent invokeGetComponent (String callAction ,
@@ -393,9 +384,9 @@ public ActiveXComponent invokeGetComponent(String callAction,
393
384
394
385
/**
395
386
* invokes a single parameter call on this dispatch that returns no value
396
- *
397
- * @param actionCommand
398
- * @param parameter
387
+ *
388
+ * @param actionCommand the call name
389
+ * @param parameter the String parameter
399
390
* @return a Variant but that may be null for some calls
400
391
*/
401
392
public Variant invoke (String actionCommand , String parameter ) {
@@ -405,9 +396,9 @@ public Variant invoke(String actionCommand, String parameter) {
405
396
/**
406
397
* makes a dispatch call to the passed in action with a single boolean
407
398
* parameter
408
- *
409
- * @param actionCommand
410
- * @param parameter
399
+ *
400
+ * @param actionCommand the call name
401
+ * @param parameter the boolean parameter
411
402
* @return Variant result
412
403
*/
413
404
public Variant invoke (String actionCommand , boolean parameter ) {
@@ -416,9 +407,9 @@ public Variant invoke(String actionCommand, boolean parameter) {
416
407
417
408
/**
418
409
* makes a dispatch call to the passed in action with a single int parameter
419
- *
420
- * @param actionCommand
421
- * @param parameter
410
+ *
411
+ * @param actionCommand the command
412
+ * @param parameter the int parameter
422
413
* @return Variant result of the invoke (Dispatch.call)
423
414
*/
424
415
public Variant invoke (String actionCommand , int parameter ) {
@@ -428,10 +419,10 @@ public Variant invoke(String actionCommand, int parameter) {
428
419
/**
429
420
* makes a dispatch call to the passed in action with a string and integer
430
421
* parameter (this was put in for some application)
431
- *
432
- * @param actionCommand
433
- * @param parameter1
434
- * @param parameter2
422
+ *
423
+ * @param actionCommand command that requires a string and int vlaues
424
+ * @param parameter1 the string parameter
425
+ * @param parameter2 the int parameter
435
426
* @return Variant result
436
427
*/
437
428
public Variant invoke (String actionCommand , String parameter1 ,
@@ -443,10 +434,10 @@ public Variant invoke(String actionCommand, String parameter1,
443
434
/**
444
435
* makes a dispatch call to the passed in action with two integer parameters
445
436
* (this was put in for some application)
446
- *
447
- * @param actionCommand
448
- * @param parameter1
449
- * @param parameter2
437
+ *
438
+ * @param actionCommand the action that accepts 2 int parmaeters
439
+ * @param parameter1 first of two int parameters
440
+ * @param parameter2 the second of two int parameters
450
441
* @return a Variant but that may be null for some calls
451
442
*/
452
443
public Variant invoke (String actionCommand , int parameter1 , int parameter2 ) {
@@ -456,8 +447,8 @@ public Variant invoke(String actionCommand, int parameter1, int parameter2) {
456
447
457
448
/**
458
449
* makes a dispatch call for the passed in action and no parameter
459
- *
460
- * @param callAction
450
+ *
451
+ * @param callAction action name that requires zero parameters
461
452
* @return a Variant but that may be null for some calls
462
453
*/
463
454
public Variant invoke (String callAction ) {
@@ -467,9 +458,9 @@ public Variant invoke(String callAction) {
467
458
/**
468
459
* This is really a cover for call(String,Variant[]) that should be
469
460
* eliminated call with a variable number of args mainly used for quit.
470
- *
471
- * @param name
472
- * @param args
461
+ *
462
+ * @param name the name we are invoking
463
+ * @param args a single arg
473
464
* @return Variant returned by the invoke (Dispatch.callN)
474
465
*/
475
466
public Variant invoke (String name , Variant ... args ) {
0 commit comments