Java Doc for HtmlCalendar.java in  » J2EE » Sofia » com » salmonllc » html » 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 » Sofia » com.salmonllc.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.salmonllc.html.HtmlComponent
      com.salmonllc.html.HtmlCalendar

HtmlCalendar
public class HtmlCalendar extends HtmlComponent (Code)
This component will generate Html resembling a calendar. The user can page through months and select days.


Field Summary
final public static  intFONT_SIZE_IN_PIXELS
    
final public static  intFONT_SIZE_IN_POINTS
    
final public static  intFONT_SIZE_RELATIVE
    
final public static  intSIZE_LARGE
    
final public static  intSIZE_PERCENT
    
final public static  intSIZE_PIXELS
    
final public static  intSIZE_SMALL
    
 boolean_scrollTo
    

Constructor Summary
public  HtmlCalendar(String name, HtmlPage p)
    
public  HtmlCalendar(String name, String theme, HtmlPage p)
    

Method Summary
public  voidaddCalendarListener(CalendarListener l)
     This method adds a listener the will be notified when this component causes the page its in to be submitted.
public  voidaddDayHighlight(int year, int month, int day)
     This method adds a new day to highlight in the calendar.
public  voidaddDayHighlight(java.sql.Date d)
     This method adds a new day to highlight to the calendar.
public  voidaddDayHighlight(GregorianCalendar g)
     This method adds a new day to highlight to the calendar.
public  voidclearDayHighLights()
     This method clears out the list of days to highlight.
public  booleanexecuteEvent(int type)
    
public  voidgenerateHTML(java.io.PrintWriter p, int rowNo)
    
public  intgetBorder()
     This method gets the border width of the calendar.
public  intgetCalendarMonth()
     This method returns the current month displayed in the calendar.
public  intgetCalendarYear()
     This method returns the current year displayed in the calendar.
public  StringgetDayBackgroundColor()
     This method gets the background color for the days of the month.
public  StringgetDayCurrentStyleClassName()
    
public  StringgetDayDeemphisisStyleClassName()
    
public  StringgetDayForegroundCurrentColor()
     This method gets the text color for the day that is today's date.
public  StringgetDayForegroundDeemphisisColor()
     This method gets the text color for days on the calendar that aren't in the current month.
public  StringgetDayForegroundNormalColor()
     This method gets the text color for days on the calendar that are in the current month.
public  StringgetDayNormalStyleClassName()
    
public  intgetDisplaySize()
     This returns the display size of the calendar.
public  intgetFirstDayOfWeek()
    
public  GregorianCalendargetFirstDayOnCalendar()
     This method returns the first day displayed on the calendar.
public  StringgetFontFace()
     This method gets the font face for everything in the calendar.
public  intgetFontSizeLarge()
    
public  intgetFontSizeSmall()
    
public  intgetFontSizeUnits()
    
public  StringgetHeadingBackgroundColor()
     This method gets the background color for the calendar heading.
public  StringgetHeadingForegroundColor()
     This method gets the text color for the calendar heading.
public  StringgetHeadingStyleClassName()
    
public  GregorianCalendargetLastDayOnCalendar()
     This method returns the last day displayed on the calendar.
public  StringgetMonthLongName(int monthIndex)
    
public  StringgetMonthShortName(int monthIndex)
    
public  intgetSizeOption()
     This method returns the size option for the Calendar.
public  StringgetTheme()
     This method returns the property theme for the component.
public  StringgetWeekBackgroundColor()
     This method gets the background color for the days of the week headings.
public  StringgetWeekForegroundColor()
     This method gets the text color for the days of the week headings.
public  StringgetWeekStyleClassName()
    
public  intgetWidth()
     This method gets the width of the calendar.
public  booleanprocessParms(Hashtable parms, int rowNo)
     This method should be implemented in any subclasses of this component interested in processing parameters from an html post operation.
public  voidremoveCalendarListener(CalendarListener l)
     This method removes a listener from the list that will be notified if this component causes the page to be submitted.
public  voidsetBorder(int border)
     This method sets the border width of the calendar.
public  voidsetCalendarMonth(int month)
     This method sets the current month displayed in the calendar.
public  voidsetCalendarYear(int year)
     This method sets the current year displayed in the calendar.
public  voidsetDayBackgroundColor(String color)
     This method sets the background color for the days of the month.
public  voidsetDayCurrentStyleClassName(String string)
    
public  voidsetDayDeemphisisStyleClassName(String string)
    
public  voidsetDayForegroundCurrentColor(String color)
     This method sets the text color for day that is today's date.
public  voidsetDayForegroundDeemphisisColor(String color)
     This method sets the text color for days on the calendar that aren't in the current month.
public  voidsetDayForegroundNormalColor(String color)
     This method sets the text color for days on the calendar that are in the current month.
public  voidsetDayLongName(int dayIndex, String val)
    
public  voidsetDayNormalStyleClassName(String string)
    
public  voidsetDayShortName(int dayIndex, String val)
    
public  voidsetDisplaySize(int size)
     This sets the display size of the calendar.
public  voidsetFirstDayOfWeek(int firstDayofWeek)
    
public  voidsetFontFace(String face)
     This method sets the font face for all text in the calendar.
public  voidsetFontSizeLarge(int size)
    
public  voidsetFontSizeSmall(int size)
    
public  voidsetFontSizeUnits(int i)
    
public  voidsetHeadingBackgroundColor(String color)
     This method sets the background color for the calendar heading.
public  voidsetHeadingForegroundColor(String color)
     This method sets the text color for the calendar heading.
public  voidsetHeadingStyleClassName(String string)
    
public  voidsetMonthLongName(int monthIndex, String val)
    
public  voidsetMonthShortName(int monthIndex, String val)
    
public  voidsetSizeOption(int option)
     This method sets the size option Calendar.
public  voidsetTheme(String theme)
     This method sets the property theme for the component.
public  voidsetWeekBackgroundColor(String color)
     This method sets the background color for the days of the week headings.
public  voidsetWeekForegroundColor(String color)
     This method sets the text color for the days of the week headings.
public  voidsetWeekStyleClassName(String string)
    
public  voidsetWidth(int width)
     This method sets the width of the calendar.
public  voidupdateLocale()
    

Field Detail
FONT_SIZE_IN_PIXELS
final public static int FONT_SIZE_IN_PIXELS(Code)



FONT_SIZE_IN_POINTS
final public static int FONT_SIZE_IN_POINTS(Code)



FONT_SIZE_RELATIVE
final public static int FONT_SIZE_RELATIVE(Code)



SIZE_LARGE
final public static int SIZE_LARGE(Code)



SIZE_PERCENT
final public static int SIZE_PERCENT(Code)



SIZE_PIXELS
final public static int SIZE_PIXELS(Code)



SIZE_SMALL
final public static int SIZE_SMALL(Code)



_scrollTo
boolean _scrollTo(Code)




Constructor Detail
HtmlCalendar
public HtmlCalendar(String name, HtmlPage p)(Code)
Constructs a new HtmlCalendar
Parameters:
  name - The name of the calendar in the page
Parameters:
  p - The page the calendar will be in



HtmlCalendar
public HtmlCalendar(String name, String theme, HtmlPage p)(Code)
Constructs a new HtmlCalendar
Parameters:
  name - The name of the calendar in the page
Parameters:
  theme - The theme to use for loading properties.
Parameters:
  p - The page the calendar will be in




Method Detail
addCalendarListener
public void addCalendarListener(CalendarListener l)(Code)
This method adds a listener the will be notified when this component causes the page its in to be submitted.



addDayHighlight
public void addDayHighlight(int year, int month, int day)(Code)
This method adds a new day to highlight in the calendar. That day will be displayed in the highlight font. Note: Month is 0 based, 0 = Jan, 1=Feb etc..



addDayHighlight
public void addDayHighlight(java.sql.Date d)(Code)
This method adds a new day to highlight to the calendar. That day will be displayed in the highlight font.



addDayHighlight
public void addDayHighlight(GregorianCalendar g)(Code)
This method adds a new day to highlight to the calendar.



clearDayHighLights
public void clearDayHighLights()(Code)
This method clears out the list of days to highlight.



executeEvent
public boolean executeEvent(int type) throws Exception(Code)



generateHTML
public void generateHTML(java.io.PrintWriter p, int rowNo) throws Exception(Code)



getBorder
public int getBorder()(Code)
This method gets the border width of the calendar.



getCalendarMonth
public int getCalendarMonth()(Code)
This method returns the current month displayed in the calendar.



getCalendarYear
public int getCalendarYear()(Code)
This method returns the current year displayed in the calendar.



getDayBackgroundColor
public String getDayBackgroundColor()(Code)
This method gets the background color for the days of the month.



getDayCurrentStyleClassName
public String getDayCurrentStyleClassName()(Code)



getDayDeemphisisStyleClassName
public String getDayDeemphisisStyleClassName()(Code)



getDayForegroundCurrentColor
public String getDayForegroundCurrentColor()(Code)
This method gets the text color for the day that is today's date.



getDayForegroundDeemphisisColor
public String getDayForegroundDeemphisisColor()(Code)
This method gets the text color for days on the calendar that aren't in the current month.



getDayForegroundNormalColor
public String getDayForegroundNormalColor()(Code)
This method gets the text color for days on the calendar that are in the current month.



getDayNormalStyleClassName
public String getDayNormalStyleClassName()(Code)



getDisplaySize
public int getDisplaySize()(Code)
This returns the display size of the calendar. Valid options are SIZE_LARGE and SIZE_SMALL.



getFirstDayOfWeek
public int getFirstDayOfWeek()(Code)
Returns the first day of the week displayed on the calendar (0=Sunday,1=Monday)



getFirstDayOnCalendar
public GregorianCalendar getFirstDayOnCalendar()(Code)
This method returns the first day displayed on the calendar. java.util.GregorianCalendar



getFontFace
public String getFontFace()(Code)
This method gets the font face for everything in the calendar.



getFontSizeLarge
public int getFontSizeLarge()(Code)
This method gets the font size used if the calender display size is SIZE_LARGE;



getFontSizeSmall
public int getFontSizeSmall()(Code)
This method gets the font size used if the calender display size is SIZE_SMALL;



getFontSizeUnits
public int getFontSizeUnits()(Code)
Valid values are FONT_SIZE_IN_POINTS,FONT_SIZE_IN_PIXELS,FONT_SIZE_RELATIVE



getHeadingBackgroundColor
public String getHeadingBackgroundColor()(Code)
This method gets the background color for the calendar heading.



getHeadingForegroundColor
public String getHeadingForegroundColor()(Code)
This method gets the text color for the calendar heading.



getHeadingStyleClassName
public String getHeadingStyleClassName()(Code)



getLastDayOnCalendar
public GregorianCalendar getLastDayOnCalendar()(Code)
This method returns the last day displayed on the calendar.



getMonthLongName
public String getMonthLongName(int monthIndex)(Code)
returns the long name for the month passed



getMonthShortName
public String getMonthShortName(int monthIndex)(Code)
returns the short name for the month passed



getSizeOption
public int getSizeOption()(Code)
This method returns the size option for the Calendar. Valid return values are SIZE_PIXELS or SIZE_PERCENT.



getTheme
public String getTheme()(Code)
This method returns the property theme for the component.



getWeekBackgroundColor
public String getWeekBackgroundColor()(Code)
This method gets the background color for the days of the week headings.



getWeekForegroundColor
public String getWeekForegroundColor()(Code)
This method gets the text color for the days of the week headings.



getWeekStyleClassName
public String getWeekStyleClassName()(Code)



getWidth
public int getWidth()(Code)
This method gets the width of the calendar.



processParms
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)
This method should be implemented in any subclasses of this component interested in processing parameters from an html post operation. The component should interogate the HttpServletRequest for any parameters it is interested in and change its internal state to reflect the parms. true if this component is the one that submitted the page andfalse if not.
Parameters:
  parms - a HashTable containing all the parameters for the servlet.



removeCalendarListener
public void removeCalendarListener(CalendarListener l)(Code)
This method removes a listener from the list that will be notified if this component causes the page to be submitted.
Parameters:
  l - The listener to remove.



setBorder
public void setBorder(int border)(Code)
This method sets the border width of the calendar.



setCalendarMonth
public void setCalendarMonth(int month)(Code)
This method sets the current month displayed in the calendar.



setCalendarYear
public void setCalendarYear(int year)(Code)
This method sets the current year displayed in the calendar.



setDayBackgroundColor
public void setDayBackgroundColor(String color)(Code)
This method sets the background color for the days of the month.



setDayCurrentStyleClassName
public void setDayCurrentStyleClassName(String string)(Code)

Parameters:
  string -



setDayDeemphisisStyleClassName
public void setDayDeemphisisStyleClassName(String string)(Code)

Parameters:
  string -



setDayForegroundCurrentColor
public void setDayForegroundCurrentColor(String color)(Code)
This method sets the text color for day that is today's date.



setDayForegroundDeemphisisColor
public void setDayForegroundDeemphisisColor(String color)(Code)
This method sets the text color for days on the calendar that aren't in the current month.



setDayForegroundNormalColor
public void setDayForegroundNormalColor(String color)(Code)
This method sets the text color for days on the calendar that are in the current month.



setDayLongName
public void setDayLongName(int dayIndex, String val)(Code)
Set day long name for the day number passed



setDayNormalStyleClassName
public void setDayNormalStyleClassName(String string)(Code)

Parameters:
  string -



setDayShortName
public void setDayShortName(int dayIndex, String val)(Code)
Set day long name for the day number passed



setDisplaySize
public void setDisplaySize(int size)(Code)
This sets the display size of the calendar. Valid options are SIZE_LARGE and SIZE_SMALL.



setFirstDayOfWeek
public void setFirstDayOfWeek(int firstDayofWeek)(Code)
Sets the first day of the week displayed on the calendar (0=Sunday,1=Monday)



setFontFace
public void setFontFace(String face)(Code)
This method sets the font face for all text in the calendar.



setFontSizeLarge
public void setFontSizeLarge(int size)(Code)
This method sets the font size used if the calender display size is SIZE_LARGE;



setFontSizeSmall
public void setFontSizeSmall(int size)(Code)
This method sets the font size used if the calender display size is SIZE_SMALL;



setFontSizeUnits
public void setFontSizeUnits(int i)(Code)
Valid values are FONT_SIZE_IN_POINTS,FONT_SIZE_IN_PIXELS,FONT_SIZE_RELATIVE



setHeadingBackgroundColor
public void setHeadingBackgroundColor(String color)(Code)
This method sets the background color for the calendar heading.



setHeadingForegroundColor
public void setHeadingForegroundColor(String color)(Code)
This method sets the text color for the calendar heading.



setHeadingStyleClassName
public void setHeadingStyleClassName(String string)(Code)

Parameters:
  string -



setMonthLongName
public void setMonthLongName(int monthIndex, String val)(Code)
Sets the long name for the month number passed



setMonthShortName
public void setMonthShortName(int monthIndex, String val)(Code)
Sets the short name for the month number passed



setSizeOption
public void setSizeOption(int option)(Code)
This method sets the size option Calendar. Valid return values are SIZE_PIXELS or SIZE_PERCENT.



setTheme
public void setTheme(String theme)(Code)
This method sets the property theme for the component.
Parameters:
  theme - The theme to use.



setWeekBackgroundColor
public void setWeekBackgroundColor(String color)(Code)
This method sets the background color for the days of the week headings.



setWeekForegroundColor
public void setWeekForegroundColor(String color)(Code)
This method sets the text color for the days of the week headings.



setWeekStyleClassName
public void setWeekStyleClassName(String string)(Code)

Parameters:
  string -



setWidth
public void setWidth(int width)(Code)
This method sets the width of the calendar.



updateLocale
public void updateLocale()(Code)
Updates the month and day names for the current language The language property file must have the following key structure HtmlCalendar.month.short.0 to HtmlCalendar.month.short.11 represents the month short names from jan to dec HtmlCalendar.month.long.0 to HtmlCalendar.month.long.11 represents the month long names from January to December HtmlCalendar.day.short.0 to HtmlCalendar.day.short.6 represents the day short names from Sun to Sat HtmlCalendar.day.long.0 to HtmlCalendar.day.long.6 represents the day long names from Sunday to Saturday



Fields inherited from com.salmonllc.html.HtmlComponent
final public static int DISABLED_ATTRIBUTE_USE_NEVER(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_ON_SUPPORTED_BROWSERS(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_SYSTEM_DEFAULT(Code)(Java Doc)
final public static int EVENT_NONE(Code)(Java Doc)
final public static int EVENT_OTHER(Code)(Java Doc)
final public static int EVENT_SUBMIT(Code)(Java Doc)
protected String _class(Code)(Java Doc)
String _fullName(Code)(Java Doc)
protected boolean _generateNewline(Code)(Java Doc)
String _name(Code)(Java Doc)
protected HtmlComponent _parent(Code)(Java Doc)
protected boolean _visible(Code)(Java Doc)
final protected static boolean debug(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlComponent
public void doBinding() throws Exception(Code)(Java Doc)
public String encodeURL(String url)(Code)(Java Doc)
public StringBuffer encodeURL(StringBuffer url)(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public static String fixSpecialHTMLCharacters(String input)(Code)(Java Doc)
abstract public void generateHTML(PrintWriter p, int rowNo) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
protected String generateImageURL()(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getDataSource()(Code)(Java Doc)
public int getFormIndex()(Code)(Java Doc)
public String getFormString()(Code)(Java Doc)
public String getFullName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public HtmlPage getPage()(Code)(Java Doc)
public HtmlComponent getParent()(Code)(Java Doc)
protected String getPortletNameSpace()(Code)(Java Doc)
protected String getSiteMapEntryName(String url)(Code)(Java Doc)
public String getTheme()(Code)(Java Doc)
public int getUseDisabledAttribute()(Code)(Java Doc)
public boolean getVisible()(Code)(Java Doc)
public boolean getVisible(boolean checkParents)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setClassName(String sClass)(Code)(Java Doc)
public void setDataSource(String dataSource)(Code)(Java Doc)
public void setFormIndex(int formIndex)(Code)(Java Doc)
public void setGenerateNewline(boolean enable)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPage(HtmlPage p)(Code)(Java Doc)
public void setParent(HtmlComponent parent)(Code)(Java Doc)
public void setTheme(String theme)(Code)(Java Doc)
public void setUseDisabledAttribute(int i)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String translateSiteMapURL(String url)(Code)(Java Doc)
protected boolean useDisabledAttribute()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.