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.
| Modifier and Type | Class and Description |
|---|---|
| public static class | PropertySetMixin.
A class used by clients of |
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final String[] | |
| private HashMap | |
| private final com. | |
| private boolean | |
| private final String[] | |
| private final com. | |
| private final com. | |
| private final Map | |
| private final Type | |
| private HashMap |
| Access | Constructor and Description |
|---|---|
| public | PropertySetMixin(com.
the component context used by this instance; must not be
null, and must supply the
context,com.sun.star.reflection.theCoreReflection and
com.sun.star.reflection.theTypeDescriptionManager singletonsthe client UNO object into which this instance is mixed in;
must not be null, and must support the given object,typethe 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
absentOptional)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.The constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPropertyChangeListener(String
See com.sun.star.beans.XPropertySet propertyName, com.See com.sun.star.beans.XPropertySet listenerImplements
|
| public void | addVetoableChangeListener(String
See com.sun.star.beans.XPropertySet propertyName, com.See com.sun.star.beans.XPropertySet listenerImplements
|
| private void | |
| public void | |
| private PropertySetMixin. | |
| public Object | Returns: See com.sun.star.beans.XFastPropertySetSee com.sun.star.beans.XFastPropertySet handle)Implements
|
| pack-priv Object | |
| public com. | Returns: See com.sun.star.beans.XPropertySetImplements
|
| public Object | Returns: See com.sun.star.beans.XPropertySetSee com.sun.star.beans.XPropertySet propertyName)Implements |
| public com. | Returns: See com.sun.star.beans.XPropertyAccessImplements
|
| private com. | |
| private void | initProperties(com.
|
| 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
oldValue, Object 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.the property value corresponding to the new
attribute value. This is only used as
newValue, PropertySetMixin.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.a reference to a fresh boundBoundListeners 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 boundA 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.a reference to a fresh boundBoundListeners 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 boundA simplified version of |
| public void | removePropertyChangeListener(String
See com.sun.star.beans.XPropertySet propertyName, com.See com.sun.star.beans.XPropertySet listenerImplements |
| public void | removeVetoableChangeListener(String
See com.sun.star.beans.XPropertySet propertyName, com.See com.sun.star.beans.XPropertySet listenerImplements |
| private static com. | |
| public void | setFastPropertyValue(int
See com.sun.star.beans.XFastPropertySet handle, Object See com.sun.star.beans.XFastPropertySet value)Implements
|
| 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 |
| public void | setPropertyValues(com.
See com.sun.star.beans.XPropertyAccess propsImplements
|
| private String | |
| private Object |
| absentOptional | back to summary |
|---|---|
| private final String[] absentOptional | |
| boundListeners | back to summary |
|---|---|
| private HashMap<String, ArrayList<com. | |
| context | back to summary |
|---|---|
| private final com. | |
| disposed | back to summary |
|---|---|
| private boolean disposed | |
| handleMap | back to summary |
|---|---|
| private final String[] handleMap | |
| idlClass | back to summary |
|---|---|
| private final com. | |
| object | back to summary |
|---|---|
| private final com. | |
| properties | back to summary |
|---|---|
| private final Map<String, PropertySetMixin. | |
| type | back to summary |
|---|---|
| private final Type type | |
| vetoListeners | back to summary |
|---|---|
| private HashMap<String, ArrayList<com. | |
| PropertySetMixin | back to summary |
|---|---|
| public PropertySetMixin(com. The constructor.
| |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(String propertyName, com. Implements
If a listener is added more than once, it will receive all relevant notifications multiple times.
| |
| addVetoableChangeListener | back to summary |
|---|---|
| public void addVetoableChangeListener(String propertyName, com. Implements
If a listener is added more than once, it will receive all relevant notifications multiple times.
| |
| checkUnknown | back to summary |
|---|---|
| private void checkUnknown(String propertyName) throws com.sun.star.beans.UnknownPropertyException | |
| dispose | back to summary |
|---|---|
| public void dispose() Marks this instance as being disposed. See | |
| get | back to summary |
|---|---|
| private PropertySetMixin. | |
| getFastPropertyValue | back to summary |
|---|---|
| public Object getFastPropertyValue(int handle) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.lang.WrappedTargetException Implements
| |
| getProperty | back to summary |
|---|---|
| pack-priv Object getProperty(String name, com. | |
| getPropertySetInfo | back to summary |
|---|---|
| public com. Implements
| |
| getPropertyValue | back to summary |
|---|---|
| public Object getPropertyValue(String propertyName) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.lang.WrappedTargetException Implements
| |
| getPropertyValues | back to summary |
|---|---|
| public com. Implements
| |
| getReflection | back to summary |
|---|---|
| private com. | |
| initProperties | back to summary |
|---|---|
| private void initProperties(com. | |
| prepareSet | back to summary |
|---|---|
| public void prepareSet(String propertyName, Object oldValue, Object newValue, PropertySetMixin. 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
| |
| prepareSet | back to summary |
|---|---|
| public void prepareSet(String propertyName, PropertySetMixin. A simplified version of This method is useful for attributes that are not constrained.
| |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(String propertyName, com. Implements
| |
| removeVetoableChangeListener | back to summary |
|---|---|
| public void removeVetoableChangeListener(String propertyName, com. Implements
| |
| resolveTypedefs | back to summary |
|---|---|
| private static com. | |
| setFastPropertyValue | back 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
| |
| setProperty | back 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 | |
| setPropertyValue | back 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
| |
| setPropertyValues | back to summary |
|---|---|
| public void setPropertyValues(com. Implements
| |
| translateHandle | back to summary |
|---|---|
| private String translateHandle(int handle) throws com.sun.star.beans.UnknownPropertyException | |
| wrapValue | back to summary |
|---|---|
| private Object wrapValue(Object value, com. | |
PropertySetMixin when implementing UNO
interface type attribute setter functions.
| Modifier and Type | Field and Description |
|---|---|
| private com. | |
| private ArrayList | |
| private ArrayList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| event | back to summary |
|---|---|
| private com. | |
| specificListeners | back to summary |
|---|---|
| private ArrayList<com. | |
| unspecificListeners | back to summary |
|---|---|
| private ArrayList<com. | |
| BoundListeners | back to summary |
|---|---|
| public BoundListeners() | |
| notifyListeners | back to summary |
|---|---|
| public void notifyListeners() Notifies any
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public com. | |
| public com. | |
| public boolean |
| properties | back to summary |
|---|---|
| private final Map<String, PropertySetMixin. | |
| Info | back to summary |
|---|---|
| public Info(Map<String, PropertySetMixin. | |
| getProperties | back to summary |
|---|---|
| public com. | |
| getPropertyByName | back to summary |
|---|---|
| public com. | |
| hasPropertyByName | back to summary |
|---|---|
| public boolean hasPropertyByName(String name) | |
| Modifier and Type | Field and Description |
|---|---|
| public final boolean | |
| public final com. |
| Access | Constructor and Description |
|---|---|
| public |
| present | back to summary |
|---|---|
| public final boolean present | |
| property | back to summary |
|---|---|
| public final com. | |
| PropertyData | back to summary |
|---|---|
| public PropertyData(com. | |