summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin
diff options
context:
space:
mode:
authorLeonid Rozenblyum <lrozenblyum@gmail.com>2015-12-05 19:30:41 +0200
committerVaadin Code Review <review@vaadin.com>2015-12-14 09:42:45 +0000
commit0c92de93c16c929c64966c30dd41bae51fc78f7c (patch)
tree1c582154930a7ef1a6608c35e2c4a7ad310676f9 /server/src/com/vaadin
parent38a4ae4130b0e82292bf92d055d0d9784b7de029 (diff)
downloadvaadin-framework-0c92de93c16c929c64966c30dd41bae51fc78f7c.tar.gz
vaadin-framework-0c92de93c16c929c64966c30dd41bae51fc78f7c.zip
Fix and extend Javadoc for setFirstDayOfWeek (#19227)
The Javadoc was incorrect saying the method goal was to set the first day of week depending on locale. Actual main goal - to set it in independent way. Also extended the doc to look more complete. Change-Id: I2c82c774f4e245437b03c0bd0246a0361584d949
Diffstat (limited to 'server/src/com/vaadin')
-rw-r--r--server/src/com/vaadin/ui/Calendar.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/Calendar.java b/server/src/com/vaadin/ui/Calendar.java
index f0ae50fe89..028a094cb5 100644
--- a/server/src/com/vaadin/ui/Calendar.java
+++ b/server/src/com/vaadin/ui/Calendar.java
@@ -1998,11 +1998,13 @@ public class Calendar extends AbstractComponent implements
}
/**
- * Allow setting first day of week depending on Locale. Set to null if you
- * want first day of week depend on locale
+ * Allow setting first day of week independent of Locale. Set to null if you
+ * want first day of week being defined by the locale
*
* @since 7.6
* @param dayOfWeek
+ * any of java.util.Calendar.SUNDAY..java.util.Calendar.SATURDAY
+ * or null to revert to default first day of week by locale
*/
public void setFirstDayOfWeek(Integer dayOfWeek) {
int minimalSupported = java.util.Calendar.SUNDAY;