| com.jeta.forms.gui.beans.factories.BeanFactory
All known Subclasses: com.jeta.forms.gui.beans.factories.GridViewBeanFactory, com.jeta.forms.gui.beans.factories.JComponentBeanFactory,
BeanFactory | public interface BeanFactory (Code) | | Defines an interface for creating a JETABean, it's associated Java Bean, and
any custom properties. The BeanFactories are responsible for instantiating
all Swing components and defining custom properties and default values for
each type of Swing component.
author: Jeff Tassin |
Method Summary | |
public JETABean | createBean(String compName, boolean instantiateBean, boolean setDefaults) Instantiates a JETABean and assigns any custom properties needed by the
application.
Parameters: compName - the name to assign to this component by callingComponent.setName Parameters: instantiateBean - set to true if the underlying Java Bean should be instantiatedas well. |
createBean | public JETABean createBean(String compName, boolean instantiateBean, boolean setDefaults) throws FormException(Code) | | Instantiates a JETABean and assigns any custom properties needed by the
application.
Parameters: compName - the name to assign to this component by callingComponent.setName Parameters: instantiateBean - set to true if the underlying Java Bean should be instantiatedas well. During deserialization we don't want to do thisbecause the BeanDeserializer will create the JavaBean for us. Parameters: setDefaults - sets default properties for the bean. If false, no propertieswill be set (e.g. the text for a JButton) the newly instantiated JETABean |
|
|