litesoft
@ 948
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.datt.client.ui.views.stories; import org.litesoft.bo.views.*; import org.litesoft.core.util.*; import org.litesoft.datt.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 ); } } ); } } |