|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
| Method Summary | |
void |
addDesignBeanListener(DesignBeanListener beanListener)
Adds a DesignBeanListener event listener to this DesignBean |
boolean |
canSetInstanceName()
Returns true if this instance can be renamed via this interface. |
java.beans.BeanInfo |
getBeanInfo()
Returns the BeanInfo descriptor for this bean instance's type. |
DesignBean |
getBeanParent()
Returns the DesignBean parent of this bean instance, or null if this is a top-level bean. |
DesignBean |
getChildBean(int index)
Returns the child DesignBean at the specified cardinal index (zero-based). |
int |
getChildBeanCount()
Returns the count of child DesignBeans contained in this DesignBean. |
DesignBean[] |
getChildBeans()
Returns an array of DesignBean children of this DesignBean |
DesignBeanListener[] |
getDesignBeanListeners()
Returns an array of DesignBeanListener currently listening to this DesignBean |
DesignContext |
getDesignContext()
Returns the DesignContext that 'owns' this bean instance. |
DesignInfo |
getDesignInfo()
Returns the DesignInfo instance for this bean instance. |
DesignEvent |
getEvent(EventDescriptor event)
Returns a DesignEvent with the specified EventDescriptor. |
DesignEvent |
getEvent(java.beans.EventSetDescriptor eventSet,
java.beans.MethodDescriptor event)
Returns the DesignEvent from within the specified event set and having the specified MethodDescriptor. |
DesignEvent[] |
getEvents()
Returns an array of DesignEvent objects representing the events of this DesignBean. |
DesignEvent[] |
getEvents(java.beans.EventSetDescriptor eventSet)
Returns the DesignEvent objects for a particular event set. |
java.lang.Object |
getInstance()
Returns the instance that this DesignBean is marshalling. |
java.lang.String |
getInstanceName()
Returns the instance name of this bean - as declared in source code. |
DesignProperty[] |
getProperties()
Returns an array of DesignProperty objects representing the properties of this DesignBean. |
DesignProperty |
getProperty(java.beans.PropertyDescriptor property)
Returns a single DesignProperty object representing the specified property (by descriptor). |
DesignProperty |
getProperty(java.lang.String propertyName)
Returns a single DesignProperty object representing the specified property (by name). |
boolean |
isContainer()
Returns true if this DesignBean can be a logical container for other DesignBeans, or false if not. |
void |
removeDesignBeanListener(DesignBeanListener beanListener)
Removes a DesignBeanListener event listener from this DesignBean |
boolean |
setInstanceName(java.lang.String name)
Renames the instance variable for this bean instance in the source code. |
boolean |
setInstanceName(java.lang.String name,
boolean autoNumber)
Renames the instance variable for this bean instance in the source code, and appends an auto-incremented number. |
| Method Detail |
public void addDesignBeanListener(DesignBeanListener beanListener)
beanListener - the event listener to addpublic boolean canSetInstanceName()
public java.beans.BeanInfo getBeanInfo()
public DesignBean getBeanParent()
public DesignBean getChildBean(int index)
index - The zero-based cardinal index for the desired DesignBean child
public int getChildBeanCount()
public DesignBean[] getChildBeans()
public DesignBeanListener[] getDesignBeanListeners()
public DesignContext getDesignContext()
public DesignInfo getDesignInfo()
public DesignEvent getEvent(EventDescriptor event)
event - The desired event's EventDescriptor
public DesignEvent getEvent(java.beans.EventSetDescriptor eventSet,
java.beans.MethodDescriptor event)
eventSet - The desired EventSetDescriptorevent - The desired MethodDescriptor
public DesignEvent[] getEvents()
public DesignEvent[] getEvents(java.beans.EventSetDescriptor eventSet)
eventSet - The EventSetDescriptor containing the desired events.
public java.lang.Object getInstance()
public java.lang.String getInstanceName()
public DesignProperty[] getProperties()
public DesignProperty getProperty(java.beans.PropertyDescriptor property)
property - The PropertyDescriptor of the desired DesignProperty to retrieve.
public DesignProperty getProperty(java.lang.String propertyName)
propertyName - The name of the desired DesignProperty to retrieve.
public boolean isContainer()
public void removeDesignBeanListener(DesignBeanListener beanListener)
beanListener - the event listener to removepublic boolean setInstanceName(java.lang.String name)
name - The desired source code instance name for this bean.
public boolean setInstanceName(java.lang.String name,
boolean autoNumber)
name - The desired source code instance name (base) for this bean.autoNumber - true to auto-number the instance name, false to strictly
attempt the specified name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||