Java Doc for ControlBeanContextSupport.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » controls » runtime » webcontext » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache beehive 1.0.2 src » org.apache.beehive.controls.runtime.webcontext 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.beehive.controls.runtime.webcontext.ControlBeanContextChildSupport
      org.apache.beehive.controls.runtime.webcontext.ControlBeanContextSupport

All known Subclasses:   org.apache.beehive.controls.runtime.webcontext.ControlBeanContextServicesSupport,
ControlBeanContextSupport
public class ControlBeanContextSupport extends ControlBeanContextChildSupport implements BeanContext,Serializable,PropertyChangeListener,VetoableChangeListener(Code)
BeanContext implementation for Beehive Controls.



Constructor Summary
public  ControlBeanContextSupport()
     Constructor.
public  ControlBeanContextSupport(BeanContext peer)
     Constructor.

Method Summary
public  booleanadd(Object o)
     Add a child to this BeanContext.
public  booleanaddAll(Collection c)
     Not supported.
public  voidaddBeanContextMembershipListener(BeanContextMembershipListener bcml)
     Adds the specified BeanContextMembershipListener to receive BeanContextMembershipEvents from this BeanContext whenever it adds or removes a child Component(s).
public  booleanavoidingGui()
     Determines whether this bean is avoiding using a GUI. true if the bean is currently avoiding use of the Gui.e.g.
public  voidclear()
     Not supported.
public  booleancontains(Object o)
     Returns true if this BeanContext contains the specified child.
Parameters:
  o - element whose presence in this BeanContext is to be tested.
public  booleancontainsAll(Collection c)
     Returns true if this BeanContext contains all of the children in the specified collection.
Parameters:
  c - collection to be checked for containment in this collection.
public  voiddontUseGui()
     This method instructs the bean that it should not use the Gui.
public  URLgetResource(String name, BeanContextChild bcc)
     Analagous to java.lang.ClassLoader.getResource(), this method allows a BeanContext implementation to interpose behavior between the child Component and underlying ClassLoader.
public  InputStreamgetResourceAsStream(String name, BeanContextChild bcc)
     Analagous to java.lang.ClassLoader.getResourceAsStream(), this method allows a BeanContext implementation to interpose behavior between the child Component and underlying ClassLoader.
protected  voidinitialize()
     Init this classes data structures.
public  ObjectinstantiateChild(String beanName)
     Instantiate the javaBean named as a child of this BeanContext.
public  booleanisDesignTime()
     A value of true denotes that JavaBeans should behave in design time mode, a value of false denotes runtime behavior.
public  booleanisEmpty()
     Returns true if this BeanContext has no children.
public  Iteratoriterator()
     Returns an iterator over the elements in this collection.
public  booleanneedsGui()
     Determines whether this bean needs a GUI.
public  voidokToUseGui()
     This method instructs the bean that it is OK to use the Gui.
public  voidpropertyChange(PropertyChangeEvent evt)
     This method gets called when a bound property is changed.
final public  voidreadChildren(ObjectInputStream in)
     This public api is necessary to allow a bean context with a peer to deserialize its children.
public  booleanremove(Object o)
     Remove the specified child from this BeanContext.
public  booleanremoveAll(Collection c)
     Not supported.
public  voidremoveBeanContextMembershipListener(BeanContextMembershipListener bcml)
     Removes the specified BeanContextMembershipListener so that it no longer receives BeanContextMembershipEvents when the child Component(s) are added or removed.
public  booleanretainAll(Collection c)
     Not supported.
public  voidsetDesignTime(boolean designTime)
     Sets the "value" of the "designTime" property.
public  intsize()
     Returns the number of children in this BeanContext.
public  Object[]toArray()
     Returns an array containing all of the children in this BeanContext.

The returned array will be "safe" in that no references to it are maintained by this collection.

public  Object[]toArray(Object[] a)
     Returns an array containing all of the children of this BeanContext; the runtime type of the returned array is that of the specified array.
Parameters:
  a - the array into which the elements of this collection are to bestored, if it is big enough; otherwise, a new array of the sameruntime type is allocated for this purpose.
public  voidvetoableChange(PropertyChangeEvent evt)
     This method gets called when a constrained property is changed.
final public  voidwriteChildren(ObjectOutputStream oos)
     Necessary for the case of this bean context having a peer.


Constructor Detail
ControlBeanContextSupport
public ControlBeanContextSupport()(Code)
Constructor.



ControlBeanContextSupport
public ControlBeanContextSupport(BeanContext peer)(Code)
Constructor.
Parameters:
  peer -




Method Detail
add
public boolean add(Object o)(Code)
Add a child to this BeanContext. If the child is already a child of this bean context this method returns immediately with a return value of false.

If the child implements the BeanContextProxy interface, the child AND the BeanContextChild referenced by the proxy are added to this BeanContext.
Parameters:
  o - element whose presence in this collection is to be ensured. true if this collection changed as a result of thecall
throws:
  UnsupportedOperationException - add is not supported bythis collection.
throws:
  ClassCastException - class of the specified element prevents itfrom being added to this collection.
throws:
  NullPointerException - if the specified element is null and thiscollection does not support null elements.
throws:
  IllegalArgumentException - some aspect of this element preventsit from being added to this collection.




addAll
public boolean addAll(Collection c)(Code)
Not supported.
throws:
  UnsupportedOperationException -



addBeanContextMembershipListener
public void addBeanContextMembershipListener(BeanContextMembershipListener bcml)(Code)
Adds the specified BeanContextMembershipListener to receive BeanContextMembershipEvents from this BeanContext whenever it adds or removes a child Component(s).
Parameters:
  bcml - the BeanContextMembershipListener to be added



avoidingGui
public boolean avoidingGui()(Code)
Determines whether this bean is avoiding using a GUI. true if the bean is currently avoiding use of the Gui.e.g. due to a call on dontUseGui().



clear
public void clear()(Code)
Not supported.
throws:
  UnsupportedOperationException -



contains
public boolean contains(Object o)(Code)
Returns true if this BeanContext contains the specified child.
Parameters:
  o - element whose presence in this BeanContext is to be tested. true if this BeanContext contains the specified child
throws:
  ClassCastException - if the type of the specified elementis incompatible with this collection (optional).
throws:
  NullPointerException - if the specified element is null and thiscollection does not support null elements (optional).



containsAll
public boolean containsAll(Collection c)(Code)
Returns true if this BeanContext contains all of the children in the specified collection.
Parameters:
  c - collection to be checked for containment in this collection. true if this collection contains all of the elementsin the specified collection
throws:
  ClassCastException - if the types of one or more elementsin the specified collection are incompatible with thiscollection (optional).
throws:
  NullPointerException - if the specified collection contains oneor more null elements and this collection does not support nullelements (optional).
throws:
  NullPointerException - if the specified collection isnull.
See Also:   ControlBeanContextSupport.contains(Object)



dontUseGui
public void dontUseGui()(Code)
This method instructs the bean that it should not use the Gui.



getResource
public URL getResource(String name, BeanContextChild bcc) throws IllegalArgumentException(Code)
Analagous to java.lang.ClassLoader.getResource(), this method allows a BeanContext implementation to interpose behavior between the child Component and underlying ClassLoader.
Parameters:
  name - the resource name
Parameters:
  bcc - the specified child a URL for the namedresource for the specified child
throws:
  IllegalArgumentException - if the resource is not valid



getResourceAsStream
public InputStream getResourceAsStream(String name, BeanContextChild bcc) throws IllegalArgumentException(Code)
Analagous to java.lang.ClassLoader.getResourceAsStream(), this method allows a BeanContext implementation to interpose behavior between the child Component and underlying ClassLoader.
Parameters:
  name - the resource name
Parameters:
  bcc - the specified child an InputStream for reading the resource,or null if the resource could notbe found.
throws:
  IllegalArgumentException - if the resource is not valid



initialize
protected void initialize()(Code)
Init this classes data structures.



instantiateChild
public Object instantiateChild(String beanName) throws IOException, ClassNotFoundException(Code)
Instantiate the javaBean named as a child of this BeanContext. The implementation of the JavaBean is derived from the value of the beanName parameter, and is defined by the java.beans.Beans.instantiate() method.
Parameters:
  beanName - The name of the JavaBean to instantiateas a child of this BeanContext
throws:
  IOException -
throws:
  ClassNotFoundException - if the class identifiedby the beanName parameter is not found



isDesignTime
public boolean isDesignTime()(Code)
A value of true denotes that JavaBeans should behave in design time mode, a value of false denotes runtime behavior. the current "value" of the "designTime" property.



isEmpty
public boolean isEmpty()(Code)
Returns true if this BeanContext has no children.



iterator
public Iterator iterator()(Code)
Returns an iterator over the elements in this collection. The iterator's collection is non-modifiable and element does not correspond to the order that children are added. an Iterator over the children of this BeanContext



needsGui
public boolean needsGui()(Code)
Determines whether this bean needs a GUI. True if the bean absolutely needs a GUI available inorder to get its work done.



okToUseGui
public void okToUseGui()(Code)
This method instructs the bean that it is OK to use the Gui.



propertyChange
public void propertyChange(PropertyChangeEvent evt)(Code)
This method gets called when a bound property is changed.
Parameters:
  evt - A PropertyChangeEvent object describing the event sourceand the property that has changed.



readChildren
final public void readChildren(ObjectInputStream in) throws IOException, ClassNotFoundException(Code)
This public api is necessary to allow a bean context with a peer to deserialize its children. This api is not part any standard api.
Parameters:
  in - ObjectInputStream
throws:
  IOException -
throws:
  ClassNotFoundException -



remove
public boolean remove(Object o)(Code)
Remove the specified child from this BeanContext. If the child to be removed implements the BeanContextProxy interface or is referenced from an existing BeanContextProxy child both children will be removed.
Parameters:
  o - element to be removed from this collection, if present. true if this collection changed as a result of thecall
throws:
  ClassCastException - if the type of the specified elementis incompatible with this collection (optional).
throws:
  NullPointerException - if the specified element is null and thiscollection does not support null elements (optional).
throws:
  UnsupportedOperationException - remove is not supported by thiscollection.



removeAll
public boolean removeAll(Collection c)(Code)
Not supported.
throws:
  UnsupportedOperationException -



removeBeanContextMembershipListener
public void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)(Code)
Removes the specified BeanContextMembershipListener so that it no longer receives BeanContextMembershipEvents when the child Component(s) are added or removed.
Parameters:
  bcml - the BeanContextMembershipListenerto be removed



retainAll
public boolean retainAll(Collection c)(Code)
Not supported.
throws:
  UnsupportedOperationException -



setDesignTime
public void setDesignTime(boolean designTime)(Code)
Sets the "value" of the "designTime" property.

If the implementing object is an instance of java.beans.beancontext.BeanContext, or a subinterface thereof, then that BeanContext should fire a PropertyChangeEvent, to its registered BeanContextMembershipListeners, with parameters:

  • propertyName - java.beans.DesignMode.PROPERTYNAME
  • oldValue - previous value of "designTime"
  • newValue - current value of "designTime"
Note it is illegal for a BeanContextChild to invoke this method associated with a BeanContext that it is nested within.
Parameters:
  designTime - the current "value" of the "designTime" property
See Also:   java.beans.beancontext.BeanContext
See Also:   java.beans.beancontext.BeanContextMembershipListener
See Also:   java.beans.PropertyChangeEvent



size
public int size()(Code)
Returns the number of children in this BeanContext. If this BeanContext contains more than Integer.MAX_VALUE children, returns Integer.MAX_VALUE. the number of elements in this collection



toArray
public Object[] toArray()(Code)
Returns an array containing all of the children in this BeanContext.

The returned array will be "safe" in that no references to it are maintained by this collection. (In other words, this method must allocate a new array even if this collection is backed by an array). The caller is thus free to modify the returned array.

This method acts as bridge between array-based and collection-based APIs. an array containing all of the elements in this collection




toArray
public Object[] toArray(Object[] a)(Code)
Returns an array containing all of the children of this BeanContext; the runtime type of the returned array is that of the specified array.
Parameters:
  a - the array into which the elements of this collection are to bestored, if it is big enough; otherwise, a new array of the sameruntime type is allocated for this purpose. an array containing the elements of this collection
throws:
  ArrayStoreException - the runtime type of the specified array isnot a supertype of the runtime type of every element in thiscollection.
throws:
  NullPointerException - if the specified array is null.



vetoableChange
public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException(Code)
This method gets called when a constrained property is changed.
Parameters:
  evt - a PropertyChangeEvent object describing theevent source and the property that has changed.
throws:
  java.beans.PropertyVetoException - if the recipient wishes the propertychange to be rolled back.



writeChildren
final public void writeChildren(ObjectOutputStream oos) throws IOException(Code)
Necessary for the case of this bean context having a peer. The specification states that a bean context which has a peer should not serialize its children, this hook is necessary to allow the peer to serialize children.
Parameters:
  oos - ObjectOutputStream
throws:
  IOException -



Methods inherited from org.apache.beehive.controls.runtime.webcontext.ControlBeanContextChildSupport
public void addPropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc)
public void addVetoableChangeListener(String name, VetoableChangeListener vcl)(Code)(Java Doc)
protected void firePropertyChange(String name, Object oldValue, Object newValue)(Code)(Java Doc)
public synchronized BeanContext getBeanContext()(Code)(Java Doc)
protected BeanContextChild getPeer()(Code)(Java Doc)
protected void releaseBeanContextResources()(Code)(Java Doc)
public void removePropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc)
public void removeVetoableChangeListener(String name, VetoableChangeListener vcl)(Code)(Java Doc)
public void serviceAvailable(BeanContextServiceAvailableEvent bcsae)(Code)(Java Doc)
public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)(Code)(Java Doc)
public synchronized void setBeanContext(BeanContext bc) throws PropertyVetoException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.