Java Doc for TransformOptionsProperty.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) 


com.jeta.forms.store.properties.JETAProperty
   com.jeta.forms.store.properties.TransformOptionsProperty

TransformOptionsProperty
public class TransformOptionsProperty extends JETAProperty implements TransformProperty(Code)
This class is used to manage a set if integer options for a bean property - for example, the options to set the horizontal alignment for the text in a JLabel. In the designer we don't want to display integer values to the user, instead we provide table of String descriptions that map to an associated integer value. The user is shown the strings in a combo. When the user makes a selection, the corresponding integer value is set in the bean.
author:
   Jeff Tassin


Field Summary
final public static  intVERSION
    
final static  longserialVersionUID
    

Constructor Summary
public  TransformOptionsProperty()
    
public  TransformOptionsProperty(String propName, String getMethod, String setMethod, Object[][] options)
     Creates a TransformOptionsProperty with the specified property name and methods.
Parameters:
  propName - the name of the property associated with this transform.
Parameters:
  getMethod - the name of the bean method to get the property value
Parameters:
  setMethdo - the name of the bean method to set the property value
Parameters:
  options - an Nx2 array of options for this transform.

Method Summary
public  booleanequals(Object obj)
     Returns true if this property equals the given object.
public  JETABeangetBean()
     Returns the JETABean associated with this property.
public  ObjectgetCurrentItem()
     Returns the human readable string for the current property value of the Java bean associated with this object.
public  CollectiongetOptions()
     Return a collection of human readable options (Strings) for the associated property.
public  intgetPropertyValue()
    
public  MethodgetWriteMethod()
    
public  booleanisTransient()
     Returns true if this object is not serialiable.
public  voidread(JETAObjectInput in)
    
public  voidsetBean(JETABean bean)
     Sets the bean this property is bound to.
public  voidsetValue(Object option)
     Sets this property to the specified value.
public  intsize()
     Return the number of options in this property.
public  StringtoString()
    
public  voidupdateBean(JETABean jbean)
     Updates the given bean with the latest value of this property.
public  voidwrite(JETAObjectOutput out)
    

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



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
TransformOptionsProperty
public TransformOptionsProperty()(Code)
Creates an uninitialized TransformOptionsProperty



TransformOptionsProperty
public TransformOptionsProperty(String propName, String getMethod, String setMethod, Object[][] options)(Code)
Creates a TransformOptionsProperty with the specified property name and methods.
Parameters:
  propName - the name of the property associated with this transform.
Parameters:
  getMethod - the name of the bean method to get the property value
Parameters:
  setMethdo - the name of the bean method to set the property value
Parameters:
  options - an Nx2 array of options for this transform. The first columnis the integer value for the property. The second column is ahuman readable name that will be displayed in the designerproperties table.




Method Detail
equals
public boolean equals(Object obj)(Code)
Returns true if this property equals the given object.



getBean
public JETABean getBean()(Code)
Returns the JETABean associated with this property. The JETABean contains the underlying Java bean. the bean this property is bound to.



getCurrentItem
public Object getCurrentItem()(Code)
Returns the human readable string for the current property value of the Java bean associated with this object. the selected value



getOptions
public Collection getOptions()(Code)
Return a collection of human readable options (Strings) for the associated property. the set of options available to the user



getPropertyValue
public int getPropertyValue()(Code)
Returns the current property value of the Java bean associated with this property the current property value.



getWriteMethod
public Method getWriteMethod()(Code)
Returns the setter method for this property the setter method for the property



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



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



setBean
public void setBean(JETABean bean)(Code)
Sets the bean this property is bound to. This must be called right after initalization or de-serialization because the bean cannot get/set the properties on the bean without a reference to it.



setValue
public void setValue(Object option)(Code)
Sets this property to the specified value. If required, the value is first transformed to an integer. The associated Java bean is updated.



size
public int size()(Code)
Return the number of options in this property. the number of options in this property



toString
public String toString()(Code)



updateBean
public void updateBean(JETABean jbean)(Code)
Updates the given bean with the latest value of this property.



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



Fields inherited from com.jeta.forms.store.properties.JETAProperty
final public static int VERSION(Code)(Java Doc)
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from com.jeta.forms.store.properties.JETAProperty
public boolean equals(Object object)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected static boolean isCollectionsEqual(Collection c1, Collection c2)(Code)(Java Doc)
protected static boolean isEqual(Object o1, Object o2)(Code)(Java Doc)
public boolean isPreferred()(Code)(Java Doc)
public boolean isTransient()(Code)(Java Doc)
public void postInitialize(FormPanel panel, JETABean jbean)(Code)(Java Doc)
public void read(JETAObjectInput in) throws ClassNotFoundException, IOException(Code)(Java Doc)
public void setPreferred(boolean pref)(Code)(Java Doc)
abstract public void setValue(Object obj)(Code)(Java Doc)
abstract public void updateBean(JETABean jbean)(Code)(Java Doc)
public void write(JETAObjectOutput out) throws IOException(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.