|
UDK 3.2.7 Java API 言及/関連 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.sun.星/主役にする.lib.uno.helper
Class PropertySet
java.lang.反対するcom.sun.星/主役にする.lib.uno.helper.WeakBase
com.sun.星/主役にする.lib.uno.helper.ComponentBase
com.sun.星/主役にする.lib.uno.helper.PropertySet
- All 器具/実施するd Interfaces:
- XFastPropertySet, XMultiPropertySet, XPropertySet, XComponent, XTypeProvider, XInterface, XWeak
public class PropertySet
- 延長するs ComponentBase
- 器具/実施するs XPropertySet, XFastPropertySet, XMultiPropertySet
- 延長するs ComponentBase
This class is an 実施 of the interfaces com.sun.星/主役にする.beans.XPropertySet,
com.sun.星/主役にする.beans.XFastPropertySet and com.sun.星/主役にする.beans.XMultiPropertySet. This
class has to be 相続するd to be used. The values of 所有物/資産/財産s are 蓄える/店d in member
variables of the 相続するing class. By 無視/無効ing the methods
convertPropertyValue,
setPropertyValueNoBroadcast and
getPropertyValue(所有物/資産/財産) one can 決定する how
所有物/資産/財産 values are 蓄える/店d.
When using the 供給(する)d 実施s of this class then the member variables which
持つ/拘留する 所有物/資産/財産 values have to be 宣言するd in the class which 相続するs last in the 相続するing
chain and they have to be public
所有物/資産/財産s have to be 登録(する)d by one of the registerProperty methods. They take の中で other arguments an 反対する 指名するd id which has to be a String that 代表するs the 指名する of the member variable. The 登録(する)ing has to occur in the 建設者 of the 相続するing class. It is no 許すd to 追加する or change 所有物/資産/財産s later on.
Example:
public class Foo 延長するs PropertySet
{
保護するd int intProp;
public Foo()
{
registerProperty("PropertyA", 0, new Type(int.class), (short)0, "intProp");
}
}
| Field 要約 | |
|---|---|
保護するd MultiTypeInterfaceContainer |
aBoundLC
|
保護するd MultiTypeInterfaceContainer |
aVetoableLC
|
保護するd XPropertySetInfo |
propertySetInfo
|
| Fields 相続するd from class com.sun.星/主役にする.lib.uno.helper.ComponentBase |
|---|
bDisposed, bInDispose, listenerContainer |
| Fields 相続するd from class com.sun.星/主役にする.lib.uno.helper.WeakBase |
|---|
_mapImplementationIds, _mapTypes |
| Fields 相続するd from interface com.sun.星/主役にする.beans.XPropertySet |
|---|
UNOTYPEINFO |
| Fields 相続するd from interface com.sun.星/主役にする.beans.XFastPropertySet |
|---|
UNOTYPEINFO |
| Fields 相続するd from interface com.sun.星/主役にする.beans.XMultiPropertySet |
|---|
UNOTYPEINFO |
| Fields 相続するd from interface com.sun.星/主役にする.lang.XComponent |
|---|
UNOTYPEINFO |
| Fields 相続するd from interface com.sun.星/主役にする.uno.XWeak |
|---|
UNOTYPEINFO |
| Fields 相続するd from interface com.sun.星/主役にする.lang.XTypeProvider |
|---|
UNOTYPEINFO |
| 建設者 要約 | |
|---|---|
PropertySet()
|
|
| Method 要約 | |
|---|---|
無効の |
addPropertiesChangeListener(String[] propNames,
XPropertiesChangeListener listener)
|
無効の |
addPropertyChangeListener(String str,
XPropertyChangeListener xPropertyChangeListener)
|
無効の |
addVetoableChangeListener(String str,
XVetoableChangeListener xVetoableChangeListener)
|
保護するd 無効の |
assignPropertyId(所有物/資産/財産 支え(る),
反対する id)
割り当てるs an identifyer 反対する to a 所有物/資産/財産 反対する so that the identifyer can be 得るd by getPropertyId later on. |
保護するd boolean |
convertPropertyValue(所有物/資産/財産 所有物/資産/財産,
反対する[] newVal,
反対する[] curVal,
反対する setVal)
変えるs a value in a way so that it is appropriate for 蓄える/店ing as a 所有物/資産/財産 value, that is setPropertyValueNoBroadcast can 過程 the value without any その上の
転換. |
保護するd 無効の |
解雇する/砲火/射撃(所有物/資産/財産[] 所有物/資産/財産s,
反対する[] newValues,
反対する[] oldValues,
boolean bVetoable)
This method 解雇する/砲火/射撃s events to XPropertyChangeListener,XVetoableChangeListener and XPropertiesChangeListener event 沈むs. |
無効の |
firePropertiesChangeEvent(String[] propNames,
XPropertiesChangeListener listener)
|
反対する |
getFastPropertyValue(int nHandle)
|
保護するd 所有物/資産/財産[] |
getProperties()
Returns an array of all 所有物/資産/財産 反対するs or an array of length null if there are no 所有物/資産/財産s. |
保護するd 所有物/資産/財産 |
getProperty(String propertyName)
Returns the 所有物/資産/財産 反対する for a given 所有物/資産/財産 指名する or null if that 所有物/資産/財産 does not 存在するs (i.e. |
保護するd 所有物/資産/財産 |
getPropertyByHandle(int nHandle)
Returns the 所有物/資産/財産 反対する with a 扱う (所有物/資産/財産.扱う) as 明示するd by the argument nHandle. |
保護するd 反対する |
getPropertyId(所有物/資産/財産 支え(る))
Returns the identifyer 反対する for a 確かな 所有物/資産/財産. |
XPropertySetInfo |
getPropertySetInfo()
|
保護するd 反対する |
getPropertyValue(所有物/資産/財産 所有物/資産/財産)
Retrieves the value of a 所有物/資産/財産. |
反対する |
getPropertyValue(String 指名する)
|
反対する[] |
getPropertyValues(String[] propNames)
If a value for a 所有物/資産/財産 could not be retrieved then the 各々の element in the returned array has the value null. |
保護するd 無効の |
initMappings()
Initializes data structures used for mappings of 所有物/資産/財産 指名するs to 所有物/資産/財産 反対する, 所有物/資産/財産 扱うs to 所有物/資産/財産 反対するs and 所有物/資産/財産 反対するs to id 反対するs. |
保護するd 無効の |
postDisposing()
Makes sure that listeners which are kept in aBoundLC (XPropertyChangeListener) and aVetoableLC (XVetoableChangeListener) receive a 配置する/処分する/したい気持ちにさせるing call. |
保護するd 無効の |
putProperty(所有物/資産/財産 支え(る))
蓄える/店s a 所有物/資産/財産 反対する so that it can be retrieved subsequently by getProperty(String),getProperties(),getPropertyByHandle(int). |
保護するd 無効の |
registerProperty(所有物/資産/財産 支え(る),
反対する id)
登録(する)s a 所有物/資産/財産 with this helper class and associates the argument id with it. |
保護するd 無効の |
registerProperty(String 指名する,
int 扱う,
Type type,
short せいにするs,
反対する id)
登録(する)s a 所有物/資産/財産 with this helper class and associates the argument id with it. |
保護するd 無効の |
registerProperty(String propertyName,
short せいにするs)
登録(する)s a 所有物/資産/財産 with this class. |
保護するd 無効の |
registerProperty(String propertyName,
String memberName,
short せいにするs)
登録(する)s a 所有物/資産/財産 with this class. |
保護するd 無効の |
registerProperty(String 指名する,
Type type,
short せいにするs,
反対する id)
登録(する)s a 所有物/資産/財産 with this class and associates the argument id with it. |
無効の |
removePropertiesChangeListener(XPropertiesChangeListener xPropertiesChangeListener)
|
無効の |
removePropertyChangeListener(String propName,
XPropertyChangeListener listener)
|
無効の |
removeVetoableChangeListener(String propName,
XVetoableChangeListener listener)
|
無効の |
setFastPropertyValue(int nHandle,
反対する aValue)
|
保護するd 無効の |
setPropertyValue(所有物/資産/財産 支え(る),
反対する value)
始める,決めるs the value of a 所有物/資産/財産. |
無効の |
setPropertyValue(String 指名する,
反対する value)
始める,決めるs the value of a 所有物/資産/財産. |
保護するd 無効の |
setPropertyValueNoBroadcast(所有物/資産/財産 所有物/資産/財産,
反対する newVal)
始める,決めるs the value of a 所有物/資産/財産. |
無効の |
setPropertyValues(String[] propNames,
反対する[] values)
If the array of 所有物/資産/財産 指名するs 含む/封じ込めるs an unknown 所有物/資産/財産 then it will be ignored. |
| Methods 相続するd from class com.sun.星/主役にする.lib.uno.helper.ComponentBase |
|---|
addEventListener, 配置する/処分する/したい気持ちにさせる, 完結する, preDisposing, removeEventListener |
| Methods 相続するd from class com.sun.星/主役にする.lib.uno.helper.WeakBase |
|---|
getImplementationId, getTypes, queryAdapter |
| Methods 相続するd from class java.lang.反対する |
|---|
clone, equals, getClass, hashCode, 通知する, notifyAll, toString, wait, wait, wait |
| Field 詳細(に述べる) |
|---|
propertySetInfo
保護するd XPropertySetInfo propertySetInfo
aBoundLC
保護するd MultiTypeInterfaceContainer aBoundLC
aVetoableLC
保護するd MultiTypeInterfaceContainer aVetoableLC
| 建設者 詳細(に述べる) |
|---|
PropertySet
public PropertySet()
| Method 詳細(に述べる) |
|---|
registerProperty
保護するd 無効の registerProperty(所有物/資産/財産 支え(る), 反対する id)
- 登録(する)s a 所有物/資産/財産 with this helper class and associates the argument id with it.
id is used to identify the 貯蔵 of the 所有物/資産/財産 value. How 所有物/資産/財産 values are 蓄える/店d
and retrieved is 決定するd by the methods
convertPropertyValue,setPropertyValueNoBroadcastandgetPropertyValueThese methods 推定する/予想する id to be a java.lang.String which 代表するs the 指名する of a member variable which 持つ/拘留するs the 所有物/資産/財産 value. Only 所有物/資産/財産s which are 登録(する)d can be 接近d. 登録 has to occur during initialization of the 相続するing class (i.e. within the contructor).- Parameters:
支え(る)- The 所有物/資産/財産 to be 登録(する)d.id- Identifies the 所有物/資産/財産s 貯蔵.- See Also:
getPropertyId(com.sun.星/主役にする.beans.所有物/資産/財産)
registerProperty
保護するd 無効の registerProperty(String 指名する, int 扱う, Type type, short せいにするs, 反対する id)
- 登録(する)s a 所有物/資産/財産 with this helper class and associates the argument id with it.
It does the same as
registerProperty(所有物/資産/財産, 反対する). The first four arguments are used to 建設する a 所有物/資産/財産 反対する. 登録 has to occur during initialization of the 相続するing class (i.e. within the contructor)- Parameters:
指名する- The 所有物/資産/財産's 指名する (所有物/資産/財産.指名する).扱う- The 所有物/資産/財産's 扱う (所有物/資産/財産.扱う).Type- The 所有物/資産/財産's type (所有物/資産/財産.Type).せいにするs- The 所有物/資産/財産's せいにするs (所有物/資産/財産.せいにするs).id- Identifies the 所有物/資産/財産's 貯蔵.
registerProperty
保護するd 無効の registerProperty(String 指名する, Type type, short せいにするs, 反対する id)
- 登録(する)s a 所有物/資産/財産 with this class and associates the argument id with it.
It does the same as
registerProperty(所有物/資産/財産, 反対する). The first three arguments are used to 建設する a 所有物/資産/財産 反対する. The value for the 所有物/資産/財産.扱う is 生成するd and does not have to be 明示するd here. Use this method for 登録(する)ing a 所有物/資産/財産 if you do not care about the 所有物/資産/財産's 扱うs. 登録 has to occur during initialization of the 相続するing class (i.e. within the contructor).- Parameters:
指名する- The 所有物/資産/財産's 指名する (所有物/資産/財産.指名する).扱う- The 所有物/資産/財産's 扱う (所有物/資産/財産.扱う).Type- The 所有物/資産/財産's type (所有物/資産/財産.Type).せいにするs- The 所有物/資産/財産's せいにするs (所有物/資産/財産.せいにするs).id- Identifies the 所有物/資産/財産's 貯蔵.
registerProperty
保護するd 無効の registerProperty(String propertyName, String memberName, short せいにするs)
- 登録(する)s a 所有物/資産/財産 with this class. This method 推定する/予想するs that 所有物/資産/財産 values
are 蓄える/店d in member variables as is the 事例/患者 if the methods convertPropertyValue,
setPropertyValueNoBroadcast and getPropertyValue(所有物/資産/財産) are not overridden.
It is 推定するd that the type of the member variable
corresponds 所有物/資産/財産.Type. For example, if the TypeClass of 所有物/資産/財産.Type is to be
a TypeClass.SHORT then the member must be a short or java.lang.Short.
The 扱う for the 所有物/資産/財産 is 生成するd.
If there is no member with the 明示するd 指名する or if the member has an 相いれない type then a com.sun.星/主役にする.uno.RuntimeException is thrown.- Parameters:
propertyName- The 指名する of the 所有物/資産/財産.memberName- The 指名する of the member variable that 持つ/拘留するs the value of the 所有物/資産/財産.せいにするs- The 所有物/資産/財産 せいにするs.
registerProperty
保護するd 無効の registerProperty(String propertyName, short せいにするs)
- 登録(する)s a 所有物/資産/財産 with this class.
It is 推定するd that the 指名する of 所有物/資産/財産 is equal to the 指名する of the member variable
that 持つ/拘留するs the 所有物/資産/財産 value.
- Parameters:
propertyName- The 指名する of the 所有物/資産/財産 and the member variable that 持つ/拘留するs the 所有物/資産/財産's value.せいにするs- The 所有物/資産/財産 せいにするs.- See Also:
registerProperty(String, String, short)
getProperty
保護するd 所有物/資産/財産 getProperty(String propertyName)
- Returns the 所有物/資産/財産 反対する for a given 所有物/資産/財産 指名する or null if that 所有物/資産/財産 does
not 存在するs (i.e. it has not been 登録(する)d). 無視/無効 this method
if you want to 器具/実施する your own mapping from 所有物/資産/財産 指名するs to 所有物/資産/財産 反対するs.
Then you also have to 無視/無効
initMappings(),getProperties()andputProperty(所有物/資産/財産).- Parameters:
propertyName- The 指名する of the 所有物/資産/財産 (所有物/資産/財産.指名する)- Returns:
- The 所有物/資産/財産 反対する with the 指名する propertyName.
getPropertyByHandle
保護するd 所有物/資産/財産 getPropertyByHandle(int nHandle)
- Returns the 所有物/資産/財産 反対する with a 扱う (所有物/資産/財産.扱う) as 明示するd by the argument
nHandle. The method returns null if there is no such 所有物/資産/財産 (i.e. it has not
been 登録(する)d). 無視/無効 this method if you want to 器具/実施する your own mapping from 扱うs
to 所有物/資産/財産 反対するs. Then you also have to 無視/無効
initMappings(),putProperty(所有物/資産/財産).- Parameters:
nHandle- The 扱う of the 所有物/資産/財産 (所有物/資産/財産.扱う).- Returns:
- The 所有物/資産/財産 反対する with the 扱う nHandle
getProperties
保護するd 所有物/資産/財産[] getProperties()
- Returns an array of all 所有物/資産/財産 反対するs or an array of length null if there
are no 所有物/資産/財産s. 無視/無効 this method if you want to 器具/実施する your own mapping from 指名するs
to 所有物/資産/財産 反対するs. Then you also have to 無視/無効
initMappings(),getProperty(String)andputProperty(com.sun.星/主役にする.beans.所有物/資産/財産).- Returns:
- Array of all 所有物/資産/財産 反対するs.
putProperty
保護するd 無効の putProperty(所有物/資産/財産 支え(る))
- 蓄える/店s a 所有物/資産/財産 反対する so that it can be retrieved subsequently by
getProperty(String),getProperties(),getPropertyByHandle(int). 無視/無効 this method if you want to 器具/実施する your own mapping from 扱うs to 所有物/資産/財産 反対するs and 指名するs to 所有物/資産/財産 反対するs. Then you also need to 無視/無効initMappings(),getProperty(String),getProperties(),getPropertyByHandle(int).- Parameters:
支え(る)- The 所有物/資産/財産 反対する that is to be 蓄える/店d.
assignPropertyId
保護するd 無効の assignPropertyId(所有物/資産/財産 支え(る), 反対する id)
- 割り当てるs an identifyer 反対する to a 所有物/資産/財産 反対する so that the identifyer
can be 得るd by
getPropertyIdlater on. The identifyer is used to 明示する a 確かな 貯蔵 for the 所有物/資産/財産's value. If you do not 無視/無効setPropertyValueNoBroadcastorgetPropertyValue(所有物/資産/財産)then the argument id has to be a java.lang.String that equals the 指名する of the member variable that 持つ/拘留するs the 所有物/資産/財産's value. 無視/無効 this method if you want to 器具/実施する your own mapping from 所有物/資産/財産 反対するs to ids or if you need ids of a type other then java.lang.String. Then you also need to 無視/無効initMappingsandgetPropertyId.- Parameters:
支え(る)- The 所有物/資産/財産 反対する that is 存在 割り当てるd an id.id- The 反対する which identifies the 貯蔵 used for the 所有物/資産/財産's value.- See Also:
registerProperty(所有物/資産/財産, 反対する)
getPropertyId
保護するd 反対する getPropertyId(所有物/資産/財産 支え(る))
- Returns the identifyer 反対する for a 確かな 所有物/資産/財産. The 反対する must have been
以前 割り当てるd to the 所有物/資産/財産 反対する by
assignPropertyId. 無視/無効 this method if you want to 器具/実施する your own mapping from 所有物/資産/財産 反対するs to ids. Then you also need to 無視/無効initMappingsandassignPropertyId.- Parameters:
支え(る)- The 所有物/資産/財産 for which the id is to be retrieved.- Returns:
- The id 反対する that identifies the 貯蔵 used for the 所有物/資産/財産's value.
- See Also:
registerProperty(所有物/資産/財産, 反対する)
initMappings
保護するd 無効の initMappings()
- Initializes data structures used for mappings of 所有物/資産/財産 指名するs to 所有物/資産/財産 反対する,
所有物/資産/財産 扱うs to 所有物/資産/財産 反対するs and 所有物/資産/財産 反対するs to id 反対するs.
無視/無効 this method if you want to 器具/実施する your own mappings. Then you also need to
無視/無効
putProperty,getProperty,getPropertyByHandle(int),assignPropertyIdandgetPropertyId.
postDisposing
保護するd 無効の postDisposing()
- Makes sure that listeners which are kept in aBoundLC (XPropertyChangeListener) and aVetoableLC
(XVetoableChangeListener) receive a 配置する/処分する/したい気持ちにさせるing call. Also those listeners are relesased.
- 無視/無効s:
postDisposingin classComponentBase
addPropertyChangeListener
public 無効の addPropertyChangeListener(String str, XPropertyChangeListener xPropertyChangeListener) throws UnknownPropertyException, WrappedTargetException
- 明示するd by:
addPropertyChangeListenerin interfaceXPropertySet
addVetoableChangeListener
public 無効の addVetoableChangeListener(String str, XVetoableChangeListener xVetoableChangeListener) throws UnknownPropertyException, WrappedTargetException
- 明示するd by:
addVetoableChangeListenerin interfaceXPropertySet
getPropertySetInfo
public XPropertySetInfo getPropertySetInfo()
- 明示するd by:
getPropertySetInfoin interfaceXMultiPropertySet- 明示するd by:
getPropertySetInfoin interfaceXPropertySet
getPropertyValue
public 反対する getPropertyValue(String 指名する) throws UnknownPropertyException, WrappedTargetException
- 明示するd by:
getPropertyValuein interfaceXPropertySet
removePropertyChangeListener
public 無効の removePropertyChangeListener(String propName, XPropertyChangeListener listener) throws UnknownPropertyException, WrappedTargetException
- 明示するd by:
removePropertyChangeListenerin interfaceXPropertySet
removeVetoableChangeListener
public 無効の removeVetoableChangeListener(String propName, XVetoableChangeListener listener) throws UnknownPropertyException, WrappedTargetException
- 明示するd by:
removeVetoableChangeListenerin interfaceXPropertySet
setPropertyValue
public 無効の setPropertyValue(String 指名する, 反対する value) throws UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException
- 始める,決めるs the value of a 所有物/資産/財産.
The idl description for this interfaces, 規定するs that the argument value is an Any. Since a java.lang.反対する
言及/関連 has the same meaning as an Any this 機能(する)/行事 受託するs
java anys (com.sun.星/主役にする.uno.Any) and all other appropriate 反対するs as arguments. The value argument can be one
of these:
- java.lang.Boolean
- java.lang.Character
- java.lang.Byte
- java.lang.Short
- java.lang.Integer
- java.lang.Long
- java.lang.Float
- java.lang.二塁打
- java.lang.String
- com.sun.星/主役にする.uno.Type
- 反対するs which 器具/実施する UNO interfaces
- arrays which 含む/封じ込める elements of the types above
- com.sun.星/主役にする.uno.Any 含む/封じ込めるing an instance of one of the above types
- 明示するd by:
setPropertyValuein interfaceXPropertySet
- Parameters:
指名する- The 指名する of the 所有物/資産/財産.value- The new value of the 所有物/資産/財産. *- Throws:
UnknownPropertyExceptionPropertyVetoExceptionIllegalArgumentExceptionWrappedTargetException
setPropertyValue
保護するd 無効の setPropertyValue(所有物/資産/財産 支え(る), 反対する value) throws UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException
- 始める,決めるs the value of a 所有物/資産/財産. It checks if the 所有物/資産/財産's せいにするs (READONLY,MAYBEVOID), 許す that the
new value can be 始める,決める. It also 原因(となる)s the notification of listeners.
- Parameters:
支え(る)- The 所有物/資産/財産 whose value is to be 始める,決める.value- The new value for the 所有物/資産/財産.- Throws:
UnknownPropertyExceptionPropertyVetoExceptionIllegalArgumentExceptionWrappedTargetException
convertPropertyValue
保護するd boolean convertPropertyValue(所有物/資産/財産 所有物/資産/財産, 反対する[] newVal, 反対する[] curVal, 反対する setVal) throws IllegalArgumentException, WrappedTargetException, UnknownPropertyException
- 変えるs a value in a way so that it is appropriate for 蓄える/店ing as a 所有物/資産/財産 value, that is
setPropertyValueNoBroadcastcan 過程 the value without any その上の 転換. This 実施 推定するs that the values are 蓄える/店d in member variables of the furthest 相続するing class. For example, class A 相続するs this class then members of class A can 持つ/拘留する 所有物/資産/財産 values. If there is a class B which 相続するs A then only members of B can 持つ/拘留する 所有物/資産/財産 values. The variables must be public. A 所有物/資産/財産 must have been 登録(する)d (e.g. byregisterProperty(所有物/資産/財産, 反対する)in order for this method to work. The identifyer argument (type 反対する) used in the registerProperty methods must be a java.lang.String, which is, the 指名する of the member variable that 持つ/拘留するs the 所有物/資産/財産 value. If one 選ぶs to 蓄える/店 values 異なって then one may 無視/無効 this method, 同様に assetPropertyValueNoBroadcastandgetPropertyValue(所有物/資産/財産). This method is always called as a result of a call to one of the setter methods, such asXPropertySet.setPropertyValue,XFastPropertySet.setFastPropertyValueandXMultiPropertySet.setPropertyValues. If this method fails, that is, it returns 誤った or throws an exception, then no listeners are 通知するd and the 所有物/資産/財産 value, that was ーするつもりであるd to be changed, remains untouched.
This method does not have to を取り引きする 所有物/資産/財産 せいにするs, such as PropertyAttribute.READONLY or PropertyAttribute.MAYBEVOID. The 過程ing of these せいにするs occurs in the calling methods.
Only if this method returns 首尾よく その上の 過程ing, such as listener notification and finally the modifiction of the 所有物/資産/財産's value, will occur.
The actual modification of a 所有物/資産/財産's value is done bysetPropertyValueNoBroadcastwhich is called その後の to convertPropertyValue.This method 変えるs values by help of the com.sun.星/主役にする.uno.AnyConverter which only does a few 広げるing 転換s on integer types and floating point types. For example, there is the 所有物/資産/財産 PropA with a Type 同等(の) to int.class and the value of the 所有物/資産/財産 is to be 蓄える/店d in a member variable of type int with 指名する intProp. Then setPropertyValue is called:
始める,決める.setPropertyValue( "PropA", new Byte( (byte)111));
At some point setPropertyValue will call convertPropertyValue and pass in the Byte 反対する. Since we 許す that Byte values can be used with the 所有物/資産/財産 and know that the value is to be 蓄える/店d in intProp (type int) we 変える the Byte 反対する into an Integer 反対する which is then returned in the out-parameter newVal. This 転換 is 現実に 成し遂げるd by the AnyConverter. Later the setPropertyValueNoBroadcast is called with that Integer 反対する and the int value can be easily 抽出するd from the 反対する and be 割り当てるd to the member intProp.The method 扱うs Any arguments the same as 反対する arguments. That is, the setVal argument can be a java.lang.Boolean or a com.sun.星/主役にする.uno.Any 含む/封じ込めるing a java.lang.Boolean. Likewise, a member 含む/封じ込めるing a 所有物/資産/財産 value can be a com.sun.星/主役にする.uno.Any or an java.lang.反対する. Then, no 転換 is necessary, since they can 持つ/拘留する all possible values. However, if the member is an 反対する and setVal is an Any then the 反対する 含む/封じ込めるd in the any is 割り当てるd to the member. The extra type (警察などへの)密告,告訴(状) which 存在するs as Type 反対する in the Any will get lost. If this is not ーするつもりであるd then use an Any variable rather then an 反対する.
If a member is an 反対する or Any and the argument setVal is an 反対する, other than String or array, then it is 推定するd to be an UNO 反対する and queried for XInterface. If successful, the out-param newVal returns the XInterface.
If a member is an UNO interface, then setVal is queried for this interface and the result is returned. If setVal is null then newVal will be null too after return.If a 所有物/資産/財産 value is 蓄える/店d using a 原始の type the the out-parameters curVal and newVal 含む/封じ込める the 各々の wrapper class (e.g.java.lang.Byte, etc.). curVal is used in calls to the XVetoableChangeListener and XPropertyChangeListener.
- Parameters:
所有物/資産/財産- - in-param 所有物/資産/財産 for which the data is to be 変えるd.newVal- - out-param which 含む/封じ込めるs the 変えるd value on return.curVal- - out-param the 現在の value of the 所有物/資産/財産. It is used in calls to the XVetoableChangeListener and XPropertyChangeListener.setVal- - in-param. The value that is to be 変えるd so that it matches 所有物/資産/財産 and the internally used dataformat for that 所有物/資産/財産.- Returns:
- true - 転換 was successful. newVal 含む/封じ込めるs a valid value for the 所有物/資産/財産. 誤った - 転換 failed for some 推論する/理由.
- Throws:
IllegalArgumentException- The value 供給するd is unfit for the 所有物/資産/財産.WrappedTargetException- - An exception occured during the 転換, that is to be made known to the 報知係.UnknownPropertyException
setPropertyValueNoBroadcast
保護するd 無効の setPropertyValueNoBroadcast(所有物/資産/財産 所有物/資産/財産, 反対する newVal) throws WrappedTargetException
- 始める,決めるs the value of a 所有物/資産/財産. In this 実施 所有物/資産/財産 values are 蓄える/店d in member variables
(see
convertPropertyValueNotification of 所有物/資産/財産 listeners does not occur in this method. By 無視/無効ing this method one can take 十分な 支配(する)/統制する about how 所有物/資産/財産 values are 蓄える/店d. But then, theconvertPropertyValueandgetPropertyValue(所有物/資産/財産)must be overridden too. A 所有物/資産/財産 with the MAYBEVOID せいにする 始める,決める, is 蓄える/店d as null value. Therefore the member variable must be an 反対する ーするために make use of the 所有物/資産/財産 せいにする. An exception is Any. The Any variable can be 最初 null, but once it is 始める,決める the 言及/関連 will not become null again. If the value is to be 始める,決める to 無効の then a new Any will be 蓄える/店d with a valid type but without a value (i.e. Any.getObject returns null). If a 所有物/資産/財産 has the READONLY せいにする 始める,決める, and one of the setter methods, such as setPropertyValue, has been called, then this method is not going to be called.- Parameters:
所有物/資産/財産- the 所有物/資産/財産 for which the new value is 始める,決めるvalue- the new value for the 所有物/資産/財産.- Throws:
WrappedTargetException- An exception, which has to be made known to the 報知係, occured during the setting of the value.
getPropertyValue
保護するd 反対する getPropertyValue(所有物/資産/財産 所有物/資産/財産)
- Retrieves the value of a 所有物/資産/財産. This 実施 推定するs that the values are 蓄える/店d in member variables
of the furthest 相続するing class (see
convertPropertyValue) and that the variables are public. The 所有物/資産/財産 must have been 登録(する)d, for example byregisterProperty(所有物/資産/財産, 反対する). The identifyer 反対する argument must have been a java.lang.String which was the 指名する of the member variable 持つ/拘留するing the 所有物/資産/財産 value. When 所有物/資産/財産s are to be 蓄える/店d 異なって one has to 無視/無効 this method 同様に asconvertPropertyValue(com.sun.星/主役にする.beans.所有物/資産/財産, java.lang.反対する[], java.lang.反対する[], java.lang.反対する)andsetPropertyValueNoBroadcast(com.sun.星/主役にする.beans.所有物/資産/財産, java.lang.反対する).
If a value is 蓄える/店d in a variable of a 原始の type then this method returns an instance of the 各々の wrapper class (e.g. java.lang.Boolean).- Parameters:
所有物/資産/財産- The 所有物/資産/財産 for which the value is to be retrieved.- Returns:
- The value of the 所有物/資産/財産.
解雇する/砲火/射撃
保護するd 無効の 解雇する/砲火/射撃(所有物/資産/財産[] 所有物/資産/財産s, 反対する[] newValues, 反対する[] oldValues, boolean bVetoable) throws PropertyVetoException
- This method 解雇する/砲火/射撃s events to XPropertyChangeListener,XVetoableChangeListener and
XPropertiesChangeListener event 沈むs.
To distinguish what listeners are to be called the argument bVetoable is to be 始める,決める to true if
a XVetoableChangeListener is meant. For XPropertyChangeListener and XPropertiesChangeListener
it is to be 始める,決める to 誤った.
- Parameters:
所有物/資産/財産s- 所有物/資産/財産s wich will be or have been 影響する/感情d.newValues- the new values of the 所有物/資産/財産s.oldValues- the old values of the 所有物/資産/財産s.bVetoable- true means 解雇する/砲火/射撃 to VetoableChangeListener, 誤った means 解雇する/砲火/射撃 to XPropertyChangedListener and XMultiPropertyChangedListener.- Throws:
PropertyVetoException
setFastPropertyValue
public 無効の setFastPropertyValue(int nHandle,
反対する aValue)
throws UnknownPropertyException,
PropertyVetoException,
IllegalArgumentException,
WrappedTargetException
- 明示するd by:
setFastPropertyValuein interfaceXFastPropertySet
getFastPropertyValue
public 反対する getFastPropertyValue(int nHandle) throws UnknownPropertyException, WrappedTargetException
- 明示するd by:
getFastPropertyValuein interfaceXFastPropertySet
addPropertiesChangeListener
public 無効の addPropertiesChangeListener(String[] propNames, XPropertiesChangeListener listener)
- 明示するd by:
addPropertiesChangeListenerin interfaceXMultiPropertySet
firePropertiesChangeEvent
public 無効の firePropertiesChangeEvent(String[] propNames, XPropertiesChangeListener listener)
- 明示するd by:
firePropertiesChangeEventin interfaceXMultiPropertySet
getPropertyValues
public 反対する[] getPropertyValues(String[] propNames)
- If a value for a 所有物/資産/財産 could not be retrieved then the 各々の element in the returned
array has the value null.
- 明示するd by:
getPropertyValuesin interfaceXMultiPropertySet
removePropertiesChangeListener
public 無効の removePropertiesChangeListener(XPropertiesChangeListener xPropertiesChangeListener)
- 明示するd by:
removePropertiesChangeListenerin interfaceXMultiPropertySet
setPropertyValues
public 無効の setPropertyValues(String[] propNames, 反対する[] values) throws PropertyVetoException, IllegalArgumentException, WrappedTargetException
- If the array of 所有物/資産/財産 指名するs 含む/封じ込めるs an unknown 所有物/資産/財産 then it will be ignored.
- 明示するd by:
setPropertyValuesin interfaceXMultiPropertySet
|
UDK 3.2.7 Java API 言及/関連 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||


