Java Doc for JETABean.java in  » Swing-Library » abeille-forms-designer » com » jeta » forms » gui » beans » 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 » Swing Library » abeille forms designer » com.jeta.forms.gui.beans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.

Method Summary
public  ComponentgetBeanChildComponent()
     This returns the child component of this bean.
public  DynamicBeanInfogetBeanInfo()
     Returns the Bean information for the Java Bean.
public  StringgetBeanName()
     Returns the name of the Java Bean.
public  JETAPropertygetCustomProperty(String propName)
     Return the custom property associated with this bean.
Parameters:
  propName - the name of the property to get.
public  ComponentgetDelegate()
     Returns the underlying Java Bean component.
public  CollectiongetPropertyDescriptors()
     Return the property descriptors associated with this bean.
public  voidgetState(BeanMemento memento, StateRequest sr)
     Stores this bean's state into the given memento object.
Parameters:
  memento - the object used to hold the bean state.
public  voidpostInitialize(FormPanel panel)
     PostInitialize is called once after all components in a form have been re-instantiated at runtime (not design time).
public  voidsetCustomProperty(String propName, JETAProperty prop)
     Sets a custom property associated with this bean.
public  voidsetName(String name)
     This should never be called.
public  voidsetState(BeanMemento memento)
     Sets this bean's state using the given memento object.
Parameters:
  memento - the bean state.
public  voidsetState(PropertiesMemento props_memento)
     Sets this bean's state using the given properties memento object.


Constructor Detail
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




Method Detail
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(BeanMemento memento) throws FormException(Code)
Sets this bean's state using the given memento object.
Parameters:
  memento - the bean state. This was created by calling getState.
See Also:   JETABean.getState



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.



Methods inherited from javax.swing.JPanel
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public PanelUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void setUI(PanelUI ui)(Code)(Java Doc)
public void updateUI()(Code)(Java Doc)

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