Java Doc for Bean.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » insync » beans » 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 » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.insync.beans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.insync.beans.BeansNode
      org.netbeans.modules.visualweb.insync.beans.Bean

All known Subclasses:   org.netbeans.modules.visualweb.insync.faces.MarkupBean,
Bean
public class Bean extends BeansNode (Code)
Representation of a JavaBean instance field within our outer host BeansUnit being built. Initial property settings are maintained as Property instances, and handled events are maintained as Events within EventSets.
author:
   cquinn


Field Summary
final static  booleanCREATE_GETTER
    
final static  booleanCREATE_SETTER
    
final public static  Bean[]EMPTY_ARRAY
    
final protected  BeanInfobeanInfo
    
final protected  List<EventSet>eventSets
    
final protected  List<Property>properties
    

Constructor Summary
protected  Bean(BeansUnit unit, BeanInfo beanInfo, String name)
    
protected  Bean(BeansUnit unit, BeanInfo beanInfo, String name, List<String> typeNames)
    

Method Summary
public  voidaddChild(Bean child, Position pos)
     Add a child bean to this bean at a given location.
public  voidbindCleanup()
    
public  BeanbindParent()
    
public  booleancanSetName()
     Can the name of this bean be set? Default is to always say yes.
public  BeanInfogetBeanInfo()
    
public  Bean[]getChildren()
    
public  StringgetCleanupMethod()
    
public  org.w3c.dom.ElementgetElement()
    
public  EventSetgetEventSet(String name)
     Get an EventSet of this bean by name.
public  EventSetDescriptorgetEventSetDescriptor(String name)
     Get the descriptor for an event set of this bean indicated by the event set name.
public  EventSetDescriptorgetEventSetDescriptorForAdder(String adderName)
     Get the descriptor for an event set of this bean indicated by the event set's adder method name.
Parameters:
  adderName - Event set adder method name.
public  EventSet[]getEventSets()
    
public  StringgetName()
    
public  BeangetParent()
    
public  Property[]getProperties()
    
public  PropertygetProperty(String name)
     Get a Property of this bean by name.
public  PropertyDescriptorgetPropertyDescriptor(String propertyName)
    
public  PropertyDescriptorgetPropertyDescriptorForSetter(String setterName)
    
public  StringgetScope()
     If I return null, indicates I could not determine scope.
public  ClassgetType()
    
public  List<String>getTypeParameterNames()
    
public  booleanhasGetter()
    
public  booleanisGetterRequired()
    
public  booleanisInserted()
    
public  booleanisMarkupProperty(PropertyDescriptor pd)
     Determines if a given Property, defined by its PropertyDescriptor, is a markup based Property or not.
public  booleanisParentCapable()
    
public  booleanisSetterRequired()
    
protected  EventSetnewCreatedEventSet(EventSetDescriptor esd)
     Create a new EventSet object.
protected  PropertynewCreatedProperty(PropertyDescriptor pd)
     Create a new property object ready to have its value set.
public  booleanperformInstanceParenting(Object instance, Object parent, Position pos)
     Given an instance for this bean and it's parent, perform the appropriate operation on those objects to establish the live parent-child relationship.
public  voidperformInstanceUnparenting(Object instance, Object parent)
     Same as performInstanceParenting(), except performs the un-parenting.
public  voidreleaseEventSet(EventSet es)
     Remove a logical event set and release its hold on the source elements, but do not actually remove the source.
public  voidremoveChild(Bean child)
     Remove a child bean from this bean.
public  booleanremoveEntry()
     Remove this bean's field, methods and statements from the host class.
public  EventSetsetEventSet(String name)
     Set (hook) a given event set indicated by name.
public  voidsetInserted(boolean inserted)
    
public  StringsetName(String newname, boolean autoNumber, DesignBean liveBean)
     Set the name of this bean, affects the field name as well as the accessor method names
Parameters:
  newname - The new name to give this bean, possibly as a base for suffixes.
Parameters:
  autoNumber - If true, name will be suffixed with a number if needed to make it unique
Parameters:
  liveBean - The referencing liveBean for possible naming fixup callback The new name, after any fixup or numbering.
public  PropertysetProperty(String name, Object value, String valueSource)
     Set a property, identified by name, to a given value or value source.
public  booleanshouldInsertCleanupEntry()
    
public  voidtoString(StringBuffer sb)
    
public  voidunsetEventSet(EventSet es)
     Unset (unhook) a given EventSet and remove its source representation.
public  voidunsetEventSet(String name)
     Unset (unhook) a given EventSet, indicated by name, and remove its source representation.
public  voidunsetProperty(Property p)
     Unset (remove) a given property from this bean.
public  voidunsetProperty(String name)
     Unset (remove) a given property, indicated by name, from this bean.

Field Detail
CREATE_GETTER
final static boolean CREATE_GETTER(Code)



CREATE_SETTER
final static boolean CREATE_SETTER(Code)



EMPTY_ARRAY
final public static Bean[] EMPTY_ARRAY(Code)



beanInfo
final protected BeanInfo beanInfo(Code)



eventSets
final protected List<EventSet> eventSets(Code)



properties
final protected List<Property> properties(Code)




Constructor Detail
Bean
protected Bean(BeansUnit unit, BeanInfo beanInfo, String name)(Code)
Construct a new created bean
Parameters:
  unit -
Parameters:
  beanInfo -
Parameters:
  name -



Bean
protected Bean(BeansUnit unit, BeanInfo beanInfo, String name, List<String> typeNames)(Code)
Construct a new bean bound to existing field & accessor methods
Parameters:
  unit - Owning host unit
Parameters:
  beanInfo -
Parameters:
  name -
Parameters:
  typeNames -




Method Detail
addChild
public void addChild(Bean child, Position pos)(Code)
Add a child bean to this bean at a given location.
Parameters:
  child - The child bean to add
Parameters:
  pos - The position within the children to add the given child



bindCleanup
public void bindCleanup()(Code)
Bind to an existing cleanup method call within the unit's cleanup method body



bindParent
public Bean bindParent()(Code)
Take the opportinuty to scan for and bind to this bean's parent the parent of this bean iff not previously bound



canSetName
public boolean canSetName()(Code)
Can the name of this bean be set? Default is to always say yes. true iff the name of this bean can be set



getBeanInfo
public BeanInfo getBeanInfo()(Code)
the beanInfo for this bean



getChildren
public Bean[] getChildren()(Code)
the array of child beans--zero size if none currently, or null if this is not aparent
See Also:   isParentCapable



getCleanupMethod
public String getCleanupMethod()(Code)
Get the cleanup method name for this bean if it has one the cleanup method name



getElement
public org.w3c.dom.Element getElement()(Code)
The DOM element underlying this bean, if applicable.



getEventSet
public EventSet getEventSet(String name)(Code)
Get an EventSet of this bean by name.
Parameters:
  name - The EventSet name to look for EventSet of this bean with the given name, or null if not found.



getEventSetDescriptor
public EventSetDescriptor getEventSetDescriptor(String name)(Code)
Get the descriptor for an event set of this bean indicated by the event set name.
Parameters:
  name - the event set name to lookup The EventSetDescriptor for the given event set



getEventSetDescriptorForAdder
public EventSetDescriptor getEventSetDescriptorForAdder(String adderName)(Code)
Get the descriptor for an event set of this bean indicated by the event set's adder method name.
Parameters:
  adderName - Event set adder method name. The EventSetDescriptor for the given event set



getEventSets
public EventSet[] getEventSets()(Code)
An array of EventSet instances representing the hooked event sets for this bean.



getName
public String getName()(Code)
the instance name of this bean, null if dead.



getParent
public Bean getParent()(Code)
the parent of this bean, null if top-level bean or dead



getProperties
public Property[] getProperties()(Code)
An array of Property instances representing the set properties for this bean.



getProperty
public Property getProperty(String name)(Code)
Get a Property of this bean by name.
Parameters:
  name - The Property name to look up The Property if found, null if not.



getPropertyDescriptor
public PropertyDescriptor getPropertyDescriptor(String propertyName)(Code)
Get the PropertyDescriptor for a property of this bean indicated by the property name
Parameters:
  propertyName - the property name to look for the PropertyDescriptor for the property



getPropertyDescriptorForSetter
public PropertyDescriptor getPropertyDescriptorForSetter(String setterName)(Code)
Get the PropertyDescriptor for a property of this bean indicated by the property setter method name
Parameters:
  setterName - the setter method name to lookup the property by the PropertyDescriptor for the property



getScope
public String getScope()(Code)
If I return null, indicates I could not determine scope. "request", "session", "application"



getType
public Class getType()(Code)
the type of this bean



getTypeParameterNames
public List<String> getTypeParameterNames()(Code)



hasGetter
public boolean hasGetter()(Code)
whether there is a getter method available



isGetterRequired
public boolean isGetterRequired()(Code)



isInserted
public boolean isInserted()(Code)



isMarkupProperty
public boolean isMarkupProperty(PropertyDescriptor pd)(Code)
Determines if a given Property, defined by its PropertyDescriptor, is a markup based Property or not.
Parameters:
  pd - PropertyDescriptor that identifies the property True iff this bean is markup based and the particular property is also.



isParentCapable
public boolean isParentCapable()(Code)
true if this bean is capable of being a parent



isSetterRequired
public boolean isSetterRequired()(Code)



newCreatedEventSet
protected EventSet newCreatedEventSet(EventSetDescriptor esd)(Code)
Create a new EventSet object. Overridden in subclasses to create different EventSet subclasses based on information in the descriptor.
Parameters:
  esd - The descriptor that defines the EventSet. The newly created EventSet object, never null.



newCreatedProperty
protected Property newCreatedProperty(PropertyDescriptor pd)(Code)
Create a new property object ready to have its value set. Overridden in subclasses to create different property subclasses based on information in the descriptor.
Parameters:
  pd - The descriptor that defines the property The newly created property object, never null.



performInstanceParenting
public boolean performInstanceParenting(Object instance, Object parent, Position pos)(Code)
Given an instance for this bean and it's parent, perform the appropriate operation on those objects to establish the live parent-child relationship. Overridden in subclasses that know about specific bean parent-child relationships
Parameters:
  instance - the bean instance to parent
Parameters:
  parent - the parent to parent to true if done parenting, or false to be re-called with parent's parent



performInstanceUnparenting
public void performInstanceUnparenting(Object instance, Object parent)(Code)
Same as performInstanceParenting(), except performs the un-parenting.
Parameters:
  instance - the bean instance to parent
Parameters:
  parent - the parent to parent to



releaseEventSet
public void releaseEventSet(EventSet es)(Code)
Remove a logical event set and release its hold on the source elements, but do not actually remove the source. Used when some other modelling code will take over.
Parameters:
  es - EventSet to release.



removeChild
public void removeChild(Bean child)(Code)
Remove a child bean from this bean.
Parameters:
  child -



removeEntry
public boolean removeEntry()(Code)
Remove this bean's field, methods and statements from the host class. This bean instance is dead & should not be used. true iff the source entry for this bean was actually removed.



setEventSet
public EventSet setEventSet(String name)(Code)
Set (hook) a given event set indicated by name. A new EventSet will be created if needed.
Parameters:
  name - The EventSet name to set. The existing or newly created EventSet.



setInserted
public void setInserted(boolean inserted)(Code)



setName
public String setName(String newname, boolean autoNumber, DesignBean liveBean)(Code)
Set the name of this bean, affects the field name as well as the accessor method names
Parameters:
  newname - The new name to give this bean, possibly as a base for suffixes.
Parameters:
  autoNumber - If true, name will be suffixed with a number if needed to make it unique
Parameters:
  liveBean - The referencing liveBean for possible naming fixup callback The new name, after any fixup or numbering. Null if naming failed.



setProperty
public Property setProperty(String name, Object value, String valueSource)(Code)
Set a property, identified by name, to a given value or value source. Both the value instance and source must be provided. A new property will be created to hold this setting if needed.
Parameters:
  name - The name of the property to set.
Parameters:
  value - The instance of the value to set
Parameters:
  valueSource - The source string that represents the value The property that was set and possibly created, or null if the property was not found



shouldInsertCleanupEntry
public boolean shouldInsertCleanupEntry()(Code)



toString
public void toString(StringBuffer sb)(Code)



unsetEventSet
public void unsetEventSet(EventSet es)(Code)
Unset (unhook) a given EventSet and remove its source representation.
Parameters:
  es - EventSet to unset.



unsetEventSet
public void unsetEventSet(String name)(Code)
Unset (unhook) a given EventSet, indicated by name, and remove its source representation.
Parameters:
  name - EventSet name to unset.



unsetProperty
public void unsetProperty(Property p)(Code)
Unset (remove) a given property from this bean.
Parameters:
  p - Property to unset & remove.



unsetProperty
public void unsetProperty(String name)(Code)
Unset (remove) a given property, indicated by name, from this bean.
Parameters:
  name - Property name to unset and remove.



Fields inherited from org.netbeans.modules.visualweb.insync.beans.BeansNode
final protected BeansUnit unit(Code)(Java Doc)

Methods inherited from org.netbeans.modules.visualweb.insync.beans.BeansNode
protected String clzName()(Code)(Java Doc)
public BeansUnit getUnit()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void toString(StringBuffer sb)(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.