You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by gs...@apache.org on 2007/10/16 00:41:27 UTC
svn commit: r584950 - in /wicket/trunk/jdk-1.4/wicket-datetime: .settings/
src/main/java/org/apache/wicket/datetime/
src/main/java/org/apache/wicket/datetime/markup/html/basic/
src/main/java/org/apache/wicket/datetime/markup/html/form/
src/main/java/or...
Author: gseitz
Date: Mon Oct 15 15:41:25 2007
New Revision: 584950
URL: http://svn.apache.org/viewvc?rev=584950&view=rev
Log:
WICKET-1078
Modified:
wicket/trunk/jdk-1.4/wicket-datetime/.settings/org.eclipse.jdt.core.prefs
wicket/trunk/jdk-1.4/wicket-datetime/.settings/org.eclipse.jdt.ui.prefs
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/PatternDateConverter.java
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/StyleDateConverter.java
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/basic/DateLabel.java
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/YuiLib.java
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/AbstractCalendar.java
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateField.java
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DatePicker.java
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateTimeField.java
wicket/trunk/jdk-1.4/wicket-datetime/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java
Modified: wicket/trunk/jdk-1.4/wicket-datetime/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/.settings/org.eclipse.jdt.core.prefs?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/.settings/org.eclipse.jdt.core.prefs (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/.settings/org.eclipse.jdt.core.prefs Mon Oct 15 15:41:25 2007
@@ -46,9 +46,11 @@
org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line
org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line
org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines=false
org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_comments=true
org.eclipse.jdt.core.formatter.comment.format_header=false
org.eclipse.jdt.core.formatter.comment.format_html=true
org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
@@ -58,7 +60,7 @@
org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
-org.eclipse.jdt.core.formatter.comment.line_length=80
+org.eclipse.jdt.core.formatter.comment.line_length=100
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
@@ -145,7 +147,7 @@
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
@@ -231,7 +233,7 @@
org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
@@ -248,12 +250,12 @@
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
org.eclipse.jdt.core.formatter.lineSplit=100
-org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=true
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true
org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=2
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=tab
org.eclipse.jdt.core.formatter.tabulation.size=4
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=false
\ No newline at end of file
Modified: wicket/trunk/jdk-1.4/wicket-datetime/.settings/org.eclipse.jdt.ui.prefs
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/.settings/org.eclipse.jdt.ui.prefs?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/.settings/org.eclipse.jdt.ui.prefs (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/.settings/org.eclipse.jdt.ui.prefs Mon Oct 15 15:41:25 2007
@@ -2,3 +2,52 @@
eclipse.preferences.version=1
formatter_profile=_Wicket
formatter_settings_version=11
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * Gets ${bare_field_name}.\r\n * @return ${bare_field_name}\r\n */</template><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * Sets ${bare_field_name}.\r\n * @param ${param} ${bare_field_name}\r\n */</template><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * Construct.\r\n
* ${tags}\r\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment"/><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}
\r\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/**\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">/*\r\n * Licensed to the Apache Software Foundation (ASF) under one or more\r\n * contributor license agreements. See the NOTICE file distributed with\r\n * this work for additional information regarding copyright ownership.\r\n * The ASF licenses this file to You under the Apache License, Version 2.0\r\n * (the "License"); you may not use this file except in compliance with\r\n * the License. You may obtain a copy of the License at\r\n *\r\n * http\://www.apache.org/licenses/LICENSE-2.0\r\
n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an "AS IS" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">throw new RuntimeException(${exception_var});</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="c
onstructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false"
description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.format_source_code=true
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=true
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=true
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=true
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=true
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java Mon Oct 15 15:41:25 2007
@@ -36,9 +36,8 @@
/**
- * Base class for Joda Time based date converters. It contains the logic to
- * parse and format, optionally taking the time zone difference between clients
- * and the server into account.
+ * Base class for Joda Time based date converters. It contains the logic to parse and format,
+ * optionally taking the time zone difference between clients and the server into account.
* <p>
* Converters of this class are best suited for per-component use.
* </p>
@@ -65,18 +64,16 @@
/**
* Construct.
* </p>
- * When applyTimeZoneDifference is true, the current time is applied on the
- * parsed date, and the date will be corrected for the time zone difference
- * between the server and the client. For instance, if I'm in Seattle and
- * the server I'm working on is in Amsterdam, the server is 9 hours ahead.
- * So, if I'm inputting say 12/24 at a couple of hours before midnight, at
- * the server it is already 12/25. If this boolean is true, it will be
- * transformed to 12/25, while the client sees 12/24.
+ * When applyTimeZoneDifference is true, the current time is applied on the parsed date, and the
+ * date will be corrected for the time zone difference between the server and the client. For
+ * instance, if I'm in Seattle and the server I'm working on is in Amsterdam, the server is 9
+ * hours ahead. So, if I'm inputting say 12/24 at a couple of hours before midnight, at the
+ * server it is already 12/25. If this boolean is true, it will be transformed to 12/25, while
+ * the client sees 12/24.
* </p>
*
* @param applyTimeZoneDifference
- * whether to apply the difference in time zones between client
- * and server
+ * whether to apply the difference in time zones between client and server
*/
public DateConverter(boolean applyTimeZoneDifference)
{
@@ -117,8 +114,8 @@
int result = format.parseInto(dt, value, 0);
if (result < 0)
{
- throw new ConversionException(new ParseException("unable to parse date "
- + value, ~result));
+ throw new ConversionException(new ParseException("unable to parse date " +
+ value, ~result));
}
}
catch (RuntimeException e)
@@ -168,17 +165,14 @@
* Gets whether to apply the time zone difference when interpreting dates.
*
* </p>
- * When true, the current time is applied on the parsed date, and the date
- * will be corrected for the time zone difference between the server and the
- * client. For instance, if I'm in Seattle and the server I'm working on is
- * in Amsterdam, the server is 9 hours ahead. So, if I'm inputting say 12/24
- * at a couple of hours before midnight, at the server it is already 12/25.
- * If this boolean is true, it will be transformed to 12/25, while the
- * client sees 12/24.
+ * When true, the current time is applied on the parsed date, and the date will be corrected for
+ * the time zone difference between the server and the client. For instance, if I'm in Seattle
+ * and the server I'm working on is in Amsterdam, the server is 9 hours ahead. So, if I'm
+ * inputting say 12/24 at a couple of hours before midnight, at the server it is already 12/25.
+ * If this boolean is true, it will be transformed to 12/25, while the client sees 12/24.
* </p>
*
- * @return whether to apply the difference in time zones between client and
- * server
+ * @return whether to apply the difference in time zones between client and server
*/
public final boolean getApplyTimeZoneDifference()
{
@@ -232,8 +226,7 @@
/**
* Gets the locale to use.
*
- * @return the locale from either the component if that is set, or from the
- * session
+ * @return the locale from either the component if that is set, or from the session
*/
protected Locale getLocale()
{
@@ -242,8 +235,8 @@
}
/**
- * Gets the server time zone. Override this method if you want to fix to a
- * certain time zone, regardless of what actual time zone the server is in.
+ * Gets the server time zone. Override this method if you want to fix to a certain time zone,
+ * regardless of what actual time zone the server is in.
*
* @return The server time zone
*/
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/PatternDateConverter.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/PatternDateConverter.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/PatternDateConverter.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/PatternDateConverter.java Mon Oct 15 15:41:25 2007
@@ -26,10 +26,10 @@
/**
- * Date converter that uses Joda Time and can be configured to take the time
- * zone difference between clients and server into account. This converter is
- * hard coded to use the provided custom date pattern, no matter what current
- * locale is used. See {@link SimpleDateFormat} for available patterns.
+ * Date converter that uses Joda Time and can be configured to take the time zone difference between
+ * clients and server into account. This converter is hard coded to use the provided custom date
+ * pattern, no matter what current locale is used. See {@link SimpleDateFormat} for available
+ * patterns.
* <p>
* This converter is especially suited on a per-component base.
* </p>
@@ -54,21 +54,19 @@
/**
* Construct.
* </p>
- * When applyTimeZoneDifference is true, the current time is applied on the
- * parsed date, and the date will be corrected for the time zone difference
- * between the server and the client. For instance, if I'm in Seattle and
- * the server I'm working on is in Amsterdam, the server is 9 hours ahead.
- * So, if I'm inputting say 12/24 at a couple of hours before midnight, at
- * the server it is already 12/25. If this boolean is true, it will be
- * transformed to 12/25, while the client sees 12/24.
+ * When applyTimeZoneDifference is true, the current time is applied on the parsed date, and the
+ * date will be corrected for the time zone difference between the server and the client. For
+ * instance, if I'm in Seattle and the server I'm working on is in Amsterdam, the server is 9
+ * hours ahead. So, if I'm inputting say 12/24 at a couple of hours before midnight, at the
+ * server it is already 12/25. If this boolean is true, it will be transformed to 12/25, while
+ * the client sees 12/24.
* </p>
*
* @param datePattern
- * The pattern to use. Must be not null. See
- * {@link SimpleDateFormat} for available patterns.
+ * The pattern to use. Must be not null. See {@link SimpleDateFormat} for available
+ * patterns.
* @param applyTimeZoneDifference
- * whether to apply the difference in time zones between client
- * and server
+ * whether to apply the difference in time zones between client and server
* @throws IllegalArgumentException
* in case the date pattern is null
*/
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/StyleDateConverter.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/StyleDateConverter.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/StyleDateConverter.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/StyleDateConverter.java Mon Oct 15 15:41:25 2007
@@ -24,10 +24,9 @@
/**
- * Date converter that uses Joda Time and can be configured to take the time
- * zone difference between clients and server into account, and that is
- * configured for a certain date style. The pattern will always be locale
- * specific.
+ * Date converter that uses Joda Time and can be configured to take the time zone difference between
+ * clients and server into account, and that is configured for a certain date style. The pattern
+ * will always be locale specific.
* <p>
* This converter is especially suited on a per-component base.
* </p>
@@ -50,22 +49,19 @@
private final String dateStyle;
/**
- * Construct. The dateStyle 'S-' (which is the same as
- * {@link DateTimeFormat#shortDate()}) will be used for constructing the
- * date format for the current locale.
+ * Construct. The dateStyle 'S-' (which is the same as {@link DateTimeFormat#shortDate()}) will
+ * be used for constructing the date format for the current locale.
* </p>
- * When applyTimeZoneDifference is true, the current time is applied on the
- * parsed date, and the date will be corrected for the time zone difference
- * between the server and the client. For instance, if I'm in Seattle and
- * the server I'm working on is in Amsterdam, the server is 9 hours ahead.
- * So, if I'm inputting say 12/24 at a couple of hours before midnight, at
- * the server it is already 12/25. If this boolean is true, it will be
- * transformed to 12/25, while the client sees 12/24.
+ * When applyTimeZoneDifference is true, the current time is applied on the parsed date, and the
+ * date will be corrected for the time zone difference between the server and the client. For
+ * instance, if I'm in Seattle and the server I'm working on is in Amsterdam, the server is 9
+ * hours ahead. So, if I'm inputting say 12/24 at a couple of hours before midnight, at the
+ * server it is already 12/25. If this boolean is true, it will be transformed to 12/25, while
+ * the client sees 12/24.
* </p>
*
* @param applyTimeZoneDifference
- * whether to apply the difference in time zones between client
- * and server
+ * whether to apply the difference in time zones between client and server
*/
public StyleDateConverter(boolean applyTimeZoneDifference)
{
@@ -73,28 +69,24 @@
}
/**
- * Construct. The provided pattern will be used as the base format (but they
- * will be localized for the current locale) and if null,
- * {@link DateTimeFormat#shortDate()} will be used.
+ * Construct. The provided pattern will be used as the base format (but they will be localized
+ * for the current locale) and if null, {@link DateTimeFormat#shortDate()} will be used.
* </p>
- * When applyTimeZoneDifference is true, the current time is applied on the
- * parsed date, and the date will be corrected for the time zone difference
- * between the server and the client. For instance, if I'm in Seattle and
- * the server I'm working on is in Amsterdam, the server is 9 hours ahead.
- * So, if I'm inputting say 12/24 at a couple of hours before midnight, at
- * the server it is already 12/25. If this boolean is true, it will be
- * transformed to 12/25, while the client sees 12/24.
+ * When applyTimeZoneDifference is true, the current time is applied on the parsed date, and the
+ * date will be corrected for the time zone difference between the server and the client. For
+ * instance, if I'm in Seattle and the server I'm working on is in Amsterdam, the server is 9
+ * hours ahead. So, if I'm inputting say 12/24 at a couple of hours before midnight, at the
+ * server it is already 12/25. If this boolean is true, it will be transformed to 12/25, while
+ * the client sees 12/24.
* </p>
*
* @param dateStyle
- * Date style to use. The first character is the date style, and
- * the second character is the time style. Specify a character of
- * 'S' for short style, 'M' for medium, 'L' for long, and 'F' for
- * full. A date or time may be ommitted by specifying a style
+ * Date style to use. The first character is the date style, and the second character
+ * is the time style. Specify a character of 'S' for short style, 'M' for medium, 'L'
+ * for long, and 'F' for full. A date or time may be ommitted by specifying a style
* character '-'. See {@link DateTimeFormat#forStyle(String)}.
* @param applyTimeZoneDifference
- * whether to apply the difference in time zones between client
- * and server
+ * whether to apply the difference in time zones between client and server
* @throws IllegalArgumentException
* in case dateStyle is null
*/
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/basic/DateLabel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/basic/DateLabel.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/basic/DateLabel.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/basic/DateLabel.java Mon Oct 15 15:41:25 2007
@@ -32,16 +32,15 @@
/**
- * A label that is mapped to a <code>java.util.Date</code> object and that
- * uses Joda time to format values.
+ * A label that is mapped to a <code>java.util.Date</code> object and that uses Joda time to
+ * format values.
* <p>
* You can provide a date pattern in two of the constructors. When not provided,
* {@link DateTimeFormat#shortDate()} will be used.
* </p>
* <p>
- * A special option is applyTimeZoneDifference which is an option that says
- * whether to correct for the difference between the client's time zone and
- * server's time zone. This is true by default.
+ * A special option is applyTimeZoneDifference which is an option that says whether to correct for
+ * the difference between the client's time zone and server's time zone. This is true by default.
* </p>
*
* @see DateTime
@@ -62,8 +61,8 @@
* @param model
* The model
* @param datePattern
- * The pattern to use. Must be not null. See
- * {@link SimpleDateFormat} for available patterns.
+ * The pattern to use. Must be not null. See {@link SimpleDateFormat} for available
+ * patterns.
*
* @see org.apache.wicket.markup.html.form.TextField
*/
@@ -78,8 +77,8 @@
* @param id
* The id of the text field
* @param datePattern
- * The pattern to use. Must be not null. See
- * {@link SimpleDateFormat} for available patterns.
+ * The pattern to use. Must be not null. See {@link SimpleDateFormat} for available
+ * patterns.
*
* @see org.apache.wicket.markup.html.form.TextField
*/
@@ -96,9 +95,9 @@
* @param model
* The model
* @param dateStyle
- * style to use in case no pattern is provided. Must be two
- * characters from the set {"S", "M", "L", "F", "-"}. Must be not
- * null. See {@link DateTimeFormat#forStyle(String)} for options.
+ * style to use in case no pattern is provided. Must be two characters from the set
+ * {"S", "M", "L", "F", "-"}. Must be not null. See
+ * {@link DateTimeFormat#forStyle(String)} for options.
*
* @see org.apache.wicket.markup.html.form.TextField
*/
@@ -113,9 +112,9 @@
* @param id
* The id of the text field
* @param dateStyle
- * style to use in case no pattern is provided. Must be two
- * characters from the set {"S", "M", "L", "F", "-"}. Must be not
- * null. See {@link DateTimeFormat#forStyle(String)} for options.
+ * style to use in case no pattern is provided. Must be two characters from the set
+ * {"S", "M", "L", "F", "-"}. Must be not null. See
+ * {@link DateTimeFormat#forStyle(String)} for options.
*
* @see org.apache.wicket.markup.html.form.TextField
*/
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java Mon Oct 15 15:41:25 2007
@@ -31,17 +31,16 @@
import org.joda.time.format.DateTimeFormat;
/**
- * A TextField that is mapped to a <code>java.util.Date</code> object and that
- * uses Joda time to parse and format values.
+ * A TextField that is mapped to a <code>java.util.Date</code> object and that uses Joda time to
+ * parse and format values.
* <p>
- * You should use on of the factory methods to construct the kind you want or
- * use the public constructor and pass in the converter to use.
+ * You should use on of the factory methods to construct the kind you want or use the public
+ * constructor and pass in the converter to use.
* </p>
* <p>
- * This component tries to apply the time zone difference between the client and
- * server. See the
- * {@link DateConverter#getApplyTimeZoneDifference() date converter} of this
- * package for more information on that.
+ * This component tries to apply the time zone difference between the client and server. See the
+ * {@link DateConverter#getApplyTimeZoneDifference() date converter} of this package for more
+ * information on that.
* </p>
*
* @see StyleDateConverter
@@ -64,8 +63,8 @@
* @param model
* The model
* @param datePattern
- * The pattern to use. Must be not null. See
- * {@link SimpleDateFormat} for available patterns.
+ * The pattern to use. Must be not null. See {@link SimpleDateFormat} for available
+ * patterns.
*
* @see org.apache.wicket.markup.html.form.TextField
*/
@@ -80,8 +79,8 @@
* @param id
* The id of the text field
* @param datePattern
- * The pattern to use. Must be not null. See
- * {@link SimpleDateFormat} for available patterns.
+ * The pattern to use. Must be not null. See {@link SimpleDateFormat} for available
+ * patterns.
*
* @see org.apache.wicket.markup.html.form.TextField
*/
@@ -98,10 +97,9 @@
* @param model
* The model
* @param dateStyle
- * Date style to use. The first character is the date style, and
- * the second character is the time style. Specify a character of
- * 'S' for short style, 'M' for medium, 'L' for long, and 'F' for
- * full. A date or time may be ommitted by specifying a style
+ * Date style to use. The first character is the date style, and the second character
+ * is the time style. Specify a character of 'S' for short style, 'M' for medium, 'L'
+ * for long, and 'F' for full. A date or time may be ommitted by specifying a style
* character '-'. See {@link DateTimeFormat#forStyle(String)}.
*
* @see org.apache.wicket.markup.html.form.TextField
@@ -117,10 +115,9 @@
* @param id
* The id of the text field
* @param dateStyle
- * Date style to use. The first character is the date style, and
- * the second character is the time style. Specify a character of
- * 'S' for short style, 'M' for medium, 'L' for long, and 'F' for
- * full. A date or time may be ommitted by specifying a style
+ * Date style to use. The first character is the date style, and the second character
+ * is the time style. Specify a character of 'S' for short style, 'M' for medium, 'L'
+ * for long, and 'F' for full. A date or time may be ommitted by specifying a style
* character '-'. See {@link DateTimeFormat#forStyle(String)}.
*
* @see org.apache.wicket.markup.html.form.TextField
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/YuiLib.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/YuiLib.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/YuiLib.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/YuiLib.java Mon Oct 15 15:41:25 2007
@@ -21,8 +21,8 @@
import org.apache.wicket.markup.html.resources.JavascriptResourceReference;
/**
- * Use the {@link #load(IHeaderResponse, boolean)} method to initialize the YUI
- * library using the YUI loader. It is OK to call this multiple times.
+ * Use the {@link #load(IHeaderResponse, boolean)} method to initialize the YUI library using the
+ * YUI loader. It is OK to call this multiple times.
*
* @author eelcohillenius
*/
@@ -31,8 +31,8 @@
private static final long serialVersionUID = 1L;
/**
- * Load the YUI loader script. After that, you can declare YUI dependencies
- * using YAHOO.util.YUILoader.
+ * Load the YUI loader script. After that, you can declare YUI dependencies using
+ * YAHOO.util.YUILoader.
*
* @param response
* header response
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/AbstractCalendar.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/AbstractCalendar.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/AbstractCalendar.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/AbstractCalendar.java Mon Oct 15 15:41:25 2007
@@ -32,19 +32,18 @@
/**
- * Abstract calendar component based on the YUI (Yahoo User Interface library)
- * javascript widget.
+ * Abstract calendar component based on the YUI (Yahoo User Interface library) javascript widget.
* <p>
- * Although this component by itself is fully functional, it doesn't do much
- * other than just displaying the calendar. Hence, this class is abstract.
+ * Although this component by itself is fully functional, it doesn't do much other than just
+ * displaying the calendar. Hence, this class is abstract.
* </p>
* <p>
* An easy way to build upon this component is to override
- * {@link #appendToInit(String, String, String, StringBuffer)} and add event
- * handlers etc. in the YUI widget's initialization function.
+ * {@link #appendToInit(String, String, String, StringBuffer)} and add event handlers etc. in the
+ * YUI widget's initialization function.
* </p>
- * See <a href="http://developer.yahoo.com/yui/calendar/">YUI's calendar
- * documentation</a> for more info.
+ * See <a href="http://developer.yahoo.com/yui/calendar/">YUI's calendar documentation</a> for more
+ * info.
*
* @author eelcohillenius
*
@@ -55,15 +54,14 @@
public abstract class AbstractCalendar extends WebComponent
{
/**
- * Format to be used when configuring YUI calendar. Can be used when using
- * the "selected" property.
+ * Format to be used when configuring YUI calendar. Can be used when using the
+ * "selected" property.
*/
public static final DateFormat FORMAT_DATE = new SimpleDateFormat("MM/dd/yyyy");
/**
- * For specifying which page (month/year) to show in the calendar, use this
- * format for the date. This is to be used together with the property
- * "pagedate"
+ * For specifying which page (month/year) to show in the calendar, use this format for the date.
+ * This is to be used together with the property "pagedate"
*/
public static final DateFormat FORMAT_PAGEDATE = new SimpleDateFormat("MM/yyyy");
private static final long serialVersionUID = 1L;
@@ -85,11 +83,10 @@
* @param id
* The component id
* @param contributeDependencies
- * Whether to contribute the packaged dependencies. Pass false in
- * case you want to include the dependencies manually in your own
- * page, e.g. when you want to keep them in your web application
- * dir. To contribute yourself (in case you want to pass false),
- * your page header should look like:
+ * Whether to contribute the packaged dependencies. Pass false in case you want to
+ * include the dependencies manually in your own page, e.g. when you want to keep
+ * them in your web application dir. To contribute yourself (in case you want to pass
+ * false), your page header should look like:
*
* <pre>
* <script type="text/javascript" src="yahoo.js"></script>
@@ -204,10 +201,9 @@
}
/**
- * Gets the id of the javascript widget. Note that this is the
- * non-namespaced id, so depending on what you want to do with it, you may
- * need to prepend 'YAHOO.wicket.' to it. Or you can call
- * {@link #getJavascriptWidgetId()}.
+ * Gets the id of the javascript widget. Note that this is the non-namespaced id, so depending
+ * on what you want to do with it, you may need to prepend 'YAHOO.wicket.' to it. Or you can
+ * call {@link #getJavascriptWidgetId()}.
*
* @return The javascript id
* @see #getJavascriptWidgetId()
@@ -241,9 +237,9 @@
}
/**
- * Append javascript to the initialization function for the YUI widget. Can
- * be used by subclasses to conveniently extend configuration without having
- * to write a separate contribution.
+ * Append javascript to the initialization function for the YUI widget. Can be used by
+ * subclasses to conveniently extend configuration without having to write a separate
+ * contribution.
*
* @param markupId
* The markup id of the calendar component
@@ -260,11 +256,10 @@
}
/**
- * Gives overriding classes the option of adding (or even changing/
- * removing) configuration properties for the javascript widget. See <a
- * href="http://developer.yahoo.com/yui/calendar/">the widget's
- * documentation</a> for the available options. If you want to override/
- * remove properties, you obviously should call
+ * Gives overriding classes the option of adding (or even changing/ removing) configuration
+ * properties for the javascript widget. See <a
+ * href="http://developer.yahoo.com/yui/calendar/">the widget's documentation</a> for the
+ * available options. If you want to override/ remove properties, you obviously should call
* {@link super#setWidgetProperties(Properties)} first.
*
* @param widgetProperties
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateField.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateField.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateField.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateField.java Mon Oct 15 15:41:25 2007
@@ -96,16 +96,15 @@
}
/**
- * Sets the converted input. In this case, we're really just interested in
- * the nested date field, as that is the element that receives the real user
- * input. So we're just passing that on.
+ * Sets the converted input. In this case, we're really just interested in the nested date
+ * field, as that is the element that receives the real user input. So we're just passing that
+ * on.
* <p>
- * Note that overriding this method is a better option than overriding
- * {@link #updateModel()} like the first versions of this class did. The
- * reason for that is that this method can be used by form validators
- * without having to depend on the actual model being updated, and this
- * method is called by the default implementation of {@link #updateModel()}
- * anyway (so we don't have to override that anymore).
+ * Note that overriding this method is a better option than overriding {@link #updateModel()}
+ * like the first versions of this class did. The reason for that is that this method can be
+ * used by form validators without having to depend on the actual model being updated, and this
+ * method is called by the default implementation of {@link #updateModel()} anyway (so we don't
+ * have to override that anymore).
* </p>
*
* @return instance of {@link Date}, possibly null
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DatePicker.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DatePicker.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DatePicker.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DatePicker.java Mon Oct 15 15:41:25 2007
@@ -54,23 +54,22 @@
/**
- * Pops up a YUI calendar component so that the user can select a date. On
- * selection, the date is set in the component it is coupled to, after which the
- * popup is closed again. This behavior can only be used with components that
- * either implement {@link ITextFormatProvider} or that use
- * {@link DateConverter} configured with an instance of {@link SimpleDateFormat}
- * (like Wicket's default configuration has).
+ * Pops up a YUI calendar component so that the user can select a date. On selection, the date is
+ * set in the component it is coupled to, after which the popup is closed again. This behavior can
+ * only be used with components that either implement {@link ITextFormatProvider} or that use
+ * {@link DateConverter} configured with an instance of {@link SimpleDateFormat} (like Wicket's
+ * default configuration has).
*
- * To use, simply add a new instance to your component, which would typically a
- * TextField, like {@link DateTextField}.
+ * To use, simply add a new instance to your component, which would typically a TextField, like
+ * {@link DateTextField}.
*
* @author eelcohillenius
*/
public class DatePicker extends AbstractBehavior implements IHeaderContributor
{
/**
- * Exception thrown when the bound component does not produce a format this
- * date picker can work with.
+ * Exception thrown when the bound component does not produce a format this date picker can work
+ * with.
*/
private static final class UnableToDetermineFormatException extends WicketRuntimeException
{
@@ -78,25 +77,24 @@
public UnableToDetermineFormatException()
{
- super("This behavior can only be added to components that either implement "
- + ITextFormatProvider.class.getName()
- + " AND produce a non-null format, or that use"
- + " converters that this datepicker can use to determine"
- + " the pattern being used. Alternatively, you can extend "
- + " the date picker and override getDatePattern to provide your own");
+ super("This behavior can only be added to components that either implement " +
+ ITextFormatProvider.class.getName() +
+ " AND produce a non-null format, or that use" +
+ " converters that this datepicker can use to determine" +
+ " the pattern being used. Alternatively, you can extend " +
+ " the date picker and override getDatePattern to provide your own");
}
}
/**
- * Format to be used when configuring YUI calendar. Can be used when using
- * the "selected" property.
+ * Format to be used when configuring YUI calendar. Can be used when using the
+ * "selected" property.
*/
public static final DateFormat FORMAT_DATE = new SimpleDateFormat("MM/dd/yyyy");
/**
- * For specifying which page (month/year) to show in the calendar, use this
- * format for the date. This is to be used together with the property
- * "pagedate"
+ * For specifying which page (month/year) to show in the calendar, use this format for the date.
+ * This is to be used together with the property "pagedate"
*/
public static final DateFormat FORMAT_PAGEDATE = new SimpleDateFormat("MM/yyyy");
@@ -170,8 +168,8 @@
response.renderCSSReference(new ResourceReference(YuiLib.class,
"calendar/assets/wicket-calendar.css"));
String idSelector = "#" + getEscapedComponentMarkupId() + "DpJs";
- new StringHeaderContributor("<style>" + idSelector + ".yui-calendar .calnavleft, "
- + idSelector + ".yui-calendar .calnavright {display: none;}</style>")
+ new StringHeaderContributor("<style>" + idSelector + ".yui-calendar .calnavleft, " +
+ idSelector + ".yui-calendar .calnavright {display: none;}</style>")
.renderHead(response);
}
@@ -200,8 +198,8 @@
Properties p = new Properties();
configure(p);
- if (enableMonthYearSelection() && p.containsKey("pages")
- && Objects.longValue(p.get("pages")) > 1)
+ if (enableMonthYearSelection() && p.containsKey("pages") &&
+ Objects.longValue(p.get("pages")) > 1)
{
throw new IllegalStateException(
"You cannot use a CalendarGroup with month/year selection!");
@@ -261,19 +259,19 @@
// ajax requests to not render the yui calendar multiple times
if (AjaxRequestTarget.get() != null)
{
- final String javascript = "var e = Wicket.$('" + getEscapedComponentMarkupId() + "Dp"
- + "'); if (e != null && typeof(e.parentNode) != 'undefined' && "
- + "typeof(e.parentNode.parentNode != 'undefined')) "
- + "e.parentNode.parentNode.removeChild(e.parentNode);";
+ final String javascript = "var e = Wicket.$('" + getEscapedComponentMarkupId() + "Dp" +
+ "'); if (e != null && typeof(e.parentNode) != 'undefined' && " +
+ "typeof(e.parentNode.parentNode != 'undefined')) " +
+ "e.parentNode.parentNode.removeChild(e.parentNode);";
response.renderJavascript(javascript, null);
}
}
/**
- * Check that this behavior can get a date format out of the component it is
- * coupled to. It checks whether {@link #getDatePattern()} produces a
- * non-null value. If that method returns null, and exception will be thrown
+ * Check that this behavior can get a date format out of the component it is coupled to. It
+ * checks whether {@link #getDatePattern()} produces a non-null value. If that method returns
+ * null, and exception will be thrown
*
* @param component
* the component this behavior is being coupled to
@@ -306,10 +304,9 @@
/**
* Whether to position the date picker relative to the trigger icon.
*
- * @return If true, the date picker is aligned with the left position of the
- * icon, and with the top right under. If false, the date picker
- * will skip positioning and will let you do the positioning
- * yourself. Returns true by default.
+ * @return If true, the date picker is aligned with the left position of the icon, and with the
+ * top right under. If false, the date picker will skip positioning and will let you do
+ * the positioning yourself. Returns true by default.
*/
protected boolean alignWithIcon()
{
@@ -317,9 +314,9 @@
}
/**
- * Append javascript to the initialization function for the YUI widget. Can
- * be used by subclasses to conveniently extend configuration without having
- * to write a separate contribution.
+ * Append javascript to the initialization function for the YUI widget. Can be used by
+ * subclasses to conveniently extend configuration without having to write a separate
+ * contribution.
*
* @param markupId
* The markup id of the calendar component
@@ -336,14 +333,13 @@
}
/**
- * Gives overriding classes the option of adding (or even changing/
- * removing) configuration properties for the javascript widget. See <a
- * href="http://developer.yahoo.com/yui/calendar/">the widget's
- * documentation</a> for the available options. If you want to override/
- * remove properties, you should call
- * {@link super#setWidgetProperties(Properties)} first. If you don't call
- * that, be aware that you will have to call {@link #localize(Map)} manually
- * if you like localized strings to be added.
+ * Gives overriding classes the option of adding (or even changing/ removing) configuration
+ * properties for the javascript widget. See <a
+ * href="http://developer.yahoo.com/yui/calendar/">the widget's documentation</a> for the
+ * available options. If you want to override/ remove properties, you should call
+ * {@link super#setWidgetProperties(Properties)} first. If you don't call that, be aware that
+ * you will have to call {@link #localize(Map)} manually if you like localized strings to be
+ * added.
*
* @param widgetProperties
* the current widget properties
@@ -379,8 +375,8 @@
}
/**
- * Filter all empty elements (workaround for {@link DateFormatSymbols}
- * returning arrays with empty elements).
+ * Filter all empty elements (workaround for {@link DateFormatSymbols} returning arrays with
+ * empty elements).
*
* @param array
* array to filter
@@ -404,8 +400,7 @@
}
/**
- * Gets the id of the component that the calendar widget will get attached
- * to.
+ * Gets the id of the component that the calendar widget will get attached to.
*
* @return The DOM id of the component
*/
@@ -417,8 +412,7 @@
/**
* @return if true, the base path for all YUI components will be set to
- * /resources/org.apache.wicket.extensions.yui.YuiLib/. True by
- * default.
+ * /resources/org.apache.wicket.extensions.yui.YuiLib/. True by default.
*/
protected boolean getConfigureYUIBasePath()
{
@@ -426,8 +420,7 @@
}
/**
- * Gets the date pattern to use for putting selected values in the coupled
- * component.
+ * Gets the date pattern to use for putting selected values in the coupled component.
*
* @return The date pattern
*/
@@ -456,11 +449,10 @@
}
/**
- * Gets the escaped DOM id that the calendar widget will get attached to.
- * All non word characters (\W) will be removed from the string.
+ * Gets the escaped DOM id that the calendar widget will get attached to. All non word
+ * characters (\W) will be removed from the string.
*
- * @return The DOM id of the calendar widget - same as the component's
- * markup id + 'Dp'}
+ * @return The DOM id of the calendar widget - same as the component's markup id + 'Dp'}
*/
protected final String getEscapedComponentMarkupId()
{
@@ -488,8 +480,7 @@
}
/**
- * Gets the url for the popup button. Users can override to provide their
- * own icon URL.
+ * Gets the url for the popup button. Users can override to provide their own icon URL.
*
* @return the url to use for the popup button/ icon
*/
@@ -509,24 +500,20 @@
}
/**
- * Configure the localized strings for the datepicker widget. This
- * implementation uses {@link DateFormatSymbols} and some slight string
- * manupilation to get the strings for months and week days. It should work
- * well for most locales.
+ * Configure the localized strings for the datepicker widget. This implementation uses
+ * {@link DateFormatSymbols} and some slight string manupilation to get the strings for months
+ * and week days. It should work well for most locales.
* <p>
- * This method is called from {@link #configureWidgetProperties(Map)} and
- * can be overriden if you want to customize setting up the localized
- * strings but are happy with the rest of
- * {@link #configureWidgetProperties(Map)}'s behavior. Note that you can
- * call (overridable) method {@link #getLocale()} to get the locale that
- * should be used for setting up the widget.
+ * This method is called from {@link #configureWidgetProperties(Map)} and can be overriden if
+ * you want to customize setting up the localized strings but are happy with the rest of
+ * {@link #configureWidgetProperties(Map)}'s behavior. Note that you can call (overridable)
+ * method {@link #getLocale()} to get the locale that should be used for setting up the widget.
* </p>
* <p>
- * See YUI Calendar's <a
- * href="http://developer.yahoo.com/yui/examples/calendar/germany/1.html">
+ * See YUI Calendar's <a href="http://developer.yahoo.com/yui/examples/calendar/germany/1.html">
* German</a> and <a
- * href="http://developer.yahoo.com/yui/examples/calendar/japan/1.html">Japanese</a>
- * examples for more info.
+ * href="http://developer.yahoo.com/yui/examples/calendar/japan/1.html">Japanese</a> examples
+ * for more info.
* </p>
*
* @param widgetProperties
@@ -547,14 +534,12 @@
}
/**
- * Whether to notify the associated component when a date is selected.
- * Notifying is done by calling the associated component's onchange
- * Javascript event handler. You can for instance attach an
- * {@link AjaxEventBehavior} to that component to get a call back to the
- * server. The default is true.
+ * Whether to notify the associated component when a date is selected. Notifying is done by
+ * calling the associated component's onchange Javascript event handler. You can for instance
+ * attach an {@link AjaxEventBehavior} to that component to get a call back to the server. The
+ * default is true.
*
- * @return if true, notifies the associated component when a date is
- * selected
+ * @return if true, notifies the associated component when a date is selected
*/
protected boolean notifyComponentOnDateSelected()
{
@@ -562,8 +547,8 @@
}
/**
- * Makes a copy of the provided array and for each element copy the
- * substring 0..len to the new array
+ * Makes a copy of the provided array and for each element copy the substring 0..len to the new
+ * array
*
* @param array
* array to copy from
@@ -597,12 +582,11 @@
}
/**
- * Indicates whether plain text is rendered or two select boxes are used to
- * allow direct selection of month and year.
+ * Indicates whether plain text is rendered or two select boxes are used to allow direct
+ * selection of month and year.
*
- * @return <code>true</code> if select boxes should be rendered to allow
- * month and year selection.<br/><code>false</code> to render
- * just plain text.
+ * @return <code>true</code> if select boxes should be rendered to allow month and year
+ * selection.<br/><code>false</code> to render just plain text.
*/
protected boolean enableMonthYearSelection()
{
@@ -610,12 +594,11 @@
}
/**
- * Indicates whether the calendar should be hidden after a date was
- * selected.
+ * Indicates whether the calendar should be hidden after a date was selected.
*
- * @return <code>true</code> (default) if the calendar should be hidden
- * after the date selection <br/><code>false</code> if the
- * calendar should remain visible after the date selection.
+ * @return <code>true</code> (default) if the calendar should be hidden after the date
+ * selection <br/><code>false</code> if the calendar should remain visible after the
+ * date selection.
*/
protected boolean hideOnSelect()
{
@@ -623,12 +606,10 @@
}
/**
- * Indicates whether the calendar should be rendered after it has been
- * loaded.
+ * Indicates whether the calendar should be rendered after it has been loaded.
*
- * @return <code>true</code> if the calendar should be rendered after it
- * has been loaded.<br/><code>false</code> (default) if it's
- * initially hidden.
+ * @return <code>true</code> if the calendar should be rendered after it has been loaded.<br/><code>false</code>
+ * (default) if it's initially hidden.
*/
protected boolean renderOnLoad()
{
@@ -636,13 +617,11 @@
}
/**
- * Override this method to further customize the YUI Calendar with
- * additional Javascript code. The code returned by this method is executed
- * right after the Calendar has been constructed and initialized. To refer
- * to the actual Calendar DOM object, use <code>${calendar}</code> in your
- * code.<br/>See <a href="http://developer.yahoo.com/yui/calendar/">the
- * widget's documentation</a> for more information about the YUI Calendar.<br/>
- * Example:
+ * Override this method to further customize the YUI Calendar with additional Javascript code.
+ * The code returned by this method is executed right after the Calendar has been constructed
+ * and initialized. To refer to the actual Calendar DOM object, use <code>${calendar}</code>
+ * in your code.<br/>See <a href="http://developer.yahoo.com/yui/calendar/">the widget's
+ * documentation</a> for more information about the YUI Calendar.<br/> Example:
*
* <pre>
* protected String getAdditionalJavascript()
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateTimeField.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateTimeField.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateTimeField.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateTimeField.java Mon Oct 15 15:41:25 2007
@@ -41,8 +41,8 @@
/**
- * Works on a {@link java.util.Date} object. Displays a date field and a date
- * picker, a field for hours and a field for minutes, and a AM/ PM field.
+ * Works on a {@link java.util.Date} object. Displays a date field and a date picker, a field for
+ * hours and a field for minutes, and a AM/ PM field.
*
* @author eelcohillenius
* @see DateField for a variant with just the date field and date picker
@@ -52,8 +52,7 @@
public class DateTimeField extends FormComponentPanel
{
/**
- * Enumerated type for different ways of handling the render part of
- * requests.
+ * Enumerated type for different ways of handling the render part of requests.
*/
// enums are mucho nicer, but let's keep this project at 1.4 for now
private static class AM_PM extends EnumeratedType
@@ -104,7 +103,7 @@
{
this(id, null);
}
-
+
/**
* Construct.
*
@@ -117,11 +116,12 @@
setType(Date.class);
PropertyModel dateFieldModel = new PropertyModel(this, "date");
add(dateField = newDateTextField("date", dateFieldModel));
- dateField.add(new DatePicker() {
+ dateField.add(new DatePicker()
+ {
private static final long serialVersionUID = 1L;
protected void configure(Map widgetProperties)
- {
+ {
super.configure(widgetProperties);
DateTimeField.this.configure(widgetProperties);
}
@@ -174,9 +174,10 @@
{
return hours;
}
-
- protected void configure(Map widgetProperties) {
-
+
+ protected void configure(Map widgetProperties)
+ {
+
}
/**
@@ -260,16 +261,14 @@
}
/**
- * Sets the converted input, which is an instance of {@link Date}, possibly
- * null. It combines the inputs of the nested date, hours, minutes and am/pm
- * fields and constructs a date from it.
+ * Sets the converted input, which is an instance of {@link Date}, possibly null. It combines
+ * the inputs of the nested date, hours, minutes and am/pm fields and constructs a date from it.
* <p>
- * Note that overriding this method is a better option than overriding
- * {@link #updateModel()} like the first versions of this class did. The
- * reason for that is that this method can be used by form validators
- * without having to depend on the actual model being updated, and this
- * method is called by the default implementation of {@link #updateModel()}
- * anyway (so we don't have to override that anymore).
+ * Note that overriding this method is a better option than overriding {@link #updateModel()}
+ * like the first versions of this class did. The reason for that is that this method can be
+ * used by form validators without having to depend on the actual model being updated, and this
+ * method is called by the default implementation of {@link #updateModel()} anyway (so we don't
+ * have to override that anymore).
* </p>
*
* @see org.apache.wicket.markup.html.form.FormComponent#convertInput()
Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java?rev=584950&r1=584949&r2=584950&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java Mon Oct 15 15:41:25 2007
@@ -18,9 +18,8 @@
/**
- * Test that the license headers are in place in this project. The tests are run
- * from {@link ApacheLicenseHeaderTestCase}, but you can add project specific
- * tests here if needed.
+ * Test that the license headers are in place in this project. The tests are run from
+ * {@link ApacheLicenseHeaderTestCase}, but you can add project specific tests here if needed.
*
* @author Frank Bille Jensen (frankbille)
*/