litesoft
Diff Revisions
947
vs
948
for /trunk/Java/DATT/src/org/litesoft/datt/client/ui/views/stories/InitialPrioritizing.java
|
@@ -1,51 +1,42 @@ |
1 |
1 |
|
package org.litesoft.datt.client.ui.views.stories; |
2 |
2 |
|
|
3 |
|
- |
import java.util.*; |
4 |
|
- |
|
5 |
3 |
|
import org.litesoft.bo.views.*; |
6 |
4 |
|
import org.litesoft.core.util.*; |
7 |
5 |
|
import org.litesoft.datt.client.boviews.*; |
8 |
6 |
|
import org.litesoft.uispecification.*; |
9 |
7 |
|
|
10 |
|
- |
public class InitialPrioritizing extends AbstractPrioritizeScreenView |
11 |
|
- |
{ |
12 |
|
- |
public InitialPrioritizing( String pSection, ViewDef pViewDef, Integer pTopRowOffset ) |
13 |
|
- |
{ |
|
8 |
+ |
import java.util.*; |
|
9 |
+ |
|
|
10 |
+ |
public class InitialPrioritizing extends AbstractPrioritizeScreenView { |
|
11 |
+ |
public InitialPrioritizing( String pSection, ViewDef pViewDef, Integer pTopRowOffset ) { |
14 |
12 |
|
super( pSection, pViewDef, "Initially Prioritize", false, new TableDef(), pTopRowOffset ); |
15 |
13 |
|
} |
16 |
14 |
|
|
17 |
15 |
|
@Override |
18 |
|
- |
protected boolean betweenable( Set<StoryView> pSelectedValues ) |
19 |
|
- |
{ |
|
16 |
+ |
protected boolean betweenable( Set<StoryView> pSelectedValues ) { |
20 |
17 |
|
return true; |
21 |
18 |
|
} |
22 |
19 |
|
|
23 |
|
- |
protected void fetchRows() |
24 |
|
- |
{ |
|
20 |
+ |
protected void fetchRows() { |
25 |
21 |
|
mDP.requestAllRowsForInitialPrioritizing( createFetchRowsCallBack() ); |
26 |
22 |
|
} |
27 |
23 |
|
|
28 |
|
- |
protected void fetchTargetBetweenRows( final DataAvailableCallBack<StoryView> pCallBack ) |
29 |
|
- |
{ |
30 |
|
- |
mDP.requestAllRowsForReprioritizing( new FetchRowsDataProviderCallBack<StoryView>() |
31 |
|
- |
{ |
|
24 |
+ |
protected void fetchTargetBetweenRows( final DataAvailableCallBack<StoryView> pCallBack ) { |
|
25 |
+ |
mDP.requestAllRowsForReprioritizing( new FetchRowsDataProviderCallBack<StoryView>() { |
32 |
26 |
|
@Override |
33 |
|
- |
public void success( ImmutableArrayList<StoryView> pRows ) |
34 |
|
- |
{ |
|
27 |
+ |
public void success( ImmutableArrayList<StoryView> pRows ) { |
35 |
28 |
|
pCallBack.dataAvailable( pRows ); |
36 |
29 |
|
} |
37 |
30 |
|
|
38 |
31 |
|
@Override |
39 |
|
- |
public void tooMany( long pCount ) |
40 |
|
- |
{ |
|
32 |
+ |
public void tooMany( long pCount ) { |
41 |
33 |
|
systemError( "System Error: Should not happen", // |
42 |
34 |
|
"Found " + pCount + " Target Prioritized Rows.", // |
43 |
35 |
|
"This is more than the application is willing to display." ); |
44 |
36 |
|
} |
45 |
37 |
|
|
46 |
38 |
|
@Override |
47 |
|
- |
public void error( String pError ) |
48 |
|
- |
{ |
|
39 |
+ |
public void error( String pError ) { |
49 |
40 |
|
systemError( "Requesting Target Prioritized Rows - Errored", // |
50 |
41 |
|
"", // |
51 |
42 |
|
"Error: " + pError ); |