| |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.beans.beancontext
类 BeanContextChildSupport
java.lang.Object java.beans.beancontext.BeanContextChildSupport
- 所有已实现的接口:
- BeanContextChild, BeanContextServiceRevokedListener, BeanContextServicesListener, Serializable, EventListener
- 直接已知子类:
- BeanContextSupport
public class BeanContextChildSupport
- extends Object
- implements BeanContextChild, BeanContextServicesListener, Serializable
这是一个为实现 BeanContextChild 协议提供支持的一般支持类。 要为给定的组件实现此接口,可以直接为此类创建子类,也可以封装和委托此类。
- 从以下版本开始:
- 1.2
- 另请参见:
BeanContext
,BeanContextServices
,BeanContextChild
, 序列化表格
字段摘要 | |
---|---|
protected BeanContext | beanContext |
BeanContextChild | beanContextChildPeer 在其中嵌套此 BeanContextChild 的 BeanContext 。 |
protected PropertyChangeSupport | pcSupport 与此 BeanContextChildSupport 相关联的 PropertyChangeSupport。 |
protected boolean | rejectedSetBCOnce 一个标志,指示在试图执行 setBeanContext 操作时,至少已经抛出了一个 PropertyChangeVetoException 。 |
protected VetoableChangeSupport | vcSupport 与此 BeanContextChildSupport 相关联的 VetoableChangeSupport。 |
构造方法摘要 | |
---|---|
BeanContextChildSupport() 构造一个 BeanContextChildSupport,其中已经为此类创建了子类以便实现 JavaBean 组件自身。 | |
BeanContextChildSupport(BeanContextChild bcc) 构造一个 BeanContextChildSupport,其中 JavaBean 组件自身实现 BeanContextChild 并封装它,并将该接口委托给此实现 |
方法摘要 | |
---|---|
void | addPropertyChangeListener(String name, PropertyChangeListener pcl) 为特定属性添加一个 PropertyChangeListener。 |
void | addVetoableChangeListener(String name, VetoableChangeListener vcl) 为特定属性添加一个 VetoableChangeListener。 |
void | firePropertyChange(String name, Object oldValue, Object newValue) 向所有已注册的侦听器报告 bound 属性更新。 |
void | fireVetoableChange(String name, Object oldValue, Object newValue) 向所有已注册的侦听器报告 vetoable 属性更新。 |
BeanContext | getBeanContext() 获得此 BeanContextChildSupport 的嵌套 BeanContext 。 |
BeanContextChild | getBeanContextChildPeer() 获得与此 BeanContextChildSupport 相关联的 BeanContextChild。 |
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 属性值中的挂起更改。 |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
beanContextChildPeer
public BeanContextChild beanContextChildPeer
- 在其中嵌套此
BeanContextChild
的BeanContext
。
pcSupport
protected PropertyChangeSupport pcSupport
- 与此 BeanContextChildSupport 相关联的 PropertyChangeSupport。
vcSupport
protected VetoableChangeSupport vcSupport
- 与此 BeanContextChildSupport 相关联的 VetoableChangeSupport。
beanContext
protected transient BeanContext beanContext
rejectedSetBCOnce
protected transient boolean rejectedSetBCOnce
- 一个标志,指示在试图执行 setBeanContext 操作时,至少已经抛出了一个
PropertyChangeVetoException
。
构造方法详细信息 |
---|
BeanContextChildSupport
public BeanContextChildSupport()
- 构造一个 BeanContextChildSupport,其中已经为此类创建了子类以便实现 JavaBean 组件自身。
BeanContextChildSupport
public BeanContextChildSupport(BeanContextChild bcc)
- 构造一个 BeanContextChildSupport,其中 JavaBean 组件自身实现 BeanContextChild 并封装它,并将该接口委托给此实现
方法详细信息 |
---|
setBeanContext
public void setBeanContext(BeanContext bc) throws PropertyVetoException
- 设置此
BeanContextChildSupport
的BeanContext
。 - 指定者:
- 接口
BeanContextChild
中的setBeanContext
- 参数:
bc
- 分配给BeanContext
属性的新值- 抛出:
- 如果拒绝更改PropertyVetoException
PropertyVetoException
getBeanContext
public BeanContext getBeanContext()
- 获得此
BeanContextChildSupport
的嵌套BeanContext
。 - 指定者:
- 接口
BeanContextChild
中的getBeanContext
- 返回:
- 此
BeanContextChildSupport
的嵌套BeanContext
。