Java Doc for FormWidget.java in  » Web-Framework » aranea-mvc-1.1.1 » org » araneaframework » uilib » form » 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 » Web Framework » aranea mvc 1.1.1 » org.araneaframework.uilib.form 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.araneaframework.uilib.form.GenericFormElement
   org.araneaframework.uilib.form.FormWidget

All known Subclasses:   org.araneaframework.uilib.form.BeanFormWidget,
FormWidget
public class FormWidget extends GenericFormElement implements FormContext(Code)
This class represents a form element that can contain other form elements.
author:
   Jevgeni Kabanov (ekabanov at araneaframework dot org)

Inner Class :public class ViewModel extends GenericFormElement.ViewModel

Field Summary
protected  LinkedMapelements
    


Method Summary
public  voidaccept(String id, FormElementVisitor visitor)
    
public  voidaddElement(String id, GenericFormElement element)
     Adds a contained element.
public  FormElementaddElement(String elementName, String labelId, Control control, Data data, boolean mandatory)
     This method adds a FormElement to this FormWidget .
public  FormElementaddElement(String elementName, String labelId, Control control, Data data, Object initialValue, boolean mandatory)
     This method adds a FormElement to this FormWidget .
public  voidaddElementAfter(String id, GenericFormElement element, String afterId)
     Adds a contained element with given id after the element with specified id.
public  voidaddElementBefore(String id, GenericFormElement element, String beforeId)
     Adds a contained element with given id before the element with specified id.
public  voidaddError(String error)
    
public  FormWidgetaddSubForm(String id)
     Adds a new subform to this FormWidget .
Parameters:
  id - subform id.
public  voidclearErrors()
    
protected  voidconvertInternal()
     Calls GenericFormElement.convert for all contained elements.
public  FormElementcreateElement(String labelId, Control control, Data data, Object initialValue, boolean mandatory)
     This method makes a FormElement with given Control and Data .
public  FormElementcreateElement(String labelId, Control control, Data data, boolean mandatory)
     This method makes a FormElement with given Control and Data .
Parameters:
  labelId - id of the localized label.
Parameters:
  control - the type of control data.
Parameters:
  data - the type of data.
Parameters:
  mandatory - whether the element must be present in request.
protected  EnvironmentgetChildWidgetEnvironment()
    
public  ControlgetControlByFullName(String fullName)
     Returns composite form element specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element.
public  GenericFormElementgetElement(String elementName)
     Returns a contained element by its name.
public  FormElementgetElementByFullName(String fullName)
     Returns simple form element specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element.
public  MapgetElements()
     Returns elements.
public  GenericFormElementgetGenericElementByFullName(String fullName)
     Returns form element specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element.
public  FormWidgetgetSubFormByFullName(String fullName)
     Returns simple form element specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element.
public  ObjectgetValueByFullName(String fullName)
     Returns form element value specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element.
public  ObjectgetViewModel()
     Returns ViewModel .
protected  voidinit()
    
public  booleanisDisabled()
    
public  booleanisStateChanged()
    
public  booleanisValid()
    
public  voidmarkBaseState()
    
public  voidremoveElement(String id)
     Removes a contained element by its name.
public  voidrestoreBaseState()
    
public  voidsetDisabled(boolean disabled)
    
public  voidsetValueByFullName(String fullName, Object value)
     Sets form element value specified by full name.
protected  booleanvalidateInternal()
     Controls that the constraints and all subcontrols are valid.

Field Detail
elements
protected LinkedMap elements(Code)





Method Detail
accept
public void accept(String id, FormElementVisitor visitor)(Code)



addElement
public void addElement(String id, GenericFormElement element)(Code)
Adds a contained element.
Parameters:
  element - contained element.
Parameters:
  id - element id



addElement
public FormElement addElement(String elementName, String labelId, Control control, Data data, boolean mandatory)(Code)
This method adds a FormElement to this FormWidget .
Parameters:
  elementName - the name of the form element.
Parameters:
  labelId - id of the localized label.
Parameters:
  control - the type of control data.
Parameters:
  data - the type of data.
Parameters:
  mandatory - whether the element must be present in request.



addElement
public FormElement addElement(String elementName, String labelId, Control control, Data data, Object initialValue, boolean mandatory)(Code)
This method adds a FormElement to this FormWidget .
Parameters:
  elementName - the name of the form element.
Parameters:
  labelId - id of the localized label.
Parameters:
  control - the type of control data.
Parameters:
  data - the type of data.
Parameters:
  mandatory - whether the element must be present in request.



addElementAfter
public void addElementAfter(String id, GenericFormElement element, String afterId)(Code)
Adds a contained element with given id after the element with specified id.
Parameters:
  id - added element id
Parameters:
  element - added element
Parameters:
  afterId - element id after which contained element should be added



addElementBefore
public void addElementBefore(String id, GenericFormElement element, String beforeId)(Code)
Adds a contained element with given id before the element with specified id. Should be only used in RARE cases where internal order of elements matters for some reason.
Parameters:
  id - added element id
Parameters:
  element - added element
Parameters:
  beforeId - element id before which contained element should be added



addError
public void addError(String error)(Code)



addSubForm
public FormWidget addSubForm(String id)(Code)
Adds a new subform to this FormWidget .
Parameters:
  id - subform id. created subform



clearErrors
public void clearErrors()(Code)



convertInternal
protected void convertInternal() throws Exception(Code)
Calls GenericFormElement.convert for all contained elements.



createElement
public FormElement createElement(String labelId, Control control, Data data, Object initialValue, boolean mandatory)(Code)
This method makes a FormElement with given Control and Data .
Parameters:
  labelId - localized label id
Parameters:
  control - the type of control
Parameters:
  data - the type of data
Parameters:
  initialValue - initial value for data
Parameters:
  mandatory - whether the element must be filled in FormElement with given configuration



createElement
public FormElement createElement(String labelId, Control control, Data data, boolean mandatory)(Code)
This method makes a FormElement with given Control and Data .
Parameters:
  labelId - id of the localized label.
Parameters:
  control - the type of control data.
Parameters:
  data - the type of data.
Parameters:
  mandatory - whether the element must be present in request. FormElement with given configuration



getChildWidgetEnvironment
protected Environment getChildWidgetEnvironment() throws Exception(Code)



getControlByFullName
public Control getControlByFullName(String fullName)(Code)
Returns composite form element specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element. composite form element specified by full name.



getElement
public GenericFormElement getElement(String elementName)(Code)
Returns a contained element by its name.
Parameters:
  elementName - contained element name a contained element by its name.



getElementByFullName
public FormElement getElementByFullName(String fullName)(Code)
Returns simple form element specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element. simple form element specified by full name.



getElements
public Map getElements()(Code)
Returns elements. elements.



getGenericElementByFullName
public GenericFormElement getGenericElementByFullName(String fullName)(Code)
Returns form element specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element. form element specified by full name.



getSubFormByFullName
public FormWidget getSubFormByFullName(String fullName)(Code)
Returns simple form element specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element. simple form element specified by full name.



getValueByFullName
public Object getValueByFullName(String fullName)(Code)
Returns form element value specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element. form element value specified by full name.



getViewModel
public Object getViewModel()(Code)
Returns ViewModel . ViewModel.



init
protected void init() throws Exception(Code)



isDisabled
public boolean isDisabled()(Code)



isStateChanged
public boolean isStateChanged()(Code)



isValid
public boolean isValid()(Code)



markBaseState
public void markBaseState()(Code)



removeElement
public void removeElement(String id)(Code)
Removes a contained element by its name.



restoreBaseState
public void restoreBaseState()(Code)



setDisabled
public void setDisabled(boolean disabled)(Code)



setValueByFullName
public void setValueByFullName(String fullName, Object value)(Code)
Sets form element value specified by full name.
Parameters:
  fullName - The full dot-separated name of the form element.
Parameters:
  value - form element value specified by full name.



validateInternal
protected boolean validateInternal() throws Exception(Code)
Controls that the constraints and all subcontrols are valid.



Fields inherited from org.araneaframework.uilib.form.GenericFormElement
final public static String SEAMLESS_VALIDATION_ACTION_ID(Code)(Java Doc)
protected Boolean backgroundValidation(Code)(Java Doc)
protected Constraint constraint(Code)(Java Doc)
protected boolean converted(Code)(Java Doc)
protected Map properties(Code)(Java Doc)
protected boolean validated(Code)(Java Doc)

Methods inherited from org.araneaframework.uilib.form.GenericFormElement
abstract public void accept(String id, FormElementVisitor visitor)(Code)(Java Doc)
public void addError(String error)(Code)(Java Doc)
public void addErrors(Set errors)(Code)(Java Doc)
public void clearErrors()(Code)(Java Doc)
public void convert()(Code)(Java Doc)
public boolean convertAndValidate()(Code)(Java Doc)
abstract protected void convertInternal() throws Exception(Code)(Java Doc)
public Constraint getConstraint()(Code)(Java Doc)
public Environment getConstraintEnvironment()(Code)(Java Doc)
public Set getErrors()(Code)(Java Doc)
protected MessageContext getMessageCtx()(Code)(Java Doc)
protected Set getMutableErrors()(Code)(Java Doc)
public Map getProperties()(Code)(Java Doc)
public Object getProperty(Object key)(Code)(Java Doc)
public Object getValue()(Code)(Java Doc)
protected void init() throws Exception(Code)(Java Doc)
public boolean isBackgroundValidation()(Code)(Java Doc)
abstract public boolean isDisabled()(Code)(Java Doc)
public boolean isEvaluated()(Code)(Java Doc)
abstract public boolean isStateChanged()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
abstract public void markBaseState()(Code)(Java Doc)
abstract public void restoreBaseState()(Code)(Java Doc)
public void setBackgroundValidation(boolean b)(Code)(Java Doc)
public void setConstraint(Constraint constraint)(Code)(Java Doc)
abstract public void setDisabled(boolean disabled)(Code)(Java Doc)
public void setProperty(Object key, Object value)(Code)(Java Doc)
public boolean validate()(Code)(Java Doc)
protected boolean validateInternal() throws Exception(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.