Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Class java.beans.beancontext.BeanContextChildSupport

java.lang.Object
    |
    +----java.beans.beancontext.BeanContextChildSupport
Subclasses:
BeanContextSupport

public class BeanContextChildSupport
extends Object
implements BeanContextChild, BeanContextServicesListener, Serializable

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.

Since:
JDK1.2

Field Summary
BeanContext  beanContext
 
BeanContextChild  beanContextChildPeer
 
PropertyChangeSupport  pcSupport
 
boolean  rejectedSetBCOnce
 
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()
 
void  initializeBeanContextResources()
This method may be overridden by subclasses to provide their own initialization behaviors.
boolean  isDelegated()
 
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

beanContextChildPeer

public BeanContextChild beanContextChildPeer

pcSupport

protected PropertyChangeSupport pcSupport

vcSupport

protected VetoableChangeSupport vcSupport

beanContext

protected transient BeanContext beanContext

rejectedSetBCOnce

protected transient boolean rejectedSetBCOnce
Constructor Detail

BeanContextChildSupport

public BeanContextChildSupport()
construct a BeanContextChildSupport where this class has been subclassed in order to implement the JavaBean component itself.

BeanContextChildSupport

public BeanContextChildSupport(BeanContextChild bcc)
construct a BeanContextChildSupport where the JavaBean component itself implements BeanContextChild, and encapsulates this, delegating that interface to this implementation
Method Detail

setBeanContext

public void setBeanContext(BeanContext bc) throws PropertyVetoException
setBeanContext
Implements:
setBeanContext in interface BeanContextChild

getBeanContext

public BeanContext getBeanContext()
Implements:
getBeanContext in interface BeanContextChild

addPropertyChangeListener

public void addPropertyChangeListener(String name,
                                      PropertyChangeListener pcl)
add a property change listener
Implements:
addPropertyChangeListener in interface BeanContextChild

removePropertyChangeListener

public void removePropertyChangeListener(String name,
                                         PropertyChangeListener pcl)
remove a property change listener
Implements:
removePropertyChangeListener in interface BeanContextChild

addVetoableChangeListener

public void addVetoableChangeListener(String name,
                                      VetoableChangeListener vcl)
add a vetoable change listener
Implements:
addVetoableChangeListener in interface BeanContextChild

removeVetoableChangeListener

public void removeVetoableChangeListener(String name,
                                         VetoableChangeListener vcl)
remove a vetoable change listener
Implements:
removeVetoableChangeListener in interface BeanContextChild

serviceRevoked

public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
a service provided by the nesting BeanContext has been revoked. subclasses may override this method in order to implement their own behaviors

serviceAvailable

public void serviceAvailable(BeanContextServiceAvailableEvent bcsae)
a new service is available from the nesting BeanContext. subclasses may override this method in order to implement their own behaviors
Implements:
serviceAvailable in interface BeanContextServicesListener

getBeanContextChildPeer

public BeanContextChild getBeanContextChildPeer()
Returns:
the BeanContextChild peer of this class

isDelegated

public boolean isDelegated()
Returns:
if this class is a delegate of another

firePropertyChange

public void firePropertyChange(String name,
                               Object oldValue,
                               Object newValue)
fires a propertyChange Event

fireVetoableChange

public void fireVetoableChange(String name,
                               Object oldValue,
                               Object newValue) throws PropertyVetoException
fires a vetoableChange Event

validatePendingSetBeanContext

public boolean validatePendingSetBeanContext(BeanContext newValue)
called from setBeanContext to validate (or otherwise) the pending change in the nesting BeanContext property value. returning false will cause setBeanContext to throw PropertyVetoException.

releaseBeanContextResources

protected void releaseBeanContextResources()
This method may be overridden by subclasses to provide their own release behaviors. When invoked any resources held by this instance obtained from its current BeanContext property should be released since the object is no longer nested within that BeanContext.

initializeBeanContextResources

protected void initializeBeanContextResources()
This method may be overridden by subclasses to provide their own initialization behaviors. When invoked any resources requried by the BeanContextChild should be obtained from the current BeanContext.

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.