Author: lucaa
Date: 2008-02-06 13:48:16 +0100 (Wed, 06 Feb 2008)
New Revision: 7316
Modified:
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/menu/DatePickerWidget.java
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/public/Watch.css
Log:
XWATCH-74: Allow to filter by date range
* Added some styles and improved the usability of the DatePickerWidget.
Modified:
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/menu/DatePickerWidget.java
===================================================================
---
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/menu/DatePickerWidget.java
2008-02-06 12:11:58 UTC (rev 7315)
+++
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/menu/DatePickerWidget.java
2008-02-06 12:48:16 UTC (rev 7316)
@@ -102,8 +102,8 @@
panel.add(prevMButton);
monthLabel.setText(this.calendarPanel.getCurrentMonthName());
monthLabel.addStyleName(watch.getStyleName("filter",
"date-month-label"));
+ panel.add(nextMButton);
panel.add(monthLabel);
- panel.add(nextMButton);
Button nextYButton = new Button(">");
nextYButton.setTitle(watch.getTranslation("filter.dates.years.next"));
nextYButton.addStyleName(watch.getStyleName("filter",
"date-year-button"));
@@ -113,8 +113,8 @@
panel.add(prevYButton);
yearLabel.setText(this.calendarPanel.getCurrentYear());
yearLabel.addStyleName(watch.getStyleName("filter",
"date-year-label"));
+ panel.add(nextYButton);
panel.add(yearLabel);
- panel.add(nextYButton);
this.calendarPanel.addPrevMonthActivator(prevMButton);
this.calendarPanel.addNextMonthActivator(nextMButton);
@@ -124,7 +124,7 @@
//some calendar styling
this.calendarPanel.setBorderWidth(0);
this.calendarPanel.setCellPadding(2);
- panel.add(calendarPanel);
+ panel.add(this.calendarPanel);
this.calendarPanel.redraw();
}
Modified:
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/public/Watch.css
===================================================================
---
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/public/Watch.css
2008-02-06 12:11:58 UTC (rev 7315)
+++
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/public/Watch.css
2008-02-06 12:48:16 UTC (rev 7316)
@@ -829,10 +829,12 @@
*/
button.watch-filter-date-month-button, button.watch-filter-date-year-button {
padding: 0px;
+ margin: 2px;
}
button.watch-filter-date-month-button:hover,
button.watch-filter-date-year-button:hover {
padding: 0px;
+ margin: 2px;
}
div.watch-filter-date-year-label, div.watch-filter-date-month-label,
div.watch-filter-date-title-label, div.watch-filter-date-label {
@@ -842,3 +844,9 @@
table.calendar-panel, button.watch-filter-date-month-button,
button.watch-filter-date-year-button {
background-color: #E6EAEE;
}
+table.calendar-panel {
+ margin: auto;
+}
+div.calendar-dateCell {
+ cursor: pointer;
+}
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications