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
37
38
39
40
41
42
43
44
45
46
package org.litesoft.prioritizer.client.ui.views.stories;

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

import java.util.*;

public class InitialPrioritizing extends AbstractPrioritizeScreenView {
    public InitialPrioritizing( String pSection, ViewDef pViewDef, Integer pTopRowOffset ) {
        super( pSection, pViewDef, "Initially Prioritize", false, new TableDef(), pTopRowOffset );
    }

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

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

    protected void fetchTargetBetweenRows( final DataAvailableCallBack<StoryView> pCallBack ) {
        mDP.requestAllRowsForReprioritizing( new FetchRowsDataProviderCallBack<StoryView>() {
            @Override
            public void success( ImmutableArrayList<StoryView> pRows ) {
                pCallBack.dataAvailable( pRows );
            }

            @Override
            public void tooMany( long pCount ) {
                systemError( "System Error: Should not happen", //
                             "Found " + pCount + " Target Prioritized Rows.", //
                             "This is more than the application is willing to display." );
            }

            @Override
            public void error( String pError ) {
                systemError( "Requesting Target Prioritized Rows - Errored", //
                             "", //
                             "Error: " + pError );
            }
        } );
    }
}

Commits for litesoft/trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/client/ui/views/stories/InitialPrioritizing.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