Top Description Inners Fields Constructors Methods
com.sun.star.lib.uno.helper

public final Class PropertySetMixin

extends Object
Class Inheritance
Imports
com.sun.star.beans.Property, com.sun.star.beans.PropertyAttribute, com.sun.star.beans.PropertyChangeEvent, com.sun.star.beans.PropertyState, com.sun.star.beans.PropertyValue, com.sun.star.beans.PropertyVetoException, com.sun.star.beans.UnknownPropertyException, com.sun.star.beans.XPropertyChangeListener, com.sun.star.beans.XPropertySetInfo, com.sun.star.beans.XVetoableChangeListener, com.sun.star.container.NoSuchElementException, com.sun.star.container.XHierarchicalNameAccess, com.sun.star.lang.DisposedException, com.sun.star.lang.EventObject, com.sun.star.lang.WrappedTargetException, com.sun.star.lang.WrappedTargetRuntimeException, com.sun.star.reflection.XCompoundTypeDescription, com.sun.star.reflection.XIdlClass, com.sun.star.reflection.XIdlField2, com.sun.star.reflection.XIndirectTypeDescription, com.sun.star.reflection.XInterfaceAttributeTypeDescription2, com.sun.star.reflection.XInterfaceMemberTypeDescription, com.sun.star.reflection.XInterfaceTypeDescription2, com.sun.star.reflection.XStructTypeDescription, com.sun.star.reflection.XTypeDescription, com.sun.star.reflection.theCoreReflection, com.sun.star.uno.Any, .AnyConverter, .Type, .UnoRuntime, com.sun.star.uno.TypeClass, com.sun.star.uno.XComponentContext, com.sun.star.uno.XInterface, java.util.ArrayList, .HashMap, .HashSet, .Iterator, .Map

A helper mixin to implement certain UNO interfaces related to property set handling on top of the attributes of a given UNO interface type.

A client will mix in this class by keeping a reference to an instance of this class, and forwarding all methods of (a subset of the interfaces) com.sun.star.beans.XPropertySet, com.sun.star.beans.XFastPropertySet, and com.sun.star.beans.XPropertyAccess to it.

Client code should not use the monitors associated with instances of this class, as they are used for internal purposes.

Since
UDK 3.2

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
PropertySetMixin.BoundListeners

A class used by clients of PropertySetMixin when implementing UNO interface type attribute setter functions.

private class
private static class

Field Summary

Modifier and TypeField and Description
private final String[]
private HashMap<String, ArrayList<com.sun.star.beans.XPropertyChangeListener>>
private final com.sun.star.uno.XComponentContext
private boolean
private final String[]
private final com.sun.star.reflection.XIdlClass
private final com.sun.star.uno.XInterface
private final Map<String, PropertySetMixin.PropertyData>
private final Type
private HashMap<String, ArrayList<com.sun.star.beans.XVetoableChangeListener>>

Constructor Summary

AccessConstructor and Description
public
PropertySetMixin(com.sun.star.uno.XComponentContext
the component context used by this instance; must not be null, and must supply the com.sun.star.reflection.theCoreReflection and com.sun.star.reflection.theTypeDescriptionManager singletons
context
,
com.sun.star.uno.XInterface
the client UNO object into which this instance is mixed in; must not be null, and must support the given type
object
,
Type
the UNO interface type whose attributes are mapped to properties; must not be null, and must represent a UNO interface type
type
,
String[]
a list of optional properties that are not present, and should thus not be visible via com.sun.star.beans.XPropertySet.getPropertySetInfo, com.sun.star.beans.XPropertySet.addPropertyChangeListener, com.sun.star.beans.XPropertySet.removePropertyChangeListener, com.sun.star.beans.XPropertySet.addVetoableChangeListener, and com.sun.star.beans.XPropertySet.removeVetoableChangeListener; null is treated the same as an empty list; if non-null, the given array must not be modified after it is passed to this constructor. For consistency reasons, the given absentOptional should only contain the names of attributes that represent optional properties that are not present (that is, the attribute getters and setters always throw a com.sun.star.beans.UnknownPropertyException), and should contain each such name only once. If an optional property is not present (that is, the corresponding attribute getter and setter always throw a com.sun.star.beans.UnknownPropertyException) but is not contained in the given absentOptional, then it will be visible via com.sun.star.beans.XPropertySet.getPropertySetInfo as a com.sun.star.beans.Property with a set com.sun.star.beans.PropertyAttribute.OPTIONAL. If the given object does not implement com.sun.star.beans.XPropertySet, then the given absentOptional is effectively ignored and can be null or empty.
absentOptional
)

The constructor.

Method Summary

Modifier and TypeMethod and Description
public void
addPropertyChangeListener(String
See com.sun.star.beans.XPropertySet
propertyName
,
com.sun.star.beans.XPropertyChangeListener
See com.sun.star.beans.XPropertySet
listener
)

Implements com.sun.star.beans.XPropertySet.addPropertyChangeListener.

public void
addVetoableChangeListener(String
See com.sun.star.beans.XPropertySet
propertyName
,
com.sun.star.beans.XVetoableChangeListener
See com.sun.star.beans.XPropertySet
listener
)

Implements com.sun.star.beans.XPropertySet.addVetoableChangeListener.

private void
checkUnknown(String propertyName)

public void
dispose()

Marks this instance as being disposed.

private PropertySetMixin.PropertyData
get(Object object, String propertyName)

public Object

Returns:

See com.sun.star.beans.XFastPropertySet
getFastPropertyValue
(int
See com.sun.star.beans.XFastPropertySet
handle
)

Implements com.sun.star.beans.XFastPropertySet.getFastPropertyValue.

pack-priv Object
getProperty(String name, com.sun.star.beans.PropertyState[] state)

public com.sun.star.beans.XPropertySetInfo

Returns:

See com.sun.star.beans.XPropertySet
getPropertySetInfo
()

Implements com.sun.star.beans.XPropertySet.getPropertySetInfo.

public Object

Returns:

See com.sun.star.beans.XPropertySet
getPropertyValue
(String
See com.sun.star.beans.XPropertySet
propertyName
)

Implements com.sun.star.beans.XPropertySet.getPropertyValue.

public com.sun.star.beans.PropertyValue[]

Returns:

See com.sun.star.beans.XPropertyAccess
getPropertyValues
()

Implements com.sun.star.beans.XPropertyAccess.getPropertyValues.

private com.sun.star.reflection.XIdlClass
private void
initProperties(com.sun.star.reflection.XTypeDescription type, HashMap<String, PropertySetMixin.PropertyData> map, ArrayList<String> handleNames, HashSet<String> seen)

public void
prepareSet(String
the name of the property (which is the same as the name of the attribute that is going to be set)
propertyName
,
Object
the property value corresponding to the old attribute value. This is only used as com.sun.star.beans.PropertyChangeEvent.OldValue, which is rather useless, anyway (see “Using the Observer Pattern” in OpenOffice.org Coding Guidelines). If the attribute that is going to be set is neither bound nor constrained, or if com.sun.star.beans.PropertyChangeEvent.OldValue should not be set, Any#VOID can be used instead.
oldValue
,
Object
the property value corresponding to the new attribute value. This is only used as com.sun.star.beans.PropertyChangeEvent.NewValue, which is rather useless, anyway (see “Using the Observer Pattern” in OpenOffice.org Coding Guidelines), unless the attribute that is going to be set is constrained. If the attribute that is going to be set is neither bound nor constrained, or if it is only bound but com.sun.star.beans.PropertyChangeEvent.NewValue should not be set, Any#VOID can be used instead.
newValue
,
PropertySetMixin.BoundListeners
a reference to a fresh BoundListeners instance (which has not been passed to this method before, and on which BoundListeners#notifyListeners has not yet been called); may only be null if the attribute that is going to be set is not bound
bound
)

A method used by clients when implementing UNO interface type attribute setter functions.

public void
prepareSet(String
the name of the property (which is the same as the name of the attribute that is going to be set)
propertyName
,
PropertySetMixin.BoundListeners
a reference to a fresh BoundListeners instance (which has not been passed to this method before, and on which BoundListeners#notifyListeners has not yet been called); may only be null if the attribute that is going to be set is not bound
bound
)

A simplified version of prepareSet(String, Object, Object, PropertySetMixin.BoundListeners).

public void
removePropertyChangeListener(String
See com.sun.star.beans.XPropertySet
propertyName
,
com.sun.star.beans.XPropertyChangeListener
See com.sun.star.beans.XPropertySet
listener
)

Implements com.sun.star.beans.XPropertySet.removePropertyChangeListener.

public void
removeVetoableChangeListener(String
See com.sun.star.beans.XPropertySet
propertyName
,
com.sun.star.beans.XVetoableChangeListener
See com.sun.star.beans.XPropertySet
listener
)

Implements com.sun.star.beans.XPropertySet.removeVetoableChangeListener.

private static com.sun.star.reflection.XTypeDescription
resolveTypedefs(com.sun.star.reflection.XTypeDescription type)

public void
setFastPropertyValue(int
See com.sun.star.beans.XFastPropertySet
handle
,
Object
See com.sun.star.beans.XFastPropertySet
value
)

Implements com.sun.star.beans.XFastPropertySet.setFastPropertyValue.

private void
setProperty(String name, Object value, boolean isAmbiguous, boolean isDefaulted, short illegalArgumentPosition)

public void
setPropertyValue(String
See com.sun.star.beans.XPropertySet
propertyName
,
Object
See com.sun.star.beans.XPropertySet
value
)

Implements com.sun.star.beans.XPropertySet.setPropertyValue.

public void
setPropertyValues(com.sun.star.beans.PropertyValue[]
See com.sun.star.beans.XPropertyAccess
props
)

Implements com.sun.star.beans.XPropertyAccess.setPropertyValues.

private String
translateHandle(int handle)

private Object
wrapValue(Object value, com.sun.star.reflection.XIdlClass type, boolean wrapAmbiguous, boolean isAmbiguous, boolean wrapDefaulted, boolean isDefaulted, boolean wrapOptional)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

absentOptionalback to summary
private final String[] absentOptional
boundListenersback to summary
private HashMap<String, ArrayList<com.sun.star.beans.XPropertyChangeListener>> boundListeners
contextback to summary
private final com.sun.star.uno.XComponentContext context
disposedback to summary
private boolean disposed
handleMapback to summary
private final String[] handleMap
idlClassback to summary
private final com.sun.star.reflection.XIdlClass idlClass
objectback to summary
private final com.sun.star.uno.XInterface object
propertiesback to summary
private final Map<String, PropertySetMixin.PropertyData> properties
typeback to summary
private final Type type
vetoListenersback to summary
private HashMap<String, ArrayList<com.sun.star.beans.XVetoableChangeListener>> vetoListeners

Constructor Detail

PropertySetMixinback to summary
public PropertySetMixin(com.sun.star.uno.XComponentContext context, com.sun.star.uno.XInterface object, Type type, String[] absentOptional)

The constructor.

Parameters
context:com.sun.star.uno.XComponentContext

the component context used by this instance; must not be null, and must supply the com.sun.star.reflection.theCoreReflection and com.sun.star.reflection.theTypeDescriptionManager singletons

object:com.sun.star.uno.XInterface

the client UNO object into which this instance is mixed in; must not be null, and must support the given type

type:Type

the UNO interface type whose attributes are mapped to properties; must not be null, and must represent a UNO interface type

absentOptional:String[]

a list of optional properties that are not present, and should thus not be visible via com.sun.star.beans.XPropertySet.getPropertySetInfo, com.sun.star.beans.XPropertySet.addPropertyChangeListener, com.sun.star.beans.XPropertySet.removePropertyChangeListener, com.sun.star.beans.XPropertySet.addVetoableChangeListener, and com.sun.star.beans.XPropertySet.removeVetoableChangeListener; null is treated the same as an empty list; if non-null, the given array must not be modified after it is passed to this constructor. For consistency reasons, the given absentOptional should only contain the names of attributes that represent optional properties that are not present (that is, the attribute getters and setters always throw a com.sun.star.beans.UnknownPropertyException), and should contain each such name only once. If an optional property is not present (that is, the corresponding attribute getter and setter always throw a com.sun.star.beans.UnknownPropertyException) but is not contained in the given absentOptional, then it will be visible via com.sun.star.beans.XPropertySet.getPropertySetInfo as a com.sun.star.beans.Property with a set com.sun.star.beans.PropertyAttribute.OPTIONAL. If the given object does not implement com.sun.star.beans.XPropertySet, then the given absentOptional is effectively ignored and can be null or empty.

Method Detail

addPropertyChangeListenerback to summary
public void addPropertyChangeListener(String propertyName, com.sun.star.beans.XPropertyChangeListener listener) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.lang.WrappedTargetException

Implements com.sun.star.beans.XPropertySet.addPropertyChangeListener.

If a listener is added more than once, it will receive all relevant notifications multiple times.

Parameters
propertyName:String

See com.sun.star.beans.XPropertySet

listener:com.sun.star.beans.XPropertyChangeListener

See com.sun.star.beans.XPropertySet

Exceptions
UnknownPropertyException:
See com.sun.star.beans.XPropertySet
WrappedTargetException:
See com.sun.star.beans.XPropertySet
addVetoableChangeListenerback to summary
public void addVetoableChangeListener(String propertyName, com.sun.star.beans.XVetoableChangeListener listener) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.lang.WrappedTargetException

Implements com.sun.star.beans.XPropertySet.addVetoableChangeListener.

If a listener is added more than once, it will receive all relevant notifications multiple times.

Parameters
propertyName:String

See com.sun.star.beans.XPropertySet

listener:com.sun.star.beans.XVetoableChangeListener

See com.sun.star.beans.XPropertySet

Exceptions
UnknownPropertyException:
See com.sun.star.beans.XPropertySet
WrappedTargetException:
See com.sun.star.beans.XPropertySet
checkUnknownback to summary
private void checkUnknown(String propertyName) throws com.sun.star.beans.UnknownPropertyException
disposeback to summary
public void dispose()

Marks this instance as being disposed.

See com.sun.star.lang.XComponent for the general concept of disposing UNO objects. On the first call to this method, all registered listeners (com.sun.star.beans.XPropertyChangeListeners and com.sun.star.beans.XVetoableChangeListeners) are notified of the disposing source. Any subsequent calls to this method are ignored.

getback to summary
private PropertySetMixin.PropertyData get(Object object, String propertyName) throws com.sun.star.beans.UnknownPropertyException
getFastPropertyValueback to summary
public Object getFastPropertyValue(int handle) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.lang.WrappedTargetException

Implements com.sun.star.beans.XFastPropertySet.getFastPropertyValue.

Parameters
handle:int

See com.sun.star.beans.XFastPropertySet

Returns:Object

See com.sun.star.beans.XFastPropertySet

Exceptions
UnknownPropertyException:
See com.sun.star.beans.XFastPropertySet
WrappedTargetException:
See com.sun.star.beans.XFastPropertySet
getPropertyback to summary
pack-priv Object getProperty(String name, com.sun.star.beans.PropertyState[] state) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.lang.WrappedTargetException
getPropertySetInfoback to summary
public com.sun.star.beans.XPropertySetInfo getPropertySetInfo()

Implements com.sun.star.beans.XPropertySet.getPropertySetInfo.

Returns:com.sun.star.beans.XPropertySetInfo

See com.sun.star.beans.XPropertySet

getPropertyValueback to summary
public Object getPropertyValue(String propertyName) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.lang.WrappedTargetException

Implements com.sun.star.beans.XPropertySet.getPropertyValue.

Parameters
propertyName:String

See com.sun.star.beans.XPropertySet

Returns:Object

See com.sun.star.beans.XPropertySet

Exceptions
UnknownPropertyException:
See com.sun.star.beans.XPropertySet
WrappedTargetException:
See com.sun.star.beans.XPropertySet
getPropertyValuesback to summary
public com.sun.star.beans.PropertyValue[] getPropertyValues()

Implements com.sun.star.beans.XPropertyAccess.getPropertyValues.

Returns:com.sun.star.beans.PropertyValue[]

See com.sun.star.beans.XPropertyAccess

getReflectionback to summary
private com.sun.star.reflection.XIdlClass getReflection(String typeName)
initPropertiesback to summary
private void initProperties(com.sun.star.reflection.XTypeDescription type, HashMap<String, PropertySetMixin.PropertyData> map, ArrayList<String> handleNames, HashSet<String> seen)
prepareSetback to summary
public void prepareSet(String propertyName, Object oldValue, Object newValue, PropertySetMixin.BoundListeners bound) throws com.sun.star.beans.PropertyVetoException

A method used by clients when implementing UNO interface type attribute setter functions.

First, this method checks whether this instance has already been disposed (see dispose), and throws a com.sun.star.beans.DisposedException if applicable. For a constrained attribute (whose setter can explicitly raise com.sun.star.beans.PropertyVetoException), this method notifies any com.sun.star.beans.XVetoableChangeListeners. For a bound attribute, this method modifies the passed-in bound so that it can afterwards be used to notify any com.sun.star.beans.XPropertyChangeListeners. This method should be called before storing the new attribute value, and bound.notifyListeners() should be called exactly once after storing the new attribute value (in case the attribute is bound; otherwise, calling bound.notifyListeners() is ignored). Furthermore, bound.notifyListeners() and this method have to be called from the same thread.

Parameters
propertyName:String

the name of the property (which is the same as the name of the attribute that is going to be set)

oldValue:Object

the property value corresponding to the old attribute value. This is only used as com.sun.star.beans.PropertyChangeEvent.OldValue, which is rather useless, anyway (see “Using the Observer Pattern” in OpenOffice.org Coding Guidelines). If the attribute that is going to be set is neither bound nor constrained, or if com.sun.star.beans.PropertyChangeEvent.OldValue should not be set, Any#VOID can be used instead.

newValue:Object

the property value corresponding to the new attribute value. This is only used as com.sun.star.beans.PropertyChangeEvent.NewValue, which is rather useless, anyway (see “Using the Observer Pattern” in OpenOffice.org Coding Guidelines), unless the attribute that is going to be set is constrained. If the attribute that is going to be set is neither bound nor constrained, or if it is only bound but com.sun.star.beans.PropertyChangeEvent.NewValue should not be set, Any#VOID can be used instead.

bound:PropertySetMixin.BoundListeners

a reference to a fresh BoundListeners instance (which has not been passed to this method before, and on which BoundListeners#notifyListeners has not yet been called); may only be null if the attribute that is going to be set is not bound

Exceptions
PropertyVetoException:
if a vetoable listener throws it.
prepareSetback to summary
public void prepareSet(String propertyName, PropertySetMixin.BoundListeners bound)

A simplified version of prepareSet(String, Object, Object, PropertySetMixin.BoundListeners).

This method is useful for attributes that are not constrained.

Parameters
propertyName:String

the name of the property (which is the same as the name of the attribute that is going to be set)

bound:PropertySetMixin.BoundListeners

a reference to a fresh BoundListeners instance (which has not been passed to this method before, and on which BoundListeners#notifyListeners has not yet been called); may only be null if the attribute that is going to be set is not bound

removePropertyChangeListenerback to summary
public void removePropertyChangeListener(String propertyName, com.sun.star.beans.XPropertyChangeListener listener) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.lang.WrappedTargetException

Implements com.sun.star.beans.XPropertySet.removePropertyChangeListener.

Parameters
propertyName:String

See com.sun.star.beans.XPropertySet

listener:com.sun.star.beans.XPropertyChangeListener

See com.sun.star.beans.XPropertySet

Exceptions
UnknownPropertyException:
See com.sun.star.beans.XPropertySet
WrappedTargetException:
See com.sun.star.beans.XPropertySet
removeVetoableChangeListenerback to summary
public void removeVetoableChangeListener(String propertyName, com.sun.star.beans.XVetoableChangeListener listener) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.lang.WrappedTargetException

Implements com.sun.star.beans.XPropertySet.removeVetoableChangeListener.

Parameters
propertyName:String

See com.sun.star.beans.XPropertySet

listener:com.sun.star.beans.XVetoableChangeListener

See com.sun.star.beans.XPropertySet

Exceptions
UnknownPropertyException:
See com.sun.star.beans.XPropertySet
WrappedTargetException:
See com.sun.star.beans.XPropertySet
resolveTypedefsback to summary
private static com.sun.star.reflection.XTypeDescription resolveTypedefs(com.sun.star.reflection.XTypeDescription type)
setFastPropertyValueback to summary
public void setFastPropertyValue(int handle, Object value) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.beans.PropertyVetoException, com.sun.star.lang.IllegalArgumentException, com.sun.star.lang.WrappedTargetException

Implements com.sun.star.beans.XFastPropertySet.setFastPropertyValue.

Parameters
handle:int

See com.sun.star.beans.XFastPropertySet

value:Object

See com.sun.star.beans.XFastPropertySet

Exceptions
UnknownPropertyException:
See com.sun.star.beans.XFastPropertySet
PropertyVetoException:
See com.sun.star.beans.XFastPropertySet
WrappedTargetException:
See com.sun.star.beans.XFastPropertySet
setPropertyback to summary
private void setProperty(String name, Object value, boolean isAmbiguous, boolean isDefaulted, short illegalArgumentPosition) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.beans.PropertyVetoException, com.sun.star.lang.IllegalArgumentException, com.sun.star.lang.WrappedTargetException
setPropertyValueback to summary
public void setPropertyValue(String propertyName, Object value) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.beans.PropertyVetoException, com.sun.star.lang.IllegalArgumentException, com.sun.star.lang.WrappedTargetException

Implements com.sun.star.beans.XPropertySet.setPropertyValue.

Parameters
propertyName:String

See com.sun.star.beans.XPropertySet

value:Object

See com.sun.star.beans.XPropertySet

Exceptions
UnknownPropertyException:
See com.sun.star.beans.XPropertySet
PropertyVetoException:
See com.sun.star.beans.XPropertySet
WrappedTargetException:
See com.sun.star.beans.XPropertySet
setPropertyValuesback to summary
public void setPropertyValues(com.sun.star.beans.PropertyValue[] props) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.beans.PropertyVetoException, com.sun.star.lang.IllegalArgumentException, com.sun.star.lang.WrappedTargetException

Implements com.sun.star.beans.XPropertyAccess.setPropertyValues.

Parameters
props:com.sun.star.beans.PropertyValue[]

See com.sun.star.beans.XPropertyAccess

Exceptions
UnknownPropertyException:
See com.sun.star.beans.XPropertyAccess
PropertyVetoException:
See com.sun.star.beans.XPropertyAccess
WrappedTargetException:
See com.sun.star.beans.XPropertyAccess
translateHandleback to summary
private String translateHandle(int handle) throws com.sun.star.beans.UnknownPropertyException
wrapValueback to summary
private Object wrapValue(Object value, com.sun.star.reflection.XIdlClass type, boolean wrapAmbiguous, boolean isAmbiguous, boolean wrapDefaulted, boolean isDefaulted, boolean wrapOptional)
com.sun.star.lib.uno.helper back to summary

public final Class PropertySetMixin.BoundListeners

extends Object
Class Inheritance

A class used by clients of PropertySetMixin when implementing UNO interface type attribute setter functions.
See Also
prepareSet(String, Object, Object, PropertySetMixin.BoundListeners)

Field Summary

Modifier and TypeField and Description
private com.sun.star.beans.PropertyChangeEvent
private ArrayList<com.sun.star.beans.XPropertyChangeListener>
private ArrayList<com.sun.star.beans.XPropertyChangeListener>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
notifyListeners()

Notifies any com.sun.star.beans.XPropertyChangeListeners.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eventback to summary
private com.sun.star.beans.PropertyChangeEvent event
specificListenersback to summary
private ArrayList<com.sun.star.beans.XPropertyChangeListener> specificListeners
unspecificListenersback to summary
private ArrayList<com.sun.star.beans.XPropertyChangeListener> unspecificListeners

Constructor Detail

BoundListenersback to summary
public BoundListeners()

Method Detail

notifyListenersback to summary
public void notifyListeners()

Notifies any com.sun.star.beans.XPropertyChangeListeners.

See Also
prepareSet(String, Object, Object, PropertySetMixin.BoundListeners)
com.sun.star.lib.uno.helper back to summary

private final Class PropertySetMixin.Info

extends WeakBase
implements com.sun.star.beans.XPropertySetInfo
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Map<String, PropertySetMixin.PropertyData>
Inherited from com.sun.star.lib.uno.helper.WeakBase:
_mapTypes

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public com.sun.star.beans.Property[]
public com.sun.star.beans.Property
public boolean
Inherited from com.sun.star.lib.uno.helper.WeakBase:
finalizegetImplementationIdgetTypesqueryAdapter

Field Detail

propertiesback to summary
private final Map<String, PropertySetMixin.PropertyData> properties

Constructor Detail

Infoback to summary
public Info(Map<String, PropertySetMixin.PropertyData> properties)

Method Detail

getPropertiesback to summary
public com.sun.star.beans.Property[] getProperties()
getPropertyByNameback to summary
public com.sun.star.beans.Property getPropertyByName(String name) throws com.sun.star.beans.UnknownPropertyException
hasPropertyByNameback to summary
public boolean hasPropertyByName(String name)
com.sun.star.lib.uno.helper back to summary

private final Class PropertySetMixin.PropertyData

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public final boolean
public final com.sun.star.beans.Property

Constructor Summary

AccessConstructor and Description
public
PropertyData(com.sun.star.beans.Property property, boolean present)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

presentback to summary
public final boolean present
propertyback to summary
public final com.sun.star.beans.Property property

Constructor Detail

PropertyDataback to summary
public PropertyData(com.sun.star.beans.Property property, boolean present)