svn changeset:14766/svn branch:6.4
\r
calendar.setSubmitListener(new SubmitListener() {\r
public void onSubmit() {\r
+ // Update internal value and send valuechange event if immediate\r
updateValue(calendar.getDate());\r
+\r
+ // Update text field (a must when not immediate).\r
+ buildDate(true);\r
+\r
closeCalendarPanel();\r
}\r
\r
}\r
}\r
\r
+ /**\r
+ * Update the text field contents from the date. See {@link #buildDate()}.\r
+ * \r
+ * @param forceValid\r
+ * true to force the text field to be updated, false to only\r
+ * update if the parsable flag is true.\r
+ */\r
protected void buildDate(boolean forceValid) {\r
if (forceValid) {\r
parsable = true;\r