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


java.lang.Object
   com.jeta.forms.store.AbstractJETAPersistable
      com.jeta.forms.store.properties.JETAProperty

All known Subclasses:   com.jeta.forms.store.properties.ListItemProperty,  com.jeta.forms.store.properties.LineProperty,  com.jeta.forms.store.properties.ColorProperty,  com.jeta.forms.store.properties.TransformOptionsProperty,  com.jeta.forms.store.properties.effects.GradientProperty,  com.jeta.forms.store.properties.IconProperty,  com.jeta.forms.store.properties.TabProperty,  com.jeta.forms.store.properties.effects.RadialGradientProperty,  com.jeta.forms.store.properties.effects.TextureProperty,  com.jeta.forms.store.properties.ItemsProperty,  com.jeta.forms.store.properties.TabbedPaneProperties,  com.jeta.forms.store.properties.effects.SolidProperty,  com.jeta.forms.store.properties.ButtonGroupProperty,  com.jeta.forms.store.properties.CompoundLineProperty,  com.jeta.forms.store.properties.ScrollBarsProperty,  com.jeta.forms.store.properties.effects.PaintProperty,  com.jeta.forms.store.properties.BorderProperty,
JETAProperty
abstract public class JETAProperty extends AbstractJETAPersistable (Code)
A JETAProperty is the base class for all custom properties for a Java bean. A custom property does more than simply hold a value. They allow a JETABean to add additional properties to a Java bean that are not defined in the BeanInfo. JETAProperties can also have custom logic for setting the value on a bean as well as versionable serialization. For example, some Swing components such as JTree and JList are generally contained in a JScrollPane. So a scrollable custom property was created that allows the user to simply check or uncheck the scrollable behavior for these components in the designer. This is much easier than having to create a JScrollPane instance on a form and manually adding a child component. The scrollable property has the logic necessary to create the JScrollPane at runtime and add the underlying Java bean. The following methods are invoked when a JETAProperty value is set on a bean: 1. setValue this updates this property with a new value if necessary. The property has the option of updating the bean here as well. 2. updateBean If needed, updates the associated bean with current property values. This is needed during initialization. Not all properties need to implement this method. See: com.jeta.forms.gui.beans.JETABean
author:
   Jeff Tassin


Field Summary
final public static  intVERSION
    
final static  longserialVersionUID
    

Constructor Summary
public  JETAProperty()
     Creates an unitialized JETAProperty instance.
public  JETAProperty(String name)
    

Method Summary
public  booleanequals(Object object)
     Object equals implementation.
public  StringgetName()
     Returns the name of this property.
protected static  booleanisCollectionsEqual(Collection c1, Collection c2)
     Returns true if both collections have equal size and each object in the collection equals the corresponding object in the same position in the other collection.
protected static  booleanisEqual(Object o1, Object o2)
     Tests if two objects are equal.
public  booleanisPreferred()
     Returns the flag that indicates if this property is preferred.
public  booleanisTransient()
     Returns true if this property is not serializable.
public  voidpostInitialize(FormPanel panel, JETABean jbean)
     PostInitialize is called once after all components in a form have been instantiated at runtime (not design time).
public  voidread(JETAObjectInput in)
    
public  voidsetPreferred(boolean pref)
     Sets the flag that indicates if this property is preferred.
abstract public  voidsetValue(Object obj)
     Sets this property to that of another property.
abstract public  voidupdateBean(JETABean jbean)
     Updates the specified bean with the current values of this property.
public  voidwrite(JETAObjectOutput out)
    

Field Detail
VERSION
final public static int VERSION(Code)
The current version number of this class



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
JETAProperty
public JETAProperty()(Code)
Creates an unitialized JETAProperty instance.



JETAProperty
public JETAProperty(String name)(Code)
Creates a JETAProperty with specified name
Parameters:
  name - the name for this property




Method Detail
equals
public boolean equals(Object object)(Code)
Object equals implementation.



getName
public String getName()(Code)
Returns the name of this property. the name of this property



isCollectionsEqual
protected static boolean isCollectionsEqual(Collection c1, Collection c2)(Code)
Returns true if both collections have equal size and each object in the collection equals the corresponding object in the same position in the other collection. If both collections are null, true is returned.



isEqual
protected static boolean isEqual(Object o1, Object o2)(Code)
Tests if two objects are equal. If both are null, true is returned.



isPreferred
public boolean isPreferred()(Code)
Returns the flag that indicates if this property is preferred. A preferred property is shown in the Basic tab in the properties panel in the designer. the flag that indicates if this property is preferred



isTransient
public boolean isTransient()(Code)
Returns true if this property is not serializable. true if this object is not serializable



postInitialize
public void postInitialize(FormPanel panel, JETABean jbean)(Code)
PostInitialize is called once after all components in a form have been instantiated at runtime (not design time). This gives each property a chance to do some last minute initializations that might depend on the top level parent. An example of this is button groups for radio buttons. Button groups are global to the top-level parent and not to the nested form that might contain the radio button.
Parameters:
  panel - the top level parent that contains the form.
Parameters:
  jbean - the JETABean associated with this property



read
public void read(JETAObjectInput in) throws ClassNotFoundException, IOException(Code)
Externalizable Implementation



setPreferred
public void setPreferred(boolean pref)(Code)
Sets the flag that indicates if this property is preferred. A preferred property is shown in the Basic tab in the properties panel in the designer.
Parameters:
  pref - the flag that indicates if this property is preferred



setValue
abstract public void setValue(Object obj)(Code)
Sets this property to that of another property.



updateBean
abstract public void updateBean(JETABean jbean)(Code)
Updates the specified bean with the current values of this property.
Parameters:
  jbean - the jetabean to update.



write
public void write(JETAObjectOutput out) throws IOException(Code)
Externalizable Implementation



Methods inherited from com.jeta.forms.store.AbstractJETAPersistable
public void readExternal(java.io.ObjectInput in) throws ClassNotFoundException, IOException(Code)(Java Doc)
public void writeExternal(java.io.ObjectOutput out) throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.