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

FormElement
public class FormElement extends GenericFormElement implements FormElementContext,RenderStateAware(Code)
Represents a simple "leaf" form element that holds a Control and its Data .
author:
   Jevgeni Kabanov (ekabanov at araneaframework dot org)

Inner Class :public class ViewModel extends GenericFormElement.ViewModel

Field Summary
final public static  StringERROR_RENDERER_PROPERTY_KEY
     The property key for custom FormElementValidationErrorRenderer that may be set for this FormElement .
protected  Controlcontrol
    
protected  Converterconverter
    
protected  Datadata
    
protected  booleandisabled
    
protected  Stringlabel
    
protected  booleanmandatory
    


Method Summary
public  void_setRendered(boolean rendered)
    
public  voidaccept(String id, FormElementVisitor visitor)
    
protected  voidaction(Path path, InputData input, OutputData output)
    
public  voidaddError(String error)
    
public  voidaddInitEvent(Event event)
    
public  voidclearErrors()
    
protected  voidconvertInternal()
     Uses BaseConverter to convert the BaseControl value to the Data value.
protected  voiddestroy()
    
protected  voiddestroyControl()
    
protected  voidevent(Path path, InputData input)
    
public  ConverterfindConverter()
     Finds a BaseConverter corresponding to current control and data item.
public  EnvironmentgetConstraintEnvironment()
    
public  ControlgetControl()
     Returns Control .
public  ConvertergetConverter()
     Returns BaseConverter .
public  DatagetData()
     Returns Data .
protected  FormElementValidationActionListenergetDefaultBackgroundValidationListener()
     Returns new instance of FormElementValidationActionListener tied to this FormElement .
public  FormElementValidationErrorRenderergetFormElementValidationErrorRenderer()
    
public  StringgetLabel()
     Returns control label.
public  ObjectgetValue()
    
public  ObjectgetViewModel()
     Returns ViewModel .
protected  voidhandleAction(InputData input, OutputData output)
    
protected  voidinit()
    
public  booleanisDisabled()
    
protected  booleanisIgnoreEvents()
    
public  booleanisMandatory()
    
public  booleanisRead()
     Returns whether the form element was present in the last request.
public  booleanisRendered()
     Returns whether this GenericFormElement was rendered in response.
public  booleanisStateChanged()
    
public  voidmarkBaseState()
    
public  voidrendered()
     Marks status of this FormElement rendered.
public  voidrestoreBaseState()
    
protected  voidrunInitEvents()
     Called from FormElement.init to run queued events.
public  voidsetBackgroundValidationListener(ActionListener actionListener)
     Sets the action listener that deals with background validation of form.
public  voidsetControl(Control control)
     Sets Control .
public  voidsetConverter(Converter converter)
     Sets BaseConverter .
public  voidsetData(Data data)
     Sets Data .
public  voidsetDisabled(boolean disabled)
    
public  voidsetFormElementValidationErrorRenderer(FormElementValidationErrorRenderer renderer)
    
protected  voidsetIgnoreEvents(boolean ignoreEvents)
    
public  voidsetLabel(String label)
     Sets control label.
public  voidsetMandatory(boolean mandatory)
    
public  voidsetValue(Object value)
    
protected  voidupdate(InputData input)
    
protected  booleanvalidateInternal()
    

Field Detail
ERROR_RENDERER_PROPERTY_KEY
final public static String ERROR_RENDERER_PROPERTY_KEY(Code)
The property key for custom FormElementValidationErrorRenderer that may be set for this FormElement .
since:
   1.1



control
protected Control control(Code)



converter
protected Converter converter(Code)



data
protected Data data(Code)



disabled
protected boolean disabled(Code)



label
protected String label(Code)



mandatory
protected boolean mandatory(Code)





Method Detail
_setRendered
public void _setRendered(boolean rendered)(Code)

since:
   1.1



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



action
protected void action(Path path, InputData input, OutputData output) throws Exception(Code)



addError
public void addError(String error)(Code)



addInitEvent
public void addInitEvent(Event event)(Code)

since:
   1.0.5



clearErrors
public void clearErrors()(Code)



convertInternal
protected void convertInternal()(Code)
Uses BaseConverter to convert the BaseControl value to the Data value.



destroy
protected void destroy() throws Exception(Code)



destroyControl
protected void destroyControl()(Code)

since:
   1.1



event
protected void event(Path path, InputData input) throws Exception(Code)



findConverter
public Converter findConverter() throws ConverterNotFoundException(Code)
Finds a BaseConverter corresponding to current control and data item.
throws:
  ConverterNotFoundException - if converter cannot be found.



getConstraintEnvironment
public Environment getConstraintEnvironment()(Code)



getControl
public Control getControl()(Code)
Returns Control . Control.



getConverter
public Converter getConverter()(Code)
Returns BaseConverter . the BaseConverter.



getData
public Data getData()(Code)
Returns Data . Data.



getDefaultBackgroundValidationListener
protected FormElementValidationActionListener getDefaultBackgroundValidationListener()(Code)
Returns new instance of FormElementValidationActionListener tied to this FormElement .
since:
   1.1



getFormElementValidationErrorRenderer
public FormElementValidationErrorRenderer getFormElementValidationErrorRenderer()(Code)
FormElementValidationErrorRenderer which will take care of rendering validation error messages produced by this FormElement.
since:
   1.1



getLabel
public String getLabel()(Code)
Returns control label. control label.



getValue
public Object getValue()(Code)



getViewModel
public Object getViewModel() throws Exception(Code)
Returns ViewModel . ViewModel.
throws:
  Exception -



handleAction
protected void handleAction(InputData input, OutputData output) throws Exception(Code)



init
protected void init() throws Exception(Code)



isDisabled
public boolean isDisabled()(Code)



isIgnoreEvents
protected boolean isIgnoreEvents()(Code)
When this returns true,
since:
   1.1



isMandatory
public boolean isMandatory()(Code)



isRead
public boolean isRead()(Code)
Returns whether the form element was present in the last request. whether the form element was present in the last request.



isRendered
public boolean isRendered()(Code)
Returns whether this GenericFormElement was rendered in response. Only formelements that were rendered should be read from request. whether this GenericFormElement was rendered



isStateChanged
public boolean isStateChanged()(Code)



markBaseState
public void markBaseState()(Code)



rendered
public void rendered()(Code)
Marks status of this FormElement rendered. Only rendered FormElement s may read the data from subsequent request.



restoreBaseState
public void restoreBaseState()(Code)



runInitEvents
protected void runInitEvents()(Code)
Called from FormElement.init to run queued events.
since:
   1.0.5



setBackgroundValidationListener
public void setBackgroundValidationListener(ActionListener actionListener)(Code)
Sets the action listener that deals with background validation of form. It should be used when custom background validation logic or behaviour is wanted. Just for using default FormElementValidationActionListener , only FormElement.setBackgroundValidation(boolean) needs to be called with parameter true.
Parameters:
  actionListener - custom listener that should handle validation of this FormElement
since:
   1.1



setControl
public void setControl(Control control)(Code)
Sets Control .
Parameters:
  control - Control.



setConverter
public void setConverter(Converter converter)(Code)
Sets BaseConverter .
Parameters:
  converter - The BaseConverterto set.



setData
public void setData(Data data)(Code)
Sets Data .
Parameters:
  data - Data.



setDisabled
public void setDisabled(boolean disabled)(Code)



setFormElementValidationErrorRenderer
public void setFormElementValidationErrorRenderer(FormElementValidationErrorRenderer renderer)(Code)

since:
   1.1



setIgnoreEvents
protected void setIgnoreEvents(boolean ignoreEvents)(Code)
When set
since:
   1.1



setLabel
public void setLabel(String label)(Code)
Sets control label.
Parameters:
  label - control label.



setMandatory
public void setMandatory(boolean mandatory)(Code)



setValue
public void setValue(Object value)(Code)



update
protected void update(InputData input) throws Exception(Code)



validateInternal
protected boolean validateInternal() throws Exception(Code)



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.