Java Doc for AbstractCalendar.java in  » J2EE » wicket » org » apache » wicket » extensions » yui » calendar » 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 » J2EE » wicket » org.apache.wicket.extensions.yui.calendar 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.wicket.markup.html.WebComponent
   org.apache.wicket.extensions.yui.calendar.AbstractCalendar

AbstractCalendar
abstract public class AbstractCalendar extends WebComponent (Code)
Abstract calendar component based on the YUI (Yahoo User Interface library) javascript widget.

Although this component by itself is fully functional, it doesn't do much other than just displaying the calendar. Hence, this class is abstract.

An easy way to build upon this component is to override AbstractCalendar.appendToInit(String,String,String,StringBuffer) and add event handlers etc. in the YUI widget's initialization function.

See YUI's calendar documentation for more info.
author:
   eelcohillenius
See Also:   CalendarPopup


Field Summary
final public static  DateFormatFORMAT_DATE
     Format to be used when configuring YUI calendar.
final public static  DateFormatFORMAT_PAGEDATE
     For specifying which page (month/year) to show in the calendar, use this format for the date.

Constructor Summary
public  AbstractCalendar(String id)
     Construct.
public  AbstractCalendar(String id, boolean contributeDependencies)
     Construct.
Parameters:
  id - The component id
Parameters:
  contributeDependencies - Whether to contribute the packaged dependencies.

Method Summary
protected  voidappendToInit(String markupId, String javascriptId, String javascriptWidgetId, StringBuffer b)
     Append javascript to the initialization function for the YUI widget.
protected  voidconfigureWidgetProperties(Map widgetProperties)
     Gives overriding classes the option of adding (or even changing/ removing) configuration properties for the javascript widget.
final public  StringgetJavascriptId()
     Gets the id of the javascript widget.
final public  StringgetJavascriptWidgetId()
     The name spaced id of the widget.

Field Detail
FORMAT_DATE
final public static DateFormat FORMAT_DATE(Code)
Format to be used when configuring YUI calendar. Can be used when using the "selected" property.



FORMAT_PAGEDATE
final public static DateFormat FORMAT_PAGEDATE(Code)
For specifying which page (month/year) to show in the calendar, use this format for the date. This is to be used together with the property "pagedate"




Constructor Detail
AbstractCalendar
public AbstractCalendar(String id)(Code)
Construct. Contributes packaged dependencies.
Parameters:
  id - The component id



AbstractCalendar
public AbstractCalendar(String id, boolean contributeDependencies)(Code)
Construct.
Parameters:
  id - The component id
Parameters:
  contributeDependencies - Whether to contribute the packaged dependencies. Pass false incase you want to include the dependencies manually in your ownpage, e.g. when you want to keep them in your web applicationdir. To contribute yourself (in case you want to pass false),your page header should look like:
<script type="text/javascript" src="yahoo.js"></script> <script type="text/javascript" src="dom.js"></script> <script type="text/javascript" src="event.js"></script> <script type="text/javascript" src="calendar.js"></script> <link rel="stylesheet" type="text/css" href="calendar.css" /> 




Method Detail
appendToInit
protected void appendToInit(String markupId, String javascriptId, String javascriptWidgetId, StringBuffer b)(Code)
Append javascript to the initialization function for the YUI widget. Can be used by subclasses to conveniently extend configuration without having to write a separate contribution.
Parameters:
  markupId - The markup id of the calendar component
Parameters:
  javascriptId - the non-name spaced javascript id of the widget
Parameters:
  javascriptWidgetId - the name space id of the widget
Parameters:
  b - the buffer to append the script to



configureWidgetProperties
protected void configureWidgetProperties(Map widgetProperties)(Code)
Gives overriding classes the option of adding (or even changing/ removing) configuration properties for the javascript widget. See the widget's documentation for the available options. If you want to override/ remove properties, you obviously should call super#setWidgetProperties(Properties) first.
Parameters:
  widgetProperties - the current widget properties



getJavascriptId
final public String getJavascriptId()(Code)
Gets the id of the javascript widget. Note that this is the non-namespaced id, so depending on what you want to do with it, you may need to prepend 'YAHOO.wicket.' to it. Or you can call AbstractCalendar.getJavascriptWidgetId() . The javascript id
See Also:   AbstractCalendar.getJavascriptWidgetId()



getJavascriptWidgetId
final public String getJavascriptWidgetId()(Code)
The name spaced id of the widget. The widget id
See Also:   AbstractCalendar.getJavascriptId()



Methods inherited from org.apache.wicket.markup.html.WebComponent
protected void onRender(MarkupStream markupStream)(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.