Class BasePropertySet
- class ooodev.uno_helper.base_class.base_property_set.BasePropertySet(*args, **kwargs)[source]
Bases:
Base
,XPropertySet
Provides information about and access to the properties from an implementation.
There are three types of properties:
You can listen to changes of bound properties with the XPropertyChangeListener and you can veto changes of constrained properties with the XVetoableChangeListener.
To implement inaccurate name access, you must support the interface XExactName.
See also
- Parameters:
args (Any) –
kwargs (Any) –
- Return type:
Any
- __init__(*args, **kwargs)
- Parameters:
args (Any) –
kwargs (Any) –
- Return type:
None
- acquire()
- Return type:
None
- addPropertyChangeListener(aPropertyName, xListener)[source]
Not Implemented.
Adds an XPropertyChangeListener to the specified property.
An empty name registers the listener to all bound properties. If the property is not bound, the behavior is not specified.
It is suggested to allow multiple registration of the same listener, thus for each time a listener is added, it has to be removed.
- Raises:
NotImplementedError –
NotImplementedError
- Return type:
None
- Parameters:
aPropertyName (str) –
xListener (com.sun.star.beans.XPropertyChangeListener) –
- addVetoableChangeListener(PropertyName, aListener)[source]
Not Implemented.
Adds an XVetoableChangeListener to the specified property with the name PropertyName.
An empty name registers the listener to all constrained properties. If the property is not constrained, the behavior is not specified.
- Raises:
NotImplementedError –
NotImplementedError
- Return type:
None
- Parameters:
PropertyName (str) –
aListener (com.sun.star.beans.XVetoableChangeListener) –
- getPropertySetInfo()[source]
Not Implemented.
Gets the complete information of the properties provided by this object.
- Raises:
NotImplementedError –
NotImplementedError
- Return type:
XPropertySetInfo
- getPropertyValue(PropertyName)[source]
Not Implemented.
Gets a property value.
- Raises:
NotImplementedError –
NotImplementedError
- Return type:
Any
- Parameters:
PropertyName (str) –
- queryInterface(aType)
- Return type:
Any
- Parameters:
aType (Any) –
- release()
- Return type:
None
- removePropertyChangeListener(aPropertyName, aListener)[source]
Not Implemented.
Removes an XPropertyChangeListener from the listener list.
It is a
noop
if the listener is not registered.It is suggested to allow multiple registration of the same listener, thus for each time a listener is added, it has to be removed.
- Raises:
NotImplementedError –
NotImplementedError
- Return type:
None
- Parameters:
aPropertyName (str) –
aListener (com.sun.star.beans.XPropertyChangeListener) –
- removeVetoableChangeListener(PropertyName, aListener)[source]
Not Implemented.
Removes an XVetoableChangeListener from the listener list.
It is a
noop
if the listener is not registered.- Raises:
NotImplementedError –
NotImplementedError
- Return type:
None
- Parameters:
PropertyName (str) –
aListener (com.sun.star.beans.XVetoableChangeListener) –
- setPropertyValue(aPropertyName, aValue)[source]
Not Implemented.
Sets the value of the property with the specified name.
If it is a bound property the value will be changed before the change event is fired. If it is a constrained property a vetoable event is fired before the property value can be changed.
- Raises:
NotImplementedError –
NotImplementedError
- Return type:
None
- Parameters:
aPropertyName (str) –
aValue (Any) –