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