litesoft
Diff Revisions
219
vs
221
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/forms/client/QBE_FormEngine.java
|
@@ -53,22 +53,29 @@ |
53 |
53 |
|
protected void LLresetComponents( boolean pResetValues ) |
54 |
54 |
|
{ |
55 |
55 |
|
mFilter.suppressRealtimeUpdating(); |
56 |
|
- |
super.LLresetComponents( pResetValues ); |
57 |
|
- |
mFilter.clearAllFilterValues(); |
58 |
|
- |
if ( !mMode.shouldMonitorSearchFields() ) |
|
56 |
+ |
try |
59 |
57 |
|
{ |
60 |
|
- |
hideQBE(); |
61 |
|
- |
return; |
62 |
|
- |
} |
63 |
|
- |
// Assume that a setFocus will update the View appropriately |
64 |
|
- |
for ( IFormComponent zComponent : mComponents ) |
65 |
|
- |
{ |
66 |
|
- |
if ( isSearchFilter( zComponent ) ) |
|
58 |
+ |
super.LLresetComponents( pResetValues ); |
|
59 |
+ |
mFilter.clearAllFilterValues(); |
|
60 |
+ |
mFilterTransformer.clearAllFilterValues( mFilter ); |
|
61 |
+ |
if ( !mMode.shouldMonitorSearchFields() ) |
|
62 |
+ |
{ |
|
63 |
+ |
hideQBE(); |
|
64 |
+ |
return; |
|
65 |
+ |
} |
|
66 |
+ |
// Assume that a setFocus will update the View appropriately |
|
67 |
+ |
for ( IFormComponent zComponent : mComponents ) |
67 |
68 |
|
{ |
68 |
|
- |
updateFilter( zComponent ); |
|
69 |
+ |
if ( isSearchFilter( zComponent ) ) |
|
70 |
+ |
{ |
|
71 |
+ |
updateFilter( zComponent ); |
|
72 |
+ |
} |
69 |
73 |
|
} |
70 |
74 |
|
} |
71 |
|
- |
mFilter.releaseRealtimeUpdating(); |
|
75 |
+ |
finally |
|
76 |
+ |
{ |
|
77 |
+ |
mFilter.releaseRealtimeUpdating(); |
|
78 |
+ |
} |
72 |
79 |
|
} |
73 |
80 |
|
|
74 |
81 |
|
@Override |
|
@@ -187,6 +194,11 @@ |
187 |
194 |
|
public static UpdateFilterTransformer INSTANCE = new NormalUpdateFilterTransformer(); |
188 |
195 |
|
|
189 |
196 |
|
@Override |
|
197 |
+ |
public void clearAllFilterValues( BoAccessorFilter pFilter ) |
|
198 |
+ |
{ |
|
199 |
+ |
} |
|
200 |
+ |
|
|
201 |
+ |
@Override |
190 |
202 |
|
public void updateFilter( BoAccessorFilter pFilter, BoAccessorFilterType pFilterType, String pAttributeName, String pValue ) |
191 |
203 |
|
{ |
192 |
204 |
|
pFilter.filterValueChanged( pFilterType, pAttributeName, pValue ); |