|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.beans.beancontext.BeanContextChildSupport
This is a general support class to provide support for implementing the BeanContextChild protocol. This class may either be directly subclassed, or encapsulated and delegated to in order to implement this interface for a given component.
Field Summary | |
protected BeanContext |
beanContext
|
BeanContextChild |
beanContextChildPeer
|
protected PropertyChangeSupport |
pcSupport
|
protected boolean |
rejectedSetBCOnce
|
protected VetoableChangeSupport |
vcSupport
|
Constructor Summary | |
BeanContextChildSupport()
construct a BeanContextChildSupport where this class has been subclassed in order to implement the JavaBean component itself. |
|
BeanContextChildSupport(BeanContextChild bcc)
construct a BeanContextChildSupport where the JavaBean component itself implements BeanContextChild, and encapsulates this, delegating that interface to this implementation |
Method Summary | |
void |
addPropertyChangeListener(String name,
PropertyChangeListener pcl)
add a property change listener |
void |
addVetoableChangeListener(String name,
VetoableChangeListener vcl)
add a vetoable change listener |
void |
firePropertyChange(String name,
Object oldValue,
Object newValue)
fires a propertyChange Event |
void |
fireVetoableChange(String name,
Object oldValue,
Object newValue)
fires a vetoableChange Event |
BeanContext |
getBeanContext()
|
BeanContextChild |
getBeanContextChildPeer()
|
protected void |
initializeBeanContextResources()
This method may be overridden by subclasses to provide their own initialization behaviors. |
boolean |
isDelegated()
|
protected void |
releaseBeanContextResources()
This method may be overridden by subclasses to provide their own release behaviors. |
void |
removePropertyChangeListener(String name,
PropertyChangeListener pcl)
remove a property change listener |
void |
removeVetoableChangeListener(String name,
VetoableChangeListener vcl)
remove a vetoable change listener |
void |
serviceAvailable(BeanContextServiceAvailableEvent bcsae)
a new service is available from the nesting BeanContext. |
void |
serviceRevoked(BeanContextServiceRevokedEvent bcsre)
a service provided by the nesting BeanContext has been revoked. |
void |
setBeanContext(BeanContext bc)
setBeanContext |
boolean |
validatePendingSetBeanContext(BeanContext newValue)
called from setBeanContext to validate (or otherwise) the pending change in the nesting BeanContext property value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public BeanContextChild beanContextChildPeer
protected PropertyChangeSupport pcSupport
protected VetoableChangeSupport vcSupport
protected transient BeanContext beanContext
protected transient boolean rejectedSetBCOnce
Constructor Detail |
public BeanContextChildSupport()
public BeanContextChildSupport(BeanContextChild bcc)
Method Detail |
public void setBeanContext(BeanContext bc) throws PropertyVetoException
propertyName
- "beanContext"oldValue
- the previous nesting BeanContext instance, or nullnewValue
- the current nesting BeanContext instance, or null
A change in the value of the nesting BeanContext property of this BeanContextChild may be vetoed by throwing the appropriate exception.
public BeanContext getBeanContext()
public void addPropertyChangeListener(String name, PropertyChangeListener pcl)
public void removePropertyChangeListener(String name, PropertyChangeListener pcl)
public void addVetoableChangeListener(String name, VetoableChangeListener vcl)
public void removeVetoableChangeListener(String name, VetoableChangeListener vcl)
public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
public void serviceAvailable(BeanContextServiceAvailableEvent bcsae)
public BeanContextChild getBeanContextChildPeer()
public boolean isDelegated()
public void firePropertyChange(String name, Object oldValue, Object newValue)
public void fireVetoableChange(String name, Object oldValue, Object newValue) throws PropertyVetoException
public boolean validatePendingSetBeanContext(BeanContext newValue)
protected void releaseBeanContextResources()
protected void initializeBeanContextResources()
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |