litesoft
Diff Revisions
862
vs
863
for /trunk/Java/core/jvm1.4/src/org/litesoft/ui/def/nonpublic/support/AbstractDateMetaData.java
|
@@ -1,7 +1,6 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt |
2 |
2 |
|
package org.litesoft.ui.def.nonpublic.support; |
3 |
3 |
|
|
4 |
|
- |
import org.litesoft.core.simpletypes.temporal.*; |
5 |
4 |
|
import org.litesoft.core.typeutils.*; |
6 |
5 |
|
import org.litesoft.core.util.*; |
7 |
6 |
|
import org.litesoft.ui.support.*; |
|
@@ -9,7 +8,6 @@ |
9 |
8 |
|
public abstract class AbstractDateMetaData extends RequirableAttributeMetaData |
10 |
9 |
|
{ |
11 |
10 |
|
private String mCancelText, mTodayText; |
12 |
|
- |
private DateFormat mFormat; |
13 |
11 |
|
|
14 |
12 |
|
/** |
15 |
13 |
|
* @deprecated GWT ONLY |
|
@@ -21,13 +19,11 @@ |
21 |
19 |
|
protected AbstractDateMetaData( AttributeUsage pUsage, boolean pDisabled, Hintable.Hint[] pHints, // |
22 |
20 |
|
String pExternalText, String pTooltip, // |
23 |
21 |
|
boolean pRequired, String pErrorTextForRequired, // |
24 |
|
- |
String pCancelText, String pTodayText, // |
25 |
|
- |
DateFormat pFormat ) |
|
22 |
+ |
String pCancelText, String pTodayText ) |
26 |
23 |
|
{ |
27 |
24 |
|
super( pUsage, pDisabled, pHints, pExternalText, pTooltip, pRequired, pErrorTextForRequired ); |
28 |
25 |
|
mCancelText = Strings.assertNotNullNotEmpty( "CancelText", pCancelText ); |
29 |
26 |
|
mTodayText = Strings.assertNotNullNotEmpty( "TodayText", pTodayText ); |
30 |
|
- |
Objects.assertNotNull( "DateFormat", mFormat = pFormat ); |
31 |
27 |
|
} |
32 |
28 |
|
|
33 |
29 |
|
public String getCancelText() |
|
@@ -40,16 +36,10 @@ |
40 |
36 |
|
return mTodayText; |
41 |
37 |
|
} |
42 |
38 |
|
|
43 |
|
- |
public DateFormat getFormatControl() |
44 |
|
- |
{ |
45 |
|
- |
return mFormat; |
46 |
|
- |
} |
47 |
|
- |
|
48 |
39 |
|
protected void addAdditionalSimpleAttributes( StringBuilder pSB ) |
49 |
40 |
|
{ |
50 |
41 |
|
super.addAdditionalSimpleAttributes( pSB ); |
51 |
42 |
|
pSB.append( ",CancelText='" ).append( mCancelText ).append( "'" ); |
52 |
43 |
|
pSB.append( ",TodayText='" ).append( mTodayText ).append( "'" ); |
53 |
|
- |
pSB.append( ",Format='" ).append( mFormat ).append( "'" ); |
54 |
44 |
|
} |
55 |
45 |
|
} |