Java Doc for DesignBean.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » designtime » 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 » com.sun.rave.designtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.designtime.DesignBean

All known Subclasses:   org.netbeans.modules.visualweb.insync.live.SourceDesignBean,
DesignBean
public interface DesignBean (Code)

A DesignBean represents an instance of a JavaBean class at design-time. There is one DesignBean instance 'wrapping' each instance of a component class in a bean design tool. All access to properties and events should be done via the DesignBean interface at design-time, so that the tool is able to track changes and persist them. Think of the "DesignBean" as the design-time proxy for an instance of a JavaBean.

IMPLEMENTED BY CREATOR - This interface is implemented by Creator for use by the component (bean) author.


author:
   Joe Nuxoll
version:
   1.0




Method Summary
public  voidaddDesignBeanListener(DesignBeanListener beanListener)
    
public  booleancanSetInstanceName()
     Returns true if this instance can be renamed via this interface.
public  BeanInfogetBeanInfo()
     Returns the BeanInfo descriptor for this bean instance's type.
public  DesignBeangetBeanParent()
     Returns the DesignBean parent of this bean instance, or null if this is a top-level bean.
public  DesignBeangetChildBean(int index)
     Returns the child DesignBean at the specified cardinal index (zero-based).
public  intgetChildBeanCount()
     Returns the count of child DesignBeans contained in this DesignBean.
public  DesignBean[]getChildBeans()
    
public  DesignBeanListener[]getDesignBeanListeners()
    
public  DesignContextgetDesignContext()
     Returns the DesignContext that 'owns' this bean instance.
public  DesignInfogetDesignInfo()
     Returns the DesignInfo instance for this bean instance.
public  DesignEventgetEvent(EventSetDescriptor eventSet, MethodDescriptor event)
     Returns the DesignEvent from within the specified event set and having the specified MethodDescriptor.
public  DesignEventgetEvent(EventDescriptor event)
     Returns a DesignEvent with the specified EventDescriptor.
public  DesignEvent[]getEvents()
     Returns an array of DesignEvent objects representing the events of this DesignBean.
public  DesignEvent[]getEvents(EventSetDescriptor eventSet)
     Returns the DesignEvent objects for a particular event set.
Parameters:
  eventSet - The EventSetDescriptor containing the desired events.
public  ObjectgetInstance()
     Returns the instance that this DesignBean is marshalling.
public  StringgetInstanceName()
     Returns the instance name of this bean - as declared in source code.
public  DesignProperty[]getProperties()
     Returns an array of DesignProperty objects representing the properties of this DesignBean.
public  DesignPropertygetProperty(String propertyName)
     Returns a single DesignProperty object representing the specified property (by name).
Parameters:
  propertyName - The name of the desired DesignProperty to retrieve.
public  DesignPropertygetProperty(PropertyDescriptor property)
     Returns a single DesignProperty object representing the specified property (by descriptor).
Parameters:
  property - The PropertyDescriptor of the desired DesignProperty to retrieve.
public  booleanisContainer()
     Returns true if this DesignBean can be a logical container for other DesignBeans, or false if not.
public  voidremoveDesignBeanListener(DesignBeanListener beanListener)
    
public  booleansetInstanceName(String name)
     Renames the instance variable for this bean instance in the source code.
public  booleansetInstanceName(String name, boolean autoNumber)
     Renames the instance variable for this bean instance in the source code, and appends an auto-incremented number.



Method Detail
addDesignBeanListener
public void addDesignBeanListener(DesignBeanListener beanListener)(Code)
Adds a DesignBeanListener event listener to this DesignBean
Parameters:
  beanListener - the event listener to add



canSetInstanceName
public boolean canSetInstanceName()(Code)
Returns true if this instance can be renamed via this interface. true if this instance can be renamed via this interface, orfalse if not.



getBeanInfo
public BeanInfo getBeanInfo()(Code)
Returns the BeanInfo descriptor for this bean instance's type. The BeanInfo descriptor for this bean instance's type.



getBeanParent
public DesignBean getBeanParent()(Code)
Returns the DesignBean parent of this bean instance, or null if this is a top-level bean. The DesignBean parent of this bean instance, or null if this is a top-level bean.



getChildBean
public DesignBean getChildBean(int index)(Code)
Returns the child DesignBean at the specified cardinal index (zero-based).
Parameters:
  index - The zero-based cardinal index for the desired DesignBean child the DesignBean at the specified index



getChildBeanCount
public int getChildBeanCount()(Code)
Returns the count of child DesignBeans contained in this DesignBean. Children are "logical" children in that they represent the sub-components contained inside of another component in the markup (JSP) or containership hiearchy. The count of DesignBean children contained by this DesignBean



getChildBeans
public DesignBean[] getChildBeans()(Code)
Returns an array of DesignBean children of this DesignBean An array of DesignBean children of this DesignBean



getDesignBeanListeners
public DesignBeanListener[] getDesignBeanListeners()(Code)
Returns an array of DesignBeanListener currently listening to this DesignBean An array of DesignBeanListener currently listening to this DesignBean



getDesignContext
public DesignContext getDesignContext()(Code)
Returns the DesignContext that 'owns' this bean instance. The DesignContext 'owner' of this bean instance.



getDesignInfo
public DesignInfo getDesignInfo()(Code)
Returns the DesignInfo instance for this bean instance. The DesignInfo instance for this bean instance.



getEvent
public DesignEvent getEvent(EventSetDescriptor eventSet, MethodDescriptor event)(Code)
Returns the DesignEvent from within the specified event set and having the specified MethodDescriptor.
Parameters:
  eventSet - The desired EventSetDescriptor
Parameters:
  event - The desired MethodDescriptor The DesignEvent representing the event desired, or null if none matched criteria



getEvent
public DesignEvent getEvent(EventDescriptor event)(Code)
Returns a DesignEvent with the specified EventDescriptor.
Parameters:
  event - The desired event's EventDescriptor The DesignEvent representing the event desired, or null if none matched criteria



getEvents
public DesignEvent[] getEvents()(Code)
Returns an array of DesignEvent objects representing the events of this DesignBean. An array of DesignEvent objecst representing the events of this DesignBean.



getEvents
public DesignEvent[] getEvents(EventSetDescriptor eventSet)(Code)
Returns the DesignEvent objects for a particular event set.
Parameters:
  eventSet - The EventSetDescriptor containing the desired events. An array of DesignEvent objects representing the events contained in the specifiedevent set.



getInstance
public Object getInstance()(Code)
Returns the instance that this DesignBean is marshalling. The instance of the wrapped bean instance.



getInstanceName
public String getInstanceName()(Code)
Returns the instance name of this bean - as declared in source code. The source code instance name of this bean.



getProperties
public DesignProperty[] getProperties()(Code)
Returns an array of DesignProperty objects representing the properties of this DesignBean. An array of DesignProperty objects representing the properties of this DesignBean.



getProperty
public DesignProperty getProperty(String propertyName)(Code)
Returns a single DesignProperty object representing the specified property (by name).
Parameters:
  propertyName - The name of the desired DesignProperty to retrieve. The DesignProperty representing the desired property, or null if the specifiedproperty does not exist in this DesignBean.



getProperty
public DesignProperty getProperty(PropertyDescriptor property)(Code)
Returns a single DesignProperty object representing the specified property (by descriptor).
Parameters:
  property - The PropertyDescriptor of the desired DesignProperty to retrieve. The DesignProperty representing the desired property, or null if the specifiedproperty does not exist in this DesignBean.



isContainer
public boolean isContainer()(Code)
Returns true if this DesignBean can be a logical container for other DesignBeans, or false if not. For example, if a DesignBean is representing a HtmlCommandButton instance, it will return false from this method, whereas a DesignBean representing an HtmlDataTable will return true. You can only add children to a DesignBean that returns true from this method. true if this DesignBean is a container, and false if it isnot



removeDesignBeanListener
public void removeDesignBeanListener(DesignBeanListener beanListener)(Code)
Removes a DesignBeanListener event listener from this DesignBean
Parameters:
  beanListener - the event listener to remove



setInstanceName
public boolean setInstanceName(String name)(Code)
Renames the instance variable for this bean instance in the source code. If successful, this method returns true, if there is a problem, including the existance of a duplicate instance variable name, this method returns false.
Parameters:
  name - The desired source code instance name for this bean. true if the rename was successful, or false if not.



setInstanceName
public boolean setInstanceName(String name, boolean autoNumber)(Code)
Renames the instance variable for this bean instance in the source code, and appends an auto-incremented number. For example: setInstanceName("button", true) --> button1 --> button2 --> button3, etc. If successful, this method returns true, if there is a problem, this method returns false.
Parameters:
  name - The desired source code instance name (base) for this bean.
Parameters:
  autoNumber - true to auto-number the instance name, false tostrictly attempt the specified name. true if the rename was successful, or false if not.



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