Skip to content

Commit

Permalink
Add javadoc to explain how to use ERMDDatePicker with localized date …
Browse files Browse the repository at this point in the history
…formats.
  • Loading branch information
fbarthez authored and darkv committed Dec 15, 2015
1 parent 558e65b commit 5d443e5
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
import er.extensions.foundation.ERXValueUtilities;

/**
* D2WEditComponent based on CCDatePicker.
* D2WEditComponent based on CCDatePicker. To use localized date formats, define the
* patterns in your Localizable.strings, e.g. "defaultDateFormat" = "%d.%m.%Y". Then
* add one or more sets of rules like these:
* <pre>
* 60 : true => defaultDateFormat = "D2W.defaultDateFormat" [er.directtoweb.ERDDelayedLocalizedAssignment]
* 60 : smartAttribute.prototypeName = 'dateTime' => formatter = "defaultDateFormat" [er.directtoweb.assignments.delayed.ERDDelayedKeyValueAssignment]
* </pre>
*
* @d2wKey formatter - string - date format string
* @d2wKey datePickerDragDisabled - boolean - disable dragging on date picker
Expand All @@ -34,6 +40,8 @@
*/
public class ERMDDatePicker extends ERDCustomEditComponent {

private static final long serialVersionUID = 1L;

private String _formatter;
private String _dateReadableDescription;

Expand Down

0 comments on commit 5d443e5

Please sign in to comment.