public class BeanContextChildSupport extends Object implements BeanContextChild, BeanContextServicesListener, Serializable
这是一个普遍的支持类提供实现beancontextchild协议支持。这个类可以直接继承,或封装并委派为对于一个给定的组件接口实现。
BeanContext
,
BeanContextServices
,
BeanContextChild
,
Serialized Form
Modifier and Type | Field and Description |
---|---|
protected BeanContext |
beanContext
豆语境。
|
BeanContextChild |
beanContextChildPeer
的
BeanContext 这
BeanContextChild 嵌套。
|
protected PropertyChangeSupport |
pcSupport
与此相关的
PropertyChangeSupport
BeanContextChildSupport。
|
protected boolean |
rejectedSetBCOnce
一个标志,表明至少有一个
PropertyChangeVetoException 抛出企图setbeancontext操作。
|
protected VetoableChangeSupport |
vcSupport
与此相关的
VetoableChangeSupport
BeanContextChildSupport。
|
Constructor and Description |
---|
BeanContextChildSupport()
构建一个BeanContextChildSupport,这类被定义为实现JavaBean组件本身。
|
BeanContextChildSupport(BeanContextChild bcc)
构建一个beancontextchildsupport在JavaBean组件本身实现了beancontextchild,封装,将这个接口的实现
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(String name, PropertyChangeListener pcl)
添加一个特定的属性propertychangelistener。
|
void |
addVetoableChangeListener(String name, VetoableChangeListener vcl)
添加一个特定的属性vetoablechangelistener。
|
void |
firePropertyChange(String name, Object oldValue, Object newValue)
向任何已注册的侦听器报告绑定的属性更新。
|
void |
fireVetoableChange(String name, Object oldValue, Object newValue)
报告vetoable属性更新任何注册的监听器。
|
BeanContext |
getBeanContext()
获取此
BeanContextChildSupport 嵌套
BeanContext 。
|
BeanContextChild |
getBeanContextChildPeer()
获取与此相关的
BeanContextChild
BeanContextChildSupport。
|
protected void |
initializeBeanContextResources()
这种方法可以被子类重写自己的初始化行为提供。
|
boolean |
isDelegated()
报告是否这个类是另一个的委托。
|
protected void |
releaseBeanContextResources()
这种方法可以被子类重写自己的释放行为提供。
|
void |
removePropertyChangeListener(String name, PropertyChangeListener pcl)
消除对特定财产propertychangelistener。
|
void |
removeVetoableChangeListener(String name, VetoableChangeListener vcl)
删除一个
VetoableChangeListener 。
|
void |
serviceAvailable(BeanContextServiceAvailableEvent bcsae)
可从嵌套beancontext是一个新的服务。
|
void |
serviceRevoked(BeanContextServiceRevokedEvent bcsre)
服务由嵌套的beancontext提供已被撤销。
|
void |
setBeanContext(BeanContext bc)
设置此
BeanContextChildSupport 的
BeanContext 。
|
boolean |
validatePendingSetBeanContext(BeanContext newValue)
所谓的setbeancontext验证(或其他)的变更在嵌套beancontext属性值。
|
public BeanContextChild beanContextChildPeer
BeanContext
这
BeanContextChild
嵌套。
protected PropertyChangeSupport pcSupport
protected VetoableChangeSupport vcSupport
protected transient BeanContext beanContext
protected transient boolean rejectedSetBCOnce
PropertyChangeVetoException
抛出企图setbeancontext操作。
public BeanContextChildSupport()
public BeanContextChildSupport(BeanContextChild bcc)
bcc
-底层的bean上下文的孩子
public void setBeanContext(BeanContext bc) throws PropertyVetoException
BeanContextChildSupport
的
BeanContext
。
setBeanContext
接口
BeanContextChild
bc
-被分配到
BeanContext
属性的新值
PropertyVetoException
如果改变被拒绝
public BeanContext getBeanContext()
BeanContextChildSupport
嵌套
BeanContext
。
getBeanContext
接口
BeanContextChild
BeanContextChildSupport
嵌套
BeanContext
。
public void addPropertyChangeListener(String name, PropertyChangeListener pcl)
name
或
pcl
是空的,没有异常被抛出,不采取行动。
addPropertyChangeListener
接口
BeanContextChild
name
-属性的名字听上
pcl
-
PropertyChangeListener
加以补充
public void removePropertyChangeListener(String name, PropertyChangeListener pcl)
pcl
曾不止一次地对指定的属性相同的事件源补充说,这将是一个较少的时间通知后。如果
name
是空的,没有异常被抛出,不采取行动。如果
pcl
是无效的,或者是不添加指定的属性,不引发异常而不采取行动。
removePropertyChangeListener
接口
BeanContextChild
name
-房地产,听名字
pcl
- propertychangelistener被删除
public void addVetoableChangeListener(String name, VetoableChangeListener vcl)
name
或
vcl
是空的,没有异常被抛出,不采取行动。
addVetoableChangeListener
接口
BeanContextChild
name
-属性的名字听上
vcl
-
VetoableChangeListener
加以补充
public void removeVetoableChangeListener(String name, VetoableChangeListener vcl)
VetoableChangeListener
。如果
pcl
曾不止一次地对指定的属性相同的事件源补充说,这将是一个较少的时间通知后。如果
name
是空的,没有异常被抛出,不采取行动。如果
vcl
是无效的,或者是不添加指定的属性,不引发异常而不采取行动。
removeVetoableChangeListener
接口
BeanContextChild
name
-房地产,听名字
vcl
-
VetoableChangeListener
被删除
public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
serviceRevoked
接口
BeanContextServiceRevokedListener
bcsre
-
BeanContextServiceRevokedEvent
解雇作为一个服务被撤销
public void serviceAvailable(BeanContextServiceAvailableEvent bcsae)
serviceAvailable
接口
BeanContextServicesListener
bcsae
- beancontextserviceavailableevent解雇由于服务成为可能
public BeanContextChild getBeanContextChildPeer()
public boolean isDelegated()
public void firePropertyChange(String name, Object oldValue, Object newValue)
name
-房地产,专业名称变更
oldValue
-属性的旧值
newValue
-新的属性值
public void fireVetoableChange(String name, Object oldValue, Object newValue) throws PropertyVetoException
如果旧的和新的是相等的和非空的,没有事件被发射。
name
-这是关于改变物业专业名称
oldValue
-属性的旧值
newValue
-新的属性值
PropertyVetoException
-如果收件人的祝福属性改变被回滚。
public boolean validatePendingSetBeanContext(BeanContext newValue)
newValue
-新的价值已经要求BeanContext物业
true
如果更改操作是被否决了
protected void releaseBeanContextResources()
protected void initializeBeanContextResources()
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.