Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package org.litesoft.prioritizer.client.ui.views.stories;

import org.litesoft.core.util.*;
import org.litesoft.prioritizer.client.boviews.*;
import org.litesoft.uispecification.*;

import java.util.*;

public class Reprioritize extends AbstractPrioritizeScreenView {
    public Reprioritize( String pSection, ViewDef pViewDef, Integer pTopRowOffset ) {
        super( pSection, pViewDef, "Reprioritize", true, new MyExtendedTableDef(), pTopRowOffset );
    }

    @Override
    protected boolean betweenable( Set<StoryView> pSelectedValues ) {
        return pSelectedValues.size() < mTableModel.size();
    }

    protected void fetchRows() {
        mDP.requestAllRowsForReprioritizing( createFetchRowsCallBack() );
    }

    protected void fetchTargetBetweenRows( DataAvailableCallBack<StoryView> pCallBack ) {
        pCallBack.dataAvailable( mTableModel );
    }

    private static class MyExtendedTableDef extends TableDef {
        public MyExtendedTableDef() {
            StoryViewMetaData zMD = StoryViewMetaData.getInstance();

            addColumn( zMD.getBoAttribute( aPriorityToDisplay ), "Priority" ); // .initialWidth( FontSizer.get( TABLE_TEXT ).EMsPlus( 20, CELL_PADDING ) );
            addColumn( zMD.getBoAttribute( aPriorityLastChangedBy ),
                       "Prioritized By" ); // .initialWidth( FontSizer.get( TABLE_TEXT ).EMsPlus( 20, CELL_PADDING ) );
        }
    }
}

Commits for litesoft/trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/client/ui/views/stories/Reprioritize.java

Diff revisions: vs.
Revision Author Commited Message
950 Diff Diff GeorgeS picture GeorgeS Thu 19 Jun, 2014 17:57:04 +0000

New Lines

948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

398 GeorgeS picture GeorgeS Mon 15 Aug, 2011 19:57:47 +0000