You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by he...@apache.org on 2005/10/11 21:30:59 UTC
svn commit: r312939 -
/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java
Author: hepabolu
Date: Tue Oct 11 12:30:49 2005
New Revision: 312939
URL: http://svn.apache.org/viewcvs?rev=312939&view=rev
Log:
changed tabs to spaces :-(
Modified:
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java
Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java?rev=312939&r1=312938&r2=312939&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java Tue Oct 11 12:30:49 2005
@@ -106,7 +106,7 @@
protected static final String YEAR_ATTR_NAME = "year";
protected static final String DATE_ATTR_NAME = "date";
protected static final String NUMBER_ATTR_NAME = "number";
- protected static final String WEEKDAY_ATTR_NAME = "weekday";
+ protected static final String WEEKDAY_ATTR_NAME = "weekday";
protected static final String PREV_MONTH_ATTR_NAME = "prevMonth";
protected static final String PREV_YEAR_ATTR_NAME = "prevYear";
protected static final String NEXT_MONTH_ATTR_NAME = "nextMonth";
@@ -142,15 +142,15 @@
/** Do we need to pad out the first and last weeks? */
protected boolean padWeeks;
- /* Add the day of the week
- *
- * since SUNDAY=1, we start with a dummy
- * entry.
- */
- protected String weekdays[] = { "",
- "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
- "Friday", "Saturday"
- };
+ /* Add the day of the week
+ *
+ * since SUNDAY=1, we start with a dummy
+ * entry.
+ */
+ protected String weekdays[] = { "",
+ "SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY",
+ "FRIDAY", "SATURDAY"
+ };
/**
* Set the request parameters. Must be called before the generate method.
@@ -252,8 +252,8 @@
attributes.clear();
attributes.addAttribute("", NUMBER_ATTR_NAME, NUMBER_ATTR_NAME, "CDATA",
String.valueOf(previous.get(Calendar.DAY_OF_MONTH)));
- attributes.addAttribute("", WEEKDAY_ATTR_NAME, WEEKDAY_ATTR_NAME, "CDATA",
- weekdays[previous.get(Calendar.DAY_OF_WEEK)]);
+ attributes.addAttribute("", WEEKDAY_ATTR_NAME, WEEKDAY_ATTR_NAME, "CDATA",
+ weekdays[previous.get(Calendar.DAY_OF_WEEK)]);
attributes.addAttribute("", DATE_ATTR_NAME, DATE_ATTR_NAME, "CDATA",
dateFormatter.format(previous.getTime()));
this.contentHandler.startElement(URI, DAY_NODE_NAME,
@@ -276,8 +276,8 @@
attributes.clear();
attributes.addAttribute("", NUMBER_ATTR_NAME, NUMBER_ATTR_NAME, "CDATA",
String.valueOf(start.get(Calendar.DAY_OF_MONTH)));
- attributes.addAttribute("", WEEKDAY_ATTR_NAME, WEEKDAY_ATTR_NAME, "CDATA",
- weekdays[start.get(Calendar.DAY_OF_WEEK)]);
+ attributes.addAttribute("", WEEKDAY_ATTR_NAME, WEEKDAY_ATTR_NAME, "CDATA",
+ weekdays[start.get(Calendar.DAY_OF_WEEK)]);
attributes.addAttribute("", DATE_ATTR_NAME, DATE_ATTR_NAME, "CDATA",
dateFormatter.format(start.getTime()));
this.contentHandler.startElement(URI, DAY_NODE_NAME,
@@ -298,8 +298,8 @@
attributes.clear();
attributes.addAttribute("", NUMBER_ATTR_NAME, NUMBER_ATTR_NAME, "CDATA",
String.valueOf(end.get(Calendar.DAY_OF_MONTH)));
- attributes.addAttribute("", WEEKDAY_ATTR_NAME, WEEKDAY_ATTR_NAME, "CDATA",
- weekdays[end.get(Calendar.DAY_OF_WEEK)]);
+ attributes.addAttribute("", WEEKDAY_ATTR_NAME, WEEKDAY_ATTR_NAME, "CDATA",
+ weekdays[end.get(Calendar.DAY_OF_WEEK)]);
attributes.addAttribute("", DATE_ATTR_NAME, DATE_ATTR_NAME, "CDATA",
dateFormatter.format(end.getTime()));
this.contentHandler.startElement(URI, DAY_NODE_NAME,
@@ -308,10 +308,10 @@
this.contentHandler.endElement(URI, DAY_NODE_NAME,
PREFIX + ':' + DAY_NODE_NAME);
end.add(Calendar.DAY_OF_MONTH, 1);
- if (firstDay == end.get(Calendar.DAY_OF_WEEK)) {
- this.contentHandler.endElement(URI, WEEK_NODE_NAME,
- PREFIX + ':' + WEEK_NODE_NAME);
- }
+ if (firstDay == end.get(Calendar.DAY_OF_WEEK)) {
+ this.contentHandler.endElement(URI, WEEK_NODE_NAME,
+ PREFIX + ':' + WEEK_NODE_NAME);
+ }
}
}
this.contentHandler.endElement(URI, CALENDAR_NODE_NAME,