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


com.jeta.forms.store.memento.ComponentMemento
   com.jeta.forms.store.memento.FormMemento

FormMemento
public class FormMemento extends ComponentMemento (Code)
This class represents the state of a FormComponent including all of its Java bean components and nested forms. A FormMemento can be safely serialized to an i/o stream. You can get the state of a FormComponent by calling: com.jeta.forms.gui.form.FormComponent.getState Likewise, you can set the state of a FormComponent by calling: com.jeta.forms.gui.form.FormComponent.setState Once you have a FormMemento object, you can create and initialize multiple FormComponents from the memento.
 // assume you have a given form component
 FormComponent fc1 = ...;
 FormMemento memento = fc1.getState();
 FormComponent fc2 = new FormComponent();
 fc2.setState( memento );
 FormComponent fc3 = new FormComponent();
 fc3.setState( memento );
 //  fc2 and fc3 are copies of fc1 
 

author:
   Jeff Tassin


Field Summary
final public static  intVERSION
     The version of this class.
final static  longserialVersionUID
    


Method Summary
public  voidaddComponent(ComponentMemento memento)
     Adds a child component's state to the list of states owned by this memento.
public  MatrixgetCellPainters()
     Returns a matrix that defines the painters for individual cells in the form.
public  FormGroupSetgetColumnGroups()
     Return the column groups for the form.
public  StringgetColumnSpecs()
     Return an encoded string of column specs for this form.
public  FocusPolicyMementogetFocusPolicy()
     Returns the focus policy for the form.
public  StringgetId()
     Returns a unique id for this form.
public  HashMapgetProperties()
    
public  PropertiesMementogetPropertiesMemento()
     Returns properties memento for this form.
public  StringgetRelativePath()
     Returns the relative path where this form is located.
public  FormGroupSetgetRowGroups()
     Return the row groups for this form.
public  StringgetRowSpecs()
     Return an encoded string of row specs for this form.
public  Iteratoriterator()
     Returns an iterator to a set of ComponentMemento objects which are contained by this form.
public  voidprint()
    
public  voidread(JETAObjectInput in)
    
public  voidsetCellPainters(Matrix painters)
     Sets the cell painters defined in the form.
public  voidsetColumnGroups(FormGroupSet colgrps)
    
public  voidsetColumnSpecs(String colSpecs)
     Sets the encoded ColumnSpecs used by the FormLayout for this form.
public  voidsetFocusPolicy(FocusPolicyMemento memento)
    
public  voidsetId(String id)
     Sets the unique id for this form.
public  voidsetProperties(HashMap props)
    
public  voidsetPropertiesMemento(PropertiesMemento pm)
     Sets the properties memento for this form.
public  voidsetRelativePath(String path)
     Sets the relative path where this form is located.
public  voidsetRowGroups(FormGroupSet rowgrps)
    
public  voidsetRowSpecs(String rowSpecs)
     Sets the RowSpecs used by the FormLayout for this form.
public  intsize()
     Returns the number of child components in this form.
public  voidwrite(JETAObjectOutput out)
    

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



serialVersionUID
final static long serialVersionUID(Code)





Method Detail
addComponent
public void addComponent(ComponentMemento memento)(Code)
Adds a child component's state to the list of states owned by this memento.
Parameters:
  memento - the state of a Java Bean (BeanComponent) or nested form thatis contained by this form.



getCellPainters
public Matrix getCellPainters()(Code)
Returns a matrix that defines the painters for individual cells in the form. A matrix of cell painters



getColumnGroups
public FormGroupSet getColumnGroups()(Code)
Return the column groups for the form. the column groups for the form



getColumnSpecs
public String getColumnSpecs()(Code)
Return an encoded string of column specs for this form. Each column spec is separated by a comma. the encoded ColumnSpecs used by the FormLayout for this form.



getFocusPolicy
public FocusPolicyMemento getFocusPolicy()(Code)
Returns the focus policy for the form. the focus policy for this form



getId
public String getId()(Code)
Returns a unique id for this form. The id is used primarily in the designer and has no effect during runtime. the unique id for this form



getProperties
public HashMap getProperties()(Code)
the form properties



getPropertiesMemento
public PropertiesMemento getPropertiesMemento()(Code)
Returns properties memento for this form. The PropertiesMemento stores the Java Bean properties and custom properties for a component. the properties memento to associated with this form.



getRelativePath
public String getRelativePath()(Code)
Returns the relative path where this form is located. This is the same as the package that contains the form. the relative path where this form is located.



getRowGroups
public FormGroupSet getRowGroups()(Code)
Return the row groups for this form. the row groups for the form



getRowSpecs
public String getRowSpecs()(Code)
Return an encoded string of row specs for this form. Each row spec is separated by a comma. the encoded RowSpecs used by the FormLayout for this form.



iterator
public Iterator iterator()(Code)
Returns an iterator to a set of ComponentMemento objects which are contained by this form.



print
public void print()(Code)
Used for testing



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



setCellPainters
public void setCellPainters(Matrix painters)(Code)
Sets the cell painters defined in the form.
Parameters:
  painters - A matrix of cell painters



setColumnGroups
public void setColumnGroups(FormGroupSet colgrps)(Code)
Set the column groups for the form
Parameters:
  colgrps - the column groups
See Also:   com.jgoodies.forms.layout.FormLayout.setColumnGroups(int[][])



setColumnSpecs
public void setColumnSpecs(String colSpecs)(Code)
Sets the encoded ColumnSpecs used by the FormLayout for this form.
Parameters:
  colSpecs - a comma separated list of column specs.



setFocusPolicy
public void setFocusPolicy(FocusPolicyMemento memento)(Code)
Sets the focus policy for this form
Parameters:
  memento - the focus policy state



setId
public void setId(String id)(Code)
Sets the unique id for this form. Ids are only used by the designer and have no effect during runtime.
Parameters:
  id - the id to assign to the form.



setProperties
public void setProperties(HashMap props)(Code)
Sets the form properties
See Also:   FormMemento.setPropertiesMemento(PropertiesMemento)



setPropertiesMemento
public void setPropertiesMemento(PropertiesMemento pm)(Code)
Sets the properties memento for this form. The PropertiesMemento stores standard Java bean properties and custom properties.
Parameters:
  pm - the properties memento to associated with this form.



setRelativePath
public void setRelativePath(String path)(Code)
Sets the relative path where this form is located. This is the same as the package that contains the form.
Parameters:
  path - the relative path to set for the form.



setRowGroups
public void setRowGroups(FormGroupSet rowgrps)(Code)
Set the row groups for the form
Parameters:
  rowgrps - the row groups to set
See Also:   com.jgoodies.forms.layout.FormLayout.setRowGroups(int[][])



setRowSpecs
public void setRowSpecs(String rowSpecs)(Code)
Sets the RowSpecs used by the FormLayout for this form.
Parameters:
  rowSpecs - a comma separated list of row specs for the form.



size
public int size()(Code)
Returns the number of child components in this form.



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



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

Methods inherited from com.jeta.forms.store.memento.ComponentMemento
public CellConstraintsMemento getCellConstraintsMemento()(Code)(Java Doc)
public String getComponentClass()(Code)(Java Doc)
public void print()(Code)(Java Doc)
public void read(JETAObjectInput in) throws ClassNotFoundException, IOException(Code)(Java Doc)
public void setCellConstraints(CellConstraints cellConstraints)(Code)(Java Doc)
public void setCellConstraintsMemento(CellConstraintsMemento cellConstraints)(Code)(Java Doc)
public void setComponentClass(String componentClass)(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.