| javax.swing.JPanel com.jeta.forms.gui.beans.JETABean
JETABean | public class JETABean extends JPanel (Code) | | A JETABean is a container and a proxy for a regular JavaBean.
However, a JETABean also supports the notion of dynamic
properties. These are properties that can be added at design time to the
delegate bean. For example, components such as JList, JTable, JTextArea, etc.
are normally contained within a scroll pane. Instead of requiring the user to
create a JScrollPane and adding the child component, we create a scroll
property and attach at design-runtime to the list, table, and text areas.
This is much easier for the user to work with.
All Java Bean components are contained within a JETABean instance in this
architecture.
author: Jeff Tassin |
Constructor Summary | |
public | JETABean() Creates a JETABean instance. | public | JETABean(Component delegate, BeanProperties customProperties) Creates a JETABean instance with the specified Java Bean
delegate and dynamic properties.
Parameters: delegate - the Swing component that we are a proxy for Parameters: customProps - a collection of default JETAProperty objects that we wish toadd to this bean. | public | JETABean(Component delegate) Creates a JETABean instance with the specified Java Bean
delegate and no custom properties. |
JETABean | public JETABean()(Code) | | Creates a JETABean instance.
|
JETABean | public JETABean(Component delegate, BeanProperties customProperties) throws FormException(Code) | | Creates a JETABean instance with the specified Java Bean
delegate and dynamic properties.
Parameters: delegate - the Swing component that we are a proxy for Parameters: customProps - a collection of default JETAProperty objects that we wish toadd to this bean. These are the dynamic properties for thebean (if any). |
JETABean | public JETABean(Component delegate) throws FormException(Code) | | Creates a JETABean instance with the specified Java Bean
delegate and no custom properties.
Parameters: delegate - the Swing component that we are a wrapper for |
getBeanChildComponent | public Component getBeanChildComponent()(Code) | | This returns the child component of this bean. Normally, this is the same
object as the m_delegate. However, in some cases it can be different. For
example, if the delegate is contained in a scrollpane.
|
getBeanInfo | public DynamicBeanInfo getBeanInfo()(Code) | | Returns the Bean information for the Java Bean. Normally, the BeanFactory
provides the Bean Information. However, if this is not the case, then we
generate a default BeanInfo using the Introspector.
the BeanInfo object that describes the properties for thedelegate |
getBeanName | public String getBeanName()(Code) | | Returns the name of the Java Bean. This is the same as the 'name'
property.
the name of the delegate |
getCustomProperty | public JETAProperty getCustomProperty(String propName)(Code) | | Return the custom property associated with this bean.
Parameters: propName - the name of the property to get. the custom property associated with this bean. Null is returnedif the property is not found |
getDelegate | public Component getDelegate()(Code) | | Returns the underlying Java Bean component. This is the actual Swing
component that will be visible on the form.
the underlying Java Bean component. |
getPropertyDescriptors | public Collection getPropertyDescriptors()(Code) | | Return the property descriptors associated with this bean. This includes
all standard and custom properties.
a collection of JETAPropertyDescriptor objects |
getState | public void getState(BeanMemento memento, StateRequest sr) throws FormException(Code) | | Stores this bean's state into the given memento object.
Parameters: memento - the object used to hold the bean state. This includes allproperty values. Parameters: sr - a request object that gives hints on how the state should bestored. |
postInitialize | public void postInitialize(FormPanel panel)(Code) | | PostInitialize is called once after all components in a form have been
re-instantiated at runtime (not design time). This gives each property
and component a chance to do some last minute initializations that might
depend on the top level parent. An example of this is using ButtonGroups.
Groups for JRadioButtons are global to a FormPanel and not specific to
each FormComponent instance.
|
setCustomProperty | public void setCustomProperty(String propName, JETAProperty prop)(Code) | | Sets a custom property associated with this bean.
|
setName | public void setName(String name)(Code) | | This should never be called.
|
setState | public void setState(PropertiesMemento props_memento) throws FormException(Code) | | Sets this bean's state using the given properties memento object.
Parameters: memento - the bean state. |
|
|