Microsoft SDK for Java

setProperty

The setProperty method of the ActiveXControl Class contains the following signatures:

setProperty(String name, String value)
setProperty(String name, int value)
setProperty(String name, short value)
setProperty(String name, boolean value)
setProperty(String name, long value, int flag)
setProperty(String name, double value)
setProperty(String name, double value, int flag)
setProperty(String name, float value)
setProperty(String name, Variant value)

setProperty(String name, String value)

Sets a string property of the ActiveX control.

Syntax

public void setProperty(String name, String value);

Parameters

name The name of the property that is set.
value The string value of the property.

setProperty(String name, int value)

Sets an integer property of the ActiveX control.

Syntax

public void setProperty(String name, int value);

Parameters

name The name of the property that is set.
value The integer value of the property

setProperty(String name, short value)

Sets a short integer property of the ActiveX control.

Syntax

public void setProperty(String name, short value);

Parameters

name The name of the property that is set.
value The short integer value of the property.

setProperty(String name, boolean value)

Sets a boolean property of the ActiveX control.

Syntax

public void setProperty(String name, boolean value);

Parameters

name The name of the property that is set.
value The boolean value of the property.

setProperty(String name, long value, int flag)

Sets a currency property of the ActiveX control.

Syntax

public void setProperty(String name, long value, int flag);

Parameters

name The name of the property that is set.
value The value of the property
flag Indicates how to set the property. If the value is CURRENCY, the property type is set to indicate currency; otherwise, the method returns without setting a property.

setProperty(String name, double value)

Sets a double property of the ActiveX control.

Syntax

public void setProperty(String name, double value);

Parameters

name The name of the property that is set
value The value of the property.

setProperty(String name, double value, int flag)

Sets a double or a date property of the ActiveX control.

Syntax

public void setProperty(String name, double value, int flag);

Parameters

name The name of the property that is set.
value The double value of the property
flag The value that determines how to set the property type. If the value is DATE, the property type is set to indicate a date; if the value is DOUBLE, the property type is set to indicate a double.

setProperty(String name, float value)

Sets a float property of the ActiveX control.

Syntax

public void setProperty(String name, float value);

Parameters

name The name of the property that is set.
value The float value of the property.

setProperty(String name, Variant value)

Sets a variant property of the ActiveX control.

Syntax

public void setProperty(String name, Variant value);

Parameters

name The name of the property to set.
value The value of the property.

Overrides

setProperty(String,Variant) in ActiveXComponent.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.