Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: beans ::

interface XFastPropertySet
Description
provides a fast way of accessing and changing property values.

This interface is an extension to the XPropertySet interface. The get and set methods use handles to access the property values instead of character strings.

Developers Guide
ProUNO - Properties

Methods' Summary
setFastPropertyValue sets the value to the property with the specified name.  
getFastPropertyValue  
Methods' Details
setFastPropertyValue
void
setFastPropertyValue( [in] long  nHandle,
[in] any  aValue )
raises( UnknownPropertyException,
PropertyVetoException,
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::WrappedTargetException );

Description
sets the value to the property with the specified name.
Parameter nHandle
contains the implementation handle of the implementation for the property.
Parameter aValue
contains the new value of the property.
Throws
UnknownPropertyException if the property does not exist.
Throws
PropertyVetoException if a vetoable listener does not approve the change of a property value.
Throws
IllegalArgumentException if the new value cannot be converted to the type of the underlying property by an identity or widening conversion.
Throws
stardiv::uno::lang::WrappedTargetException if the implementation has an internal reason for the exception. In this case the original exception is wrapped into this ::com::sun::star::lang::WrappedTargetException.
getFastPropertyValue
any
getFastPropertyValue( [in] long  nHandle )
raises( UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException );

Returns
the value of the property with the name PropertyName.
Parameter nHandle
contains the implementation handle of the implementation for the property.
Throws
UnknownPropertyException if the property does not exist.
Throws
com::sun::star::lang::WrappedTargetException if the implementation has an internal reason for the exception. In this case the original exception is wrapped into that ::com::sun::star::lang::WrappedTargetException.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.