Java Doc for GenericFormElement.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.core.BaseApplicationWidget
   org.araneaframework.uilib.form.GenericFormElement

All known Subclasses:   org.araneaframework.uilib.form.FormWidget,  org.araneaframework.uilib.form.FormElement,  org.araneaframework.uilib.form.formlist.BaseFormListWidget,
GenericFormElement
abstract public class GenericFormElement extends BaseApplicationWidget (Code)
Represents a general form element, a node in form element hierarchy.
author:
   Jevgeni Kabanov (ekabanov at araneaframework dot org)

Inner Class :public class ViewModel extends BaseApplicationWidget.ViewModel

Field Summary
final public static  StringSEAMLESS_VALIDATION_ACTION_ID
    
protected  BooleanbackgroundValidation
    
protected  Constraintconstraint
    
protected  booleanconverted
    
protected  Mapproperties
    
protected  booleanvalidated
    


Method Summary
abstract public  voidaccept(String id, FormElementVisitor visitor)
     Accepts the visitor.
public  voidaddError(String error)
    
public  voidaddErrors(Set errors)
    
public  voidclearErrors()
     Clears element errors.
public  voidconvert()
     Converts the value from Control s to Data .
public  booleanconvertAndValidate()
     Converts the element value from control to data item and validates the value.
abstract protected  voidconvertInternal()
    
public  ConstraintgetConstraint()
     Returns element constraint.
public  EnvironmentgetConstraintEnvironment()
    
public  SetgetErrors()
     Since 1.1 this returns an immutable Set.
protected  MessageContextgetMessageCtx()
    
since:
   1.1 this method is protected (private before 1.1).
protected  SetgetMutableErrors()
    
public  MapgetProperties()
     Returns all properties of the element as a map (string -> string).
public  ObjectgetProperty(Object key)
     Returns the value of the property.
Parameters:
  key - the name of the property to get.
public  ObjectgetValue()
    
protected  voidinit()
    
public  booleanisBackgroundValidation()
    
abstract public  booleanisDisabled()
     Returns whether the element is disabled.
public  booleanisEvaluated()
     Returns whether last evaluation (converting and optional validating) has succeeded.
abstract public  booleanisStateChanged()
     Returns whether data item state has changed after it was marked.
public  booleanisValid()
     Returns whether the element is valid.
abstract public  voidmarkBaseState()
     Marks the current value of the data item as the base state that will be used to determine whether its state has changed in GenericFormElement.isStateChanged() .
abstract public  voidrestoreBaseState()
     Restores the value of the data item from the marked base state.
public  voidsetBackgroundValidation(boolean b)
    
public  voidsetConstraint(Constraint constraint)
     Sets element constraint.
abstract public  voidsetDisabled(boolean disabled)
     Sets wether the element is disabled.
public  voidsetProperty(Object key, Object value)
     Method for setting property values.
public  booleanvalidate()
     Validates the element.
protected  booleanvalidateInternal()
     Validates the element.

Field Detail
SEAMLESS_VALIDATION_ACTION_ID
final public static String SEAMLESS_VALIDATION_ACTION_ID(Code)

since:
   1.1



backgroundValidation
protected Boolean backgroundValidation(Code)



constraint
protected Constraint constraint(Code)



converted
protected boolean converted(Code)



properties
protected Map properties(Code)



validated
protected boolean validated(Code)





Method Detail
accept
abstract public void accept(String id, FormElementVisitor visitor)(Code)
Accepts the visitor.



addError
public void addError(String error)(Code)



addErrors
public void addErrors(Set errors)(Code)



clearErrors
public void clearErrors()(Code)
Clears element errors.



convert
public void convert()(Code)
Converts the value from Control s to Data .



convertAndValidate
public boolean convertAndValidate()(Code)
Converts the element value from control to data item and validates the value. whether the element is valid.



convertInternal
abstract protected void convertInternal() throws Exception(Code)
Converts the element value from control to data item
throws:
  Exception -



getConstraint
public Constraint getConstraint()(Code)
Returns element constraint. element constraint.



getConstraintEnvironment
public Environment getConstraintEnvironment()(Code)



getErrors
public Set getErrors()(Code)
Since 1.1 this returns an immutable Set.



getMessageCtx
protected MessageContext getMessageCtx()(Code)

since:
   1.1 this method is protected (private before 1.1).



getMutableErrors
protected Set getMutableErrors()(Code)

since:
   1.1



getProperties
public Map getProperties()(Code)
Returns all properties of the element as a map (string -> string). all properties as a map.



getProperty
public Object getProperty(Object key)(Code)
Returns the value of the property.
Parameters:
  key - the name of the property to get. the value of the property, null if property is not defined.



getValue
public Object getValue()(Code)



init
protected void init() throws Exception(Code)



isBackgroundValidation
public boolean isBackgroundValidation()(Code)

since:
   1.1



isDisabled
abstract public boolean isDisabled()(Code)
Returns whether the element is disabled. whether the element is disabled.



isEvaluated
public boolean isEvaluated()(Code)
Returns whether last evaluation (converting and optional validating) has succeeded. whether last evaluation (converting and optional validating) has succeeded.



isStateChanged
abstract public boolean isStateChanged()(Code)
Returns whether data item state has changed after it was marked. whether data item state has changed after it was marked.



isValid
public boolean isValid()(Code)
Returns whether the element is valid. whether the element is valid.



markBaseState
abstract public void markBaseState()(Code)
Marks the current value of the data item as the base state that will be used to determine whether its state has changed in GenericFormElement.isStateChanged() .



restoreBaseState
abstract public void restoreBaseState()(Code)
Restores the value of the data item from the marked base state.



setBackgroundValidation
public void setBackgroundValidation(boolean b)(Code)

since:
   1.1



setConstraint
public void setConstraint(Constraint constraint)(Code)
Sets element constraint.
Parameters:
  constraint - The constraint to set.



setDisabled
abstract public void setDisabled(boolean disabled)(Code)
Sets wether the element is disabled.
Parameters:
  disabled - wether the element is disabled.



setProperty
public void setProperty(Object key, Object value)(Code)
Method for setting property values.
Parameters:
  key - name of the property to be set.
Parameters:
  value - value for the property.



validate
public boolean validate()(Code)
Validates the element. whether the element is valid.



validateInternal
protected boolean validateInternal() throws Exception(Code)
Validates the element. whether the element is valid.
throws:
  Exception -



Methods inherited from org.araneaframework.core.BaseApplicationWidget
public Composite.Interface _getComposite()(Code)(Java Doc)
public Viewable.Interface _getViewable()(Code)(Java Doc)
protected void action(Path path, InputData input, OutputData output) throws Exception(Code)(Java Doc)
public void addActionListener(Object actionId, ActionListener listener)(Code)(Java Doc)
public void addEventListener(Object eventId, EventListener listener)(Code)(Java Doc)
public void addWidget(Object key, Widget child, Environment env)(Code)(Java Doc)
public void addWidget(Object key, Widget child)(Code)(Java Doc)
public void clearActionListeners(Object actionId)(Code)(Java Doc)
public void clearEventlisteners(Object eventId)(Code)(Java Doc)
public void clearGlobalEventListener()(Code)(Java Doc)
public void disableWidget(Object key)(Code)(Java Doc)
public void enableWidget(Object key)(Code)(Java Doc)
protected void event(Path path, InputData input) throws Exception(Code)(Java Doc)
protected Object getActionId(InputData input)(Code)(Java Doc)
final public Environment getChildEnvironment()(Code)(Java Doc)
protected Environment getChildWidgetEnvironment() throws Exception(Code)(Java Doc)
public Map getChildren()(Code)(Java Doc)
public Environment getEnvironment()(Code)(Java Doc)
protected String getEventId(InputData input)(Code)(Java Doc)
public Object getViewModel() throws Exception(Code)(Java Doc)
public Widget getWidget(Object key)(Code)(Java Doc)
protected void handleAction(InputData input, OutputData output) throws Exception(Code)(Java Doc)
protected void handleEvent(InputData input) throws Exception(Code)(Java Doc)
protected void handleUpdate(InputData input) throws Exception(Code)(Java Doc)
protected void propagate(Message message) throws Exception(Code)(Java Doc)
public void putViewData(String key, Object customDataItem)(Code)(Java Doc)
public void putViewDataOnce(String key, Object customDataItem)(Code)(Java Doc)
public void removeActionListener(ActionListener listener)(Code)(Java Doc)
public void removeEventListener(EventListener listener)(Code)(Java Doc)
public void removeViewData(String key)(Code)(Java Doc)
public void removeWidget(Object key)(Code)(Java Doc)
protected void render(OutputData output) throws Exception(Code)(Java Doc)
public void setGlobalEventListener(EventListener eventListener)(Code)(Java Doc)
protected void update(InputData input) 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.