Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/client/ui/views/stories/Reprioritize.java

Diff revisions: vs.
  @@ -1,36 +1,36 @@
1 - package org.litesoft.prioritizer.client.ui.views.stories;
2 -
3 - import org.litesoft.core.util.*;
4 - import org.litesoft.prioritizer.client.boviews.*;
5 - import org.litesoft.uispecification.*;
6 -
7 - import java.util.*;
8 -
9 - public class Reprioritize extends AbstractPrioritizeScreenView {
10 - public Reprioritize( String pSection, ViewDef pViewDef, Integer pTopRowOffset ) {
11 - super( pSection, pViewDef, "Reprioritize", true, new MyExtendedTableDef(), pTopRowOffset );
12 - }
13 -
14 - @Override
15 - protected boolean betweenable( Set<StoryView> pSelectedValues ) {
16 - return pSelectedValues.size() < mTableModel.size();
17 - }
18 -
19 - protected void fetchRows() {
20 - mDP.requestAllRowsForReprioritizing( createFetchRowsCallBack() );
21 - }
22 -
23 - protected void fetchTargetBetweenRows( DataAvailableCallBack<StoryView> pCallBack ) {
24 - pCallBack.dataAvailable( mTableModel );
25 - }
26 -
27 - private static class MyExtendedTableDef extends TableDef {
28 - public MyExtendedTableDef() {
29 - StoryViewMetaData zMD = StoryViewMetaData.getInstance();
30 -
31 - addColumn( zMD.getBoAttribute( aPriorityToDisplay ), "Priority" ); // .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 ) );
34 - }
35 - }
36 - }
1 + package org.litesoft.prioritizer.client.ui.views.stories;
2 +
3 + import org.litesoft.core.util.*;
4 + import org.litesoft.prioritizer.client.boviews.*;
5 + import org.litesoft.uispecification.*;
6 +
7 + import java.util.*;
8 +
9 + public class Reprioritize extends AbstractPrioritizeScreenView {
10 + public Reprioritize( String pSection, ViewDef pViewDef, Integer pTopRowOffset ) {
11 + super( pSection, pViewDef, "Reprioritize", true, new MyExtendedTableDef(), pTopRowOffset );
12 + }
13 +
14 + @Override
15 + protected boolean betweenable( Set<StoryView> pSelectedValues ) {
16 + return pSelectedValues.size() < mTableModel.size();
17 + }
18 +
19 + protected void fetchRows() {
20 + mDP.requestAllRowsForReprioritizing( createFetchRowsCallBack() );
21 + }
22 +
23 + protected void fetchTargetBetweenRows( DataAvailableCallBack<StoryView> pCallBack ) {
24 + pCallBack.dataAvailable( mTableModel );
25 + }
26 +
27 + private static class MyExtendedTableDef extends TableDef {
28 + public MyExtendedTableDef() {
29 + StoryViewMetaData zMD = StoryViewMetaData.getInstance();
30 +
31 + addColumn( zMD.getBoAttribute( aPriorityToDisplay ), "Priority" ); // .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 ) );
34 + }
35 + }
36 + }