|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectControlBeanContextChildSupport
public class ControlBeanContextChildSupport
Implementation of the BeanContextChild api for Beehive controls.
Constructor Summary | |
---|---|
ControlBeanContextChildSupport()
Constructor. |
|
ControlBeanContextChildSupport(BeanContextChild bcc)
Constructor -- java bean implements BeanContextChild and delegates the interface to this implementation. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(String name,
PropertyChangeListener pcl)
Adds a PropertyChangeListener
to this BeanContextChild
in order to receive a PropertyChangeEvent
whenever the specified property has changed. |
void |
addVetoableChangeListener(String name,
VetoableChangeListener vcl)
Adds a VetoableChangeListener to
this BeanContextChild
to receive events whenever the specified property changes. |
protected void |
firePropertyChange(String name,
Object oldValue,
Object newValue)
Fire a property change event. |
BeanContext |
getBeanContext()
Gets the BeanContext associated
with this BeanContextChild . |
protected BeanContextChild |
getPeer()
Get the delegate for this child. |
protected void |
releaseBeanContextResources()
Release any resources that may have been acumlated from the current bean context, invoked by setBeanContext BEFORE the context is changed. |
void |
removePropertyChangeListener(String name,
PropertyChangeListener pcl)
Removes a PropertyChangeListener from this
BeanContextChild so that it no longer
receives PropertyChangeEvents when the
specified property is changed. |
void |
removeVetoableChangeListener(String name,
VetoableChangeListener vcl)
Removes a VetoableChangeListener from this
BeanContextChild so that it no longer receives
events when the specified property changes. |
void |
serviceAvailable(BeanContextServiceAvailableEvent bcsae)
The service named has been registered. getService requests for this service may now be made. |
void |
serviceRevoked(BeanContextServiceRevokedEvent bcsre)
The service named has been revoked. getService requests for this service will no longer be satisifed. |
void |
setBeanContext(BeanContext bc)
Objects that implement this interface, shall fire a java.beans.PropertyChangeEvent, with parameters: propertyName "beanContext", oldValue (the previous nesting BeanContext instance, or null ),
newValue (the current nesting
BeanContext instance, or null ). |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControlBeanContextChildSupport()
public ControlBeanContextChildSupport(BeanContextChild bcc)
bcc
- Method Detail |
---|
public void setBeanContext(BeanContext bc) throws PropertyVetoException
BeanContext
instance, or null
),
newValue (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.
setBeanContext
in interface BeanContextChild
bc
- The BeanContext
with which
to associate this BeanContextChild
.
PropertyVetoException
public BeanContext getBeanContext()
BeanContext
associated
with this BeanContextChild
.
getBeanContext
in interface BeanContextChild
BeanContext
associated
with this BeanContextChild
.public void addPropertyChangeListener(String name, PropertyChangeListener pcl)
PropertyChangeListener
to this BeanContextChild
in order to receive a PropertyChangeEvent
whenever the specified property has changed.
addPropertyChangeListener
in interface BeanContextChild
name
- the name of the property to listen onpcl
- the PropertyChangeListener
to addpublic void removePropertyChangeListener(String name, PropertyChangeListener pcl)
PropertyChangeListener
from this
BeanContextChild
so that it no longer
receives PropertyChangeEvents
when the
specified property is changed.
removePropertyChangeListener
in interface BeanContextChild
name
- the name of the property that was listened onpcl
- the PropertyChangeListener
to removepublic void addVetoableChangeListener(String name, VetoableChangeListener vcl)
VetoableChangeListener
to
this BeanContextChild
to receive events whenever the specified property changes.
addVetoableChangeListener
in interface BeanContextChild
name
- the name of the property to listen onvcl
- the VetoableChangeListener
to addpublic void removeVetoableChangeListener(String name, VetoableChangeListener vcl)
VetoableChangeListener
from this
BeanContextChild
so that it no longer receives
events when the specified property changes.
removeVetoableChangeListener
in interface BeanContextChild
name
- the name of the property that was listened on.vcl
- the VetoableChangeListener
to remove.public void serviceAvailable(BeanContextServiceAvailableEvent bcsae)
serviceAvailable
in interface BeanContextServicesListener
bcsae
- the BeanContextServiceAvailableEvent
public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
serviceRevoked
in interface BeanContextServiceRevokedListener
bcsre
- the BeanContextServiceRevokedEvent
received
by this listener.protected BeanContextChild getPeer()
protected void firePropertyChange(String name, Object oldValue, Object newValue)
name
- oldValue
- newValue
- protected void releaseBeanContextResources()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |