litesoft
Diff Revisions
859
vs
860
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/forms/client/components/impls/input/FormDatePicker.java
|
@@ -35,7 +35,7 @@ |
35 |
35 |
|
throws IllegalArgumentException |
36 |
36 |
|
{ |
37 |
37 |
|
UtilDateAdaptor zInadequatePartsSource = |
38 |
|
- |
(pLastValidInternalFormValue instanceof SimpleDate) ? ((SimpleDate) pLastValidInternalFormValue).toUtilDateAdaptor() : null; |
|
38 |
+ |
(pLastValidInternalFormValue instanceof CalendarYMD) ? ((CalendarYMD) pLastValidInternalFormValue).toUtilDateAdaptor() : null; |
39 |
39 |
|
return mTemporalParser.parseDate( pText, mDateFormat.getDateRes(), zInadequatePartsSource ); |
40 |
40 |
|
} |
41 |
41 |
|
|
|
@@ -47,7 +47,7 @@ |
47 |
47 |
|
|
48 |
48 |
|
if ( value != null ) |
49 |
49 |
|
{ |
50 |
|
- |
setTextValueFromPicker( mDateFormat.format( new SimpleDate( mDateFormat.getDateRes(), value ) ) ); |
|
50 |
+ |
setTextValueFromPicker( mDateFormat.format( new CalendarYMD( mDateFormat.getDateRes(), value ) ) ); |
51 |
51 |
|
} |
52 |
52 |
|
} |
53 |
53 |
|
|
|
@@ -55,13 +55,13 @@ |
55 |
55 |
|
protected void showPicker( int pAbsoluteLeft, int pAbsoluteTop, Object pCurrentValue, Object pLastValidInternalFormValue ) |
56 |
56 |
|
{ |
57 |
57 |
|
Date zDate; |
58 |
|
- |
if ( pCurrentValue instanceof SimpleDate ) |
|
58 |
+ |
if ( pCurrentValue instanceof CalendarYMD ) |
59 |
59 |
|
{ |
60 |
|
- |
zDate = ((SimpleDate) pCurrentValue).toUtilDate(); |
|
60 |
+ |
zDate = ((CalendarYMD) pCurrentValue).toUtilDate(); |
61 |
61 |
|
} |
62 |
|
- |
else if ( pLastValidInternalFormValue instanceof SimpleDate ) |
|
62 |
+ |
else if ( pLastValidInternalFormValue instanceof CalendarYMD ) |
63 |
63 |
|
{ |
64 |
|
- |
zDate = ((SimpleDate) pLastValidInternalFormValue).toUtilDate(); |
|
64 |
+ |
zDate = ((CalendarYMD) pLastValidInternalFormValue).toUtilDate(); |
65 |
65 |
|
} |
66 |
66 |
|
else |
67 |
67 |
|
{ |