com.sun.rave.designtime
Class BasicBeanCreateInfoSet
java.lang.Object
com.sun.rave.designtime.BasicBeanCreateInfo
com.sun.rave.designtime.BasicBeanCreateInfoSet
- All Implemented Interfaces:
- BeanCreateInfo, BeanCreateInfoSet, DisplayItem
- public class BasicBeanCreateInfoSet
- extends BasicBeanCreateInfo
- implements BeanCreateInfoSet
A basic implementation of BeanCreateInfoSet to use for convenience.
- Version:
- 1.0
- Author:
- Joe Nuxoll
- See Also:
BeanCreateInfoSet
|
Field Summary |
protected java.util.ArrayList |
bciList
|
| Methods inherited from class com.sun.rave.designtime.BasicBeanCreateInfo |
beanCreatedSetup, getBeanClassName, getDescription, getDisplayName, getHelpKey, getLargeIcon, getSmallIcon, setBeanClassName, setDescription, setDisplayName, setLargeIcon, setSmallIcon |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bciList
protected java.util.ArrayList bciList
BasicBeanCreateInfoSet
public BasicBeanCreateInfoSet()
BasicBeanCreateInfoSet
public BasicBeanCreateInfoSet(java.lang.String beanClassName)
BasicBeanCreateInfoSet
public BasicBeanCreateInfoSet(java.lang.String beanClassName,
java.awt.Image smallIcon)
BasicBeanCreateInfoSet
public BasicBeanCreateInfoSet(java.lang.String beanClassName,
java.lang.String displayName)
BasicBeanCreateInfoSet
public BasicBeanCreateInfoSet(java.lang.String beanClassName,
java.lang.String displayName,
java.awt.Image smallIcon)
addBeanCreateInfo
public void addBeanCreateInfo(BeanCreateInfo beanCreateInfo)
addBeanCreateInfo
public void addBeanCreateInfo(int index,
BeanCreateInfo beanCreateInfo)
beansCreatedSetup
public Result beansCreatedSetup(DesignBean[] beans)
- Description copied from interface:
BeanCreateInfoSet
A hook that gets called after the full set of JavaBean gets created. This is useful for
a component author to setup an initial state for a set of JavaBeans when they are first
created. Note that this method is only called one time after the JavaBeans are initially
created from the palette. This is *not* a hook that is called each time the project is
reopened.
If the any of the specified JavaBeans have an associated DesignInfo, the DesignInfo's
'beanCreated' method will be called before each of the BeanCreateInfo's 'beanCreated' methods
are called. Once all of the beans have been created, and the individual 'beanCreated' methods
have been called, this 'beansCreated' method will be called. This gives the DesignInfo the
"first crack", but it ultimately gives the BeanCreateInfoSet the "last word".
- Specified by:
beansCreatedSetup in interface BeanCreateInfoSet
- Parameters:
beans - The array of DesignBean objects representing the JavaBeans that have just been
created.
- Returns:
- A standard Result object, indicating success or failure - and optionally including
messages for the user.
getBeanCreateInfo
public BeanCreateInfo getBeanCreateInfo(int index)
getBeanCreateInfoCount
public int getBeanCreateInfoCount()
getBeanCreateInfos
public BeanCreateInfo[] getBeanCreateInfos()
- Description copied from interface:
BeanCreateInfoSet
- Returns the set of BeanCreateInfo objects that represent the beans to be created for this
set.
- Specified by:
getBeanCreateInfos in interface BeanCreateInfoSet
- Returns:
- An array of BeanCreateInfo objects
removeBeanCreateInfo
public void removeBeanCreateInfo(BeanCreateInfo beanCreateInfo)
removeBeanCreateInfo
public void removeBeanCreateInfo(int index)