Java Doc for Widget.java in  » EJB-Server-resin-3.1.5 » webutil » com » caucho » widget » 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 » EJB Server resin 3.1.5 » webutil » com.caucho.widget 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.caucho.widget.Widget

All known Subclasses:   com.caucho.widget.TextWidget,  com.caucho.widget.WidgetContainer,
Widget
abstract public class Widget extends AbstractMap (Code)
A Widget stores request specific state (S).


Field Summary
final protected static  Loggerlog
    

Constructor Summary
public  Widget()
    
public  Widget(String id)
    
public  Widget(Widget parent)
    
public  Widget(Widget parent, String id)
    

Method Summary
public  voidaddAllowedWidgetMode(WidgetMode widgetMode)
     Default is to allow all widget modes.
public  voidaddPreference(WidgetPreference widgetPreference)
    
protected  StringcalculateId(Widget child)
    
abstract protected  ScreateState(WidgetConnection connection)
    
protected  WidgetURLcreateURL(WidgetConnection connection)
     Derived classes use this to create a url.
public  WidgetPreferencescreateWidgetPreferences()
    
protected  Sdecode(WidgetConnection connection)
     Called once for each request to restore the state of the widget for the request.
protected  WidgetStatedecodeChild(WidgetConnection connection, WidgetState thisState, Widget child)
    
protected  voiddecodeChildren(WidgetConnection connection, WidgetState state)
    
public  voiddestroy()
    
protected  voidencode(WidgetURL url, WidgetState state, boolean isAction)
    
public  Set<Map.Entry<String, Widget>>entrySet()
    
public  StringgetClientId()
    
public  StringgetCssClass()
     Used by implementing classes to get a css class appropriate for this widget.
public  StringgetId()
    
public  StringgetLogId()
    
public  StringgetModeParameterName()
    
public  StringgetParameterName()
    
public  WidgetgetParent()
    
public  StringgetPreferenceValue(WidgetConnection connection, String key)
     Return a preference value.
public  String[]getPreferenceValues(WidgetConnection connection, String key)
     Return preference values.
 WidgetModegetWidgetMode()
    
protected  WidgetPreferencegetWidgetPreference(String key)
    
public  voidinit()
    
protected  booleanisAction(WidgetState state)
     Does this widget make it so that children with isActionParameter() can submit values without encoding them? For example, an HTML <form> does this.
protected  booleanisActionParameter(WidgetState state)
     Does this widget submit a value directly, s in some manner other than a parameter to the url? This value only has an effect if a url is being made from a widget that has a true value for isAction().
public  booleanisWidgetModeAllowed(WidgetMode widgetMode)
    
public  Widgetput(String id, Widget value)
    
public  voidrender(WidgetConnection connection, S widgetState)
    
public  voidsetClientId(String clientId)
     Default is a concatentation of all parent id's separated by `_'.
public  voidsetCssClass(String cssClass)
     Set a css class for renders that use it, the default is to use the value of "getId() shortClassName" where shortClassName is the classname portion (no package) of the widget's class.
public  voidsetId(String id)
    
public  voidsetModeParameterName(String modeParameterName)
     Default is to the parameterName with a prefix of "_" and a suffix of "_".
public  voidsetParameterName(String parameterName)
     Default is a concatentation of all parent id's separated by `.'.
public  voidsetParent(Widget parent)
    
public  voidsetPreferencePrefix(String preferencePrefix)
     If a preference "pref" is not found as a preference specifically set for this widget, the prefix is prepended and the connection preferences are checked; the default is "id.", for example connection.getPreferenceValue("id.pref").
public  voidsetWidgetMode(WidgetMode widgetMode)
     The default mode to use unless it specified in the State, default is WidgetMode.VIEW.

Field Detail
log
final protected static Logger log(Code)




Constructor Detail
Widget
public Widget()(Code)



Widget
public Widget(String id)(Code)



Widget
public Widget(Widget parent)(Code)



Widget
public Widget(Widget parent, String id)(Code)




Method Detail
addAllowedWidgetMode
public void addAllowedWidgetMode(WidgetMode widgetMode)(Code)
Default is to allow all widget modes.



addPreference
public void addPreference(WidgetPreference widgetPreference)(Code)



calculateId
protected String calculateId(Widget child)(Code)



createState
abstract protected S createState(WidgetConnection connection) throws WidgetException(Code)



createURL
protected WidgetURL createURL(WidgetConnection connection) throws WidgetException(Code)
Derived classes use this to create a url. The widget tree is followed parent by parent until the top is reached, and then the connection is used to create a url for that widget.



createWidgetPreferences
public WidgetPreferences createWidgetPreferences()(Code)



decode
protected S decode(WidgetConnection connection) throws WidgetException(Code)
Called once for each request to restore the state of the widget for the request.



decodeChild
protected WidgetState decodeChild(WidgetConnection connection, WidgetState thisState, Widget child) throws WidgetException(Code)



decodeChildren
protected void decodeChildren(WidgetConnection connection, WidgetState state) throws WidgetException(Code)



destroy
public void destroy()(Code)



encode
protected void encode(WidgetURL url, WidgetState state, boolean isAction) throws WidgetException(Code)



entrySet
public Set<Map.Entry<String, Widget>> entrySet()(Code)



getClientId
public String getClientId()(Code)



getCssClass
public String getCssClass()(Code)
Used by implementing classes to get a css class appropriate for this widget.



getId
public String getId()(Code)



getLogId
public String getLogId()(Code)
Used for information purposes



getModeParameterName
public String getModeParameterName()(Code)



getParameterName
public String getParameterName()(Code)



getParent
public Widget getParent()(Code)



getPreferenceValue
public String getPreferenceValue(WidgetConnection connection, String key)(Code)
Return a preference value.



getPreferenceValues
public String[] getPreferenceValues(WidgetConnection connection, String key)(Code)
Return preference values.



getWidgetMode
WidgetMode getWidgetMode()(Code)



getWidgetPreference
protected WidgetPreference getWidgetPreference(String key)(Code)



init
public void init() throws WidgetException(Code)



isAction
protected boolean isAction(WidgetState state)(Code)
Does this widget make it so that children with isActionParameter() can submit values without encoding them? For example, an HTML <form> does this.



isActionParameter
protected boolean isActionParameter(WidgetState state)(Code)
Does this widget submit a value directly, s in some manner other than a parameter to the url? This value only has an effect if a url is being made from a widget that has a true value for isAction(). For example, HTML fields like <input> return true.



isWidgetModeAllowed
public boolean isWidgetModeAllowed(WidgetMode widgetMode)(Code)



put
public Widget put(String id, Widget value)(Code)



render
public void render(WidgetConnection connection, S widgetState) throws WidgetException, IOException(Code)



setClientId
public void setClientId(String clientId)(Code)
Default is a concatentation of all parent id's separated by `_'.



setCssClass
public void setCssClass(String cssClass)(Code)
Set a css class for renders that use it, the default is to use the value of "getId() shortClassName" where shortClassName is the classname portion (no package) of the widget's class. If the passed string starts with "+", for example "+clear", then the string is appended to the current cssClass. If the passed string starts with "-", for example "-clear", then the string is removed from the current cssClass. For example, a TextWidget with id "phoneNumber" and clientId "form.phoneNumber" will have a default cssClass of "textWidget * phoneNumber".



setId
public void setId(String id)(Code)



setModeParameterName
public void setModeParameterName(String modeParameterName)(Code)
Default is to the parameterName with a prefix of "_" and a suffix of "_".



setParameterName
public void setParameterName(String parameterName)(Code)
Default is a concatentation of all parent id's separated by `.'.



setParent
public void setParent(Widget parent)(Code)



setPreferencePrefix
public void setPreferencePrefix(String preferencePrefix)(Code)
If a preference "pref" is not found as a preference specifically set for this widget, the prefix is prepended and the connection preferences are checked; the default is "id.", for example connection.getPreferenceValue("id.pref").



setWidgetMode
public void setWidgetMode(WidgetMode widgetMode)(Code)
The default mode to use unless it specified in the State, default is WidgetMode.VIEW.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.