litesoft
Diff Revisions
947
vs
948
for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/client/ui/views/stories/Reprioritize.java
|
@@ -1,42 +1,36 @@ |
1 |
1 |
|
package org.litesoft.prioritizer.client.ui.views.stories; |
2 |
2 |
|
|
3 |
|
- |
import java.util.*; |
4 |
|
- |
|
5 |
3 |
|
import org.litesoft.core.util.*; |
6 |
4 |
|
import org.litesoft.prioritizer.client.boviews.*; |
7 |
5 |
|
import org.litesoft.uispecification.*; |
8 |
6 |
|
|
9 |
|
- |
public class Reprioritize extends AbstractPrioritizeScreenView |
10 |
|
- |
{ |
11 |
|
- |
public Reprioritize( String pSection, ViewDef pViewDef, Integer pTopRowOffset ) |
12 |
|
- |
{ |
|
7 |
+ |
import java.util.*; |
|
8 |
+ |
|
|
9 |
+ |
public class Reprioritize extends AbstractPrioritizeScreenView { |
|
10 |
+ |
public Reprioritize( String pSection, ViewDef pViewDef, Integer pTopRowOffset ) { |
13 |
11 |
|
super( pSection, pViewDef, "Reprioritize", true, new MyExtendedTableDef(), pTopRowOffset ); |
14 |
12 |
|
} |
15 |
13 |
|
|
16 |
14 |
|
@Override |
17 |
|
- |
protected boolean betweenable( Set<StoryView> pSelectedValues ) |
18 |
|
- |
{ |
|
15 |
+ |
protected boolean betweenable( Set<StoryView> pSelectedValues ) { |
19 |
16 |
|
return pSelectedValues.size() < mTableModel.size(); |
20 |
17 |
|
} |
21 |
18 |
|
|
22 |
|
- |
protected void fetchRows() |
23 |
|
- |
{ |
|
19 |
+ |
protected void fetchRows() { |
24 |
20 |
|
mDP.requestAllRowsForReprioritizing( createFetchRowsCallBack() ); |
25 |
21 |
|
} |
26 |
22 |
|
|
27 |
|
- |
protected void fetchTargetBetweenRows( DataAvailableCallBack<StoryView> pCallBack ) |
28 |
|
- |
{ |
|
23 |
+ |
protected void fetchTargetBetweenRows( DataAvailableCallBack<StoryView> pCallBack ) { |
29 |
24 |
|
pCallBack.dataAvailable( mTableModel ); |
30 |
25 |
|
} |
31 |
26 |
|
|
32 |
|
- |
private static class MyExtendedTableDef extends TableDef |
33 |
|
- |
{ |
34 |
|
- |
public MyExtendedTableDef() |
35 |
|
- |
{ |
|
27 |
+ |
private static class MyExtendedTableDef extends TableDef { |
|
28 |
+ |
public MyExtendedTableDef() { |
36 |
29 |
|
StoryViewMetaData zMD = StoryViewMetaData.getInstance(); |
37 |
30 |
|
|
38 |
31 |
|
addColumn( zMD.getBoAttribute( aPriorityToDisplay ), "Priority" ); // .initialWidth( FontSizer.get( TABLE_TEXT ).EMsPlus( 20, CELL_PADDING ) ); |
39 |
|
- |
addColumn( zMD.getBoAttribute( aPriorityLastChangedBy ), "Prioritized By" ); // .initialWidth( FontSizer.get( TABLE_TEXT ).EMsPlus( 20, CELL_PADDING ) ); |
|
32 |
+ |
addColumn( zMD.getBoAttribute( aPriorityLastChangedBy ), |
|
33 |
+ |
"Prioritized By" ); // .initialWidth( FontSizer.get( TABLE_TEXT ).EMsPlus( 20, CELL_PADDING ) ); |
40 |
34 |
|
} |
41 |
35 |
|
} |
42 |
36 |
|
} |