public class Script extends BeanContextChildSupport implements ActionListener, Serializable
ActionEvents, and uses the BSFManager service
provided by its bean context to run a script stored in its
script property.beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport| Constructor and Description |
|---|
Script()
Default constructor.
|
Script(String script)
Constructor.
|
Script(String script,
String language)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent ev)
Invoked when an action occurs.
|
String |
getLanguage()
Getter method for the
language property. |
String |
getName()
Getter method for the
name property. |
String |
getScript()
Getter method for the
script property. |
void |
serviceAvailable(BeanContextServiceAvailableEvent bcsae)
Called by this bean's context when a new service is available.
|
void |
serviceRevoked(BeanContextServiceRevokedEvent bcsre)
Called by this bean's context when a service is revoked.
|
void |
setLanguage(String language)
Setter method for the
language property. |
void |
setName(String name)
Setter method for the
name property. |
void |
setScript(String script)
Setter method for the
script property. |
addPropertyChangeListener, addVetoableChangeListener, firePropertyChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, initializeBeanContextResources, isDelegated, releaseBeanContextResources, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, validatePendingSetBeanContextpublic Script()
BSFManager, language_="javascript",
script_="", name_=null.public Script(String script)
script - initial value for script property.public void actionPerformed(ActionEvent ev)
actionPerformed in interface ActionListenerpublic void serviceAvailable(BeanContextServiceAvailableEvent bcsae)
BSFManager provided by the context if this is the
service being introduced.serviceAvailable in interface BeanContextServicesListenerserviceAvailable in class BeanContextChildSupportpublic void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
BSFManager if this is the service being
revoked.serviceRevoked in interface BeanContextServiceRevokedListenerserviceRevoked in class BeanContextChildSupportCopyright © 2003–2016 Community Z Tools Project. All rights reserved.