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


org.araneaframework.core.BaseWidget
   org.araneaframework.core.BaseApplicationWidget
      org.araneaframework.uilib.form.control.BaseControl

All known Subclasses:   org.araneaframework.uilib.form.control.ButtonControl,  org.araneaframework.uilib.form.control.StringArrayRequestControl,  org.araneaframework.uilib.form.control.DisplayControl,  org.araneaframework.uilib.form.control.FileUploadControl,  org.araneaframework.uilib.form.control.DateTimeControl,
BaseControl
abstract public class BaseControl extends BaseApplicationWidget implements java.io.Serializable,Control(Code)
This class is a control generalization that provides methods common to all HTML form controls. The methods include XML output and error handling.
author:
   Jevgeni Kabanov (ekabanov at araneaframework dot org)

Inner Class :protected class WidgetImpl extends BaseWidget.WidgetImpl
Inner Class :public class ViewModel implements Control.ViewModel

Field Summary
protected  ObjectinnerData
    
protected  booleanisReadFromRequest
    
protected  Objectvalue
    


Method Summary
public  Widget.Interface_getWidget()
    
protected  voidaction(Path path, InputData input, OutputData output)
    
protected  voidaddError(String error)
    
public  voidconvert()
    
public  voidconvertAndValidate()
    
public  FormElementContextgetFormElementCtx()
    
protected  StringgetLabel()
     Returns control label.
public  ObjectgetRawValue()
     Returns the value of the control (value read from the request).
public  ObjectgetViewModel()
     Returns ViewModel .
protected  voidhandleEvent(InputData input)
    
protected  voidinit()
    
public  booleanisDisabled()
     Returns whether the control is disabled.
protected  booleanisMandatory()
     Returns whether the control is mandatory, that is must be inserted by user.
public  booleanisRead()
     By default the control is considered read if it has a not null data read from request.
protected  booleanisValid()
    
protected  voidreadFromRequest(HttpInputData request)
    
public  voidsetFormElementCtx(FormElementContext formElementContext)
    
public  voidsetRawValue(Object value)
     Sets the raw control value (as it was read from request/written to response).
protected  voidupdate(InputData input)
    
public  voidvalidate()
    

Field Detail
innerData
protected Object innerData(Code)



isReadFromRequest
protected boolean isReadFromRequest(Code)



value
protected Object value(Code)





Method Detail
_getWidget
public Widget.Interface _getWidget()(Code)



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



addError
protected void addError(String error)(Code)



convert
public void convert()(Code)



convertAndValidate
public void convertAndValidate()(Code)



getFormElementCtx
public FormElementContext getFormElementCtx()(Code)



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



getRawValue
public Object getRawValue()(Code)
Returns the value of the control (value read from the request). Type of value depends on the type of control. Returns the value of the control (value read from the request).



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



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



init
protected void init() throws Exception(Code)



isDisabled
public boolean isDisabled()(Code)
Returns whether the control is disabled. whether the control is disabled
since:
   1.1 this method is public and part of Control
since:
   interface



isMandatory
protected boolean isMandatory()(Code)
Returns whether the control is mandatory, that is must be inserted by user. whether the control is mandatory, that is must be inserted by user.



isRead
public boolean isRead()(Code)
By default the control is considered read if it has a not null data read from request.



isValid
protected boolean isValid()(Code)



readFromRequest
protected void readFromRequest(HttpInputData request)(Code)



setFormElementCtx
public void setFormElementCtx(FormElementContext formElementContext)(Code)



setRawValue
public void setRawValue(Object value)(Code)
Sets the raw control value (as it was read from request/written to response). It is usually set by org.araneaframework.uilib.form.Converter when value of FormElement that owns this BaseControl changes.
Parameters:
  value - control value.
See Also:   BaseControl.getRawValue()



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



validate
public void validate()(Code)



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)

Methods inherited from org.araneaframework.core.BaseWidget
public Widget.Interface _getWidget()(Code)(Java Doc)
protected void event(Path path, InputData input) throws Exception(Code)(Java Doc)
protected InputData getInputData()(Code)(Java Doc)
protected OutputData getOutputData()(Code)(Java Doc)
protected void handleWidgetException(Exception e) throws Exception(Code)(Java Doc)
protected void render(OutputData output) throws Exception(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.