public interface BeanContextChild
JavaBeans希望被嵌套,并获得参考其执行环境或语境,由beancontext子接口的定义必须实现这个接口。
Conformant BeanContexts自加入beancontextchild对象的副作用应通过参考本身通过这个接口的setbeancontext()方法。
请注意,beancontextchild可以拒绝在状态变化的响应propertyvetoedexception投掷。
为了持久性机制在beancontextchild实例在广泛的各种场景功能正常,实现此接口的类必须定义为短暂的,任何或所有字段,或实例变量,可能含有,或代表,引用嵌套beancontext实例或其他资源得到beancontext通过任何指定的机制。
BeanContext,
PropertyChangeEvent,
PropertyChangeListener,
PropertyVetoException,
VetoableChangeListener
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(String name, PropertyChangeListener pcl)
增加了
BeanContextChild为了一
PropertyChangeListener接受
PropertyChangeEvent时指定的属性发生了变化。
|
void |
addVetoableChangeListener(String name, VetoableChangeListener vcl)
增加了一个
VetoableChangeListener这
BeanContextChild接收事件时,指定的属性的变化。
|
BeanContext |
getBeanContext()
获取与此相关的
BeanContext
BeanContextChild。
|
void |
removePropertyChangeListener(String name, PropertyChangeListener pcl)
除去这一
PropertyChangeListener
BeanContextChild以便它不再接收
PropertyChangeEvents当指定的属性发生了变化。
|
void |
removeVetoableChangeListener(String name, VetoableChangeListener vcl)
除去这一
VetoableChangeListener
BeanContextChild以便它不再接收事件时,指定的属性的变化。
|
void |
setBeanContext(BeanContext bc)
实现此接口的对象,应与参数java.beans.propertychangeevent,火属性名”beancontext”属性的旧值(前面的嵌套
BeanContext实例,或
null)、价值(当前嵌套的
BeanContext实例,或
null)。
|
void setBeanContext(BeanContext bc) throws PropertyVetoException
实现此接口的对象,应与参数java.beans.propertychangeevent,火属性名”beancontext”属性的旧值(前面的嵌套BeanContext实例,或null)、价值(当前嵌套的BeanContext实例,或null)。
在这个beancontextchild嵌套beancontext属性值的改变可以通过把适当的异常否决。
bc -这
BeanContext联想这
BeanContextChild。
PropertyVetoException -如果指定
BeanContext除了拒绝。
BeanContext getBeanContext()
BeanContext
BeanContextChild。
BeanContext
BeanContextChild。
void addPropertyChangeListener(String name, PropertyChangeListener pcl)
BeanContextChild为了一
PropertyChangeListener接受
PropertyChangeEvent时指定的属性发生了变化。
name -属性的名字听上
pcl -
PropertyChangeListener添加
void removePropertyChangeListener(String name, PropertyChangeListener pcl)
PropertyChangeListener
BeanContextChild以便它不再接收
PropertyChangeEvents当指定的属性发生了变化。
name -房地产,听名字
pcl -
PropertyChangeListener删除
void addVetoableChangeListener(String name, VetoableChangeListener vcl)
VetoableChangeListener这
BeanContextChild接收事件时,指定的属性的变化。
name -属性的名字听上
vcl -
VetoableChangeListener添加
void removeVetoableChangeListener(String name, VetoableChangeListener vcl)
VetoableChangeListener
BeanContextChild以便它不再接收事件时,指定的属性的变化。
name -房地产,听名字。
vcl -
VetoableChangeListener删除。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.