Last modified by Pascal Robert on 2010/09/13 00:31

From version 1.1
edited by smmccraw
on 2007/07/08 09:45
Change comment: There is no comment for this version
To version 4.1
edited by Pascal Robert
on 2010/09/13 00:31
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Programming__WebObjects-Web Applications-Development-Examples-Calendar Component
1 +Development-Examples-Calendar Component
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.smmccraw
1 +XWiki.probert
Content
... ... @@ -6,13 +6,13 @@
6 6  
7 7  {{code}}
8 8  
9 -{panel}
10 - <webobject name = "Table">
9 +
10 +<webobject name = "Table">
11 11   <tr>
12 12   <td align = "left" valign = "top" colspan = "7">
13 13   <webobject name = "Month"></webobject>
14 14   <webobject name = "HasNavigation">
15 - &nbsp;<webobject name = "YearLink"><webobject name = "Year"></webobject></webobject>
15 + <webobject name = "YearLink"><webobject name = "Year"></webobject></webobject>
16 16   </webobject>
17 17   </td>
18 18   </tr>
... ... @@ -21,10 +21,10 @@
21 21   <webobject name = "Columns">
22 22   <td align = "right" valign = "top">
23 23   <webobject name = "HasLink">
24 - <webobject name = "IsCurrentDay"></webobject><webobject name = "Link"><webobject name = "Day"></webobject></webobject><webobject name = "IsCurrentDay"></webobject>&nbsp;
24 + <webobject name = "IsCurrentDay"></webobject><webobject name = "Link"><webobject name = "Day"></webobject></webobject><webobject name = "IsCurrentDay"></webobject>
25 25   </webobject>
26 26   <webobject name = "HasNoLink">
27 - <webobject name = "Day"></webobject>&nbsp;
27 + <webobject name = "Day"></webobject>
28 28   </webobject>
29 29   </td>
30 30   </webobject>
... ... @@ -38,7 +38,7 @@
38 38   </webobject>
39 39   </td>
40 40   <td align = "left" valign = "top">
41 - &nbsp;
41 +
42 42   </td>
43 43   <td align = "right" valign = "top" colspan ="3">
44 44   <webobject name = "HasNextMonth">
... ... @@ -48,99 +48,97 @@
48 48   </tr>
49 49   </webobject>
50 50   </webobject>
51 -{panel}
52 52  
53 53  {{/code}}
54 54  
55 55  And here is the wod:
56 56  
57 -{{panel}}
56 +{{code}}
58 58  
59 - Table: WOGenericContainer{
60 - elementName = "table";
61 - border = "0";
62 - cellSpacing = "0";
63 - cellPadding = "0";
64 - };
65 - HasNavigation: WOConditional
66 - {
67 - condition = hasNavigation;
68 - };
69 -
70 - YearLink: WOHyperlink{
71 - action = displayYear;
72 - };
73 - Year: SpanString{
74 - value = month.year;
75 - isBold = true;
76 - isSmall = true;
77 - class = "Label";
78 - };
79 - Rows: WORepetition{
80 - count = rowCount;
81 - index = rowIndex;
82 - };
83 - Columns: WORepetition{
84 - count = columnCount;
85 - index = columnIndex;
86 - };
87 - Month: SpanString{
88 - value = month.monthName.toUpperCase;
89 - isBold = true;
90 - isSmall = true;
91 - class = "Label";
92 - };
93 - DayName: SpanString{
94 - value = dayName;
95 - isSmall = true;
96 - class = "Label";
97 - };
98 - HasLink: WOConditional{
99 - condition = hasLink;
100 - };
101 - HasNoLink: WOConditional{
102 - condition = hasLink;
103 - negate = true;
104 - };
105 - IsCurrentDay: WOConditional{
106 - condition = isCurrentDay;
107 - };
108 - Link: WOHyperlink{
109 - action = displayDay;
110 - };
111 - Day: SpanString{
112 - value = day.day;
113 - isSmall = true;
114 - isBold = isCurrentDay;
115 - isItalic = isCurrentDay;
116 - class = "Label";
117 - };
118 - HasNextMonth: WOConditional{
119 - condition = hasNextMonth;
120 - };
121 - NextMonthLink: WOHyperlink{
122 - action = displayNextMonth;
123 - };
124 - NextMonth: SpanString
125 - {
126 - value = nextMonthName;
127 - isSmall = true;
128 - class = "Label";
129 - };
130 - HasPreviousMonth: WOConditional{
131 - condition = hasPreviousMonth;
132 - };
133 - PreviousMonthLink: WOHyperlink{
134 - action = displayPreviousMonth;
135 - };
136 - PreviousMonth: SpanString{
137 - value = previousMonthName;
138 - isSmall = true;
139 - class = "Label";
140 - };
58
59 +Table: WOGenericContainer{
60 + elementName = "table";
61 + border = "0";
62 + cellSpacing = "0";
63 + cellPadding = "0";
64 + };
65 + HasNavigation: WOConditional
66 + {
67 + condition = hasNavigation;
68 + };
141 141  
142 -{{/panel}}
70 + YearLink: WOHyperlink{
71 + action = displayYear;
72 + };
73 + Year: SpanString{
74 + value = month.year;
75 + isBold = true;
76 + isSmall = true;
77 + class = "Label";
78 + };
79 + Rows: WORepetition{
80 + count = rowCount;
81 + index = rowIndex;
82 + };
83 + Columns: WORepetition{
84 + count = columnCount;
85 + index = columnIndex;
86 + };
87 + Month: SpanString{
88 + value = month.monthName.toUpperCase;
89 + isBold = true;
90 + isSmall = true;
91 + class = "Label";
92 + };
93 + DayName: SpanString{
94 + value = dayName;
95 + isSmall = true;
96 + class = "Label";
97 + };
98 + HasLink: WOConditional{
99 + condition = hasLink;
100 + };
101 + HasNoLink: WOConditional{
102 + condition = hasLink;
103 + negate = true;
104 + };
105 + IsCurrentDay: WOConditional{
106 + condition = isCurrentDay;
107 + };
108 + Link: WOHyperlink{
109 + action = displayDay;
110 + };
111 + Day: SpanString{
112 + value = day.day;
113 + isSmall = true;
114 + isBold = isCurrentDay;
115 + isItalic = isCurrentDay;
116 + class = "Label";
117 + };
118 + HasNextMonth: WOConditional{
119 + condition = hasNextMonth;
120 + };
121 + NextMonthLink: WOHyperlink{
122 + action = displayNextMonth;
123 + };
124 + NextMonth: SpanString
125 + {
126 + value = nextMonthName;
127 + isSmall = true;
128 + class = "Label";
129 + };
130 + HasPreviousMonth: WOConditional{
131 + condition = hasPreviousMonth;
132 + };
133 + PreviousMonthLink: WOHyperlink{
134 + action = displayPreviousMonth;
135 + };
136 + PreviousMonth: SpanString{
137 + value = previousMonthName;
138 + isSmall = true;
139 + class = "Label";
140 + };
143 143  
144 -The component implementation is left to the imagination of the reader.
142 +{{/code}}
145 145  
146 -Category:WebObjects
144 +The component implementation is left to the imagination of the reader.