litesoft
@ 955
litesoft / trunk / GWT_Sandbox / Prioritizer / src / org / litesoft / prioritizer / client / ui / views / stories / ReprioritizeFactory.java
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 |
package org.litesoft.prioritizer.client.ui.views.stories; import org.litesoft.GWT.client.view.*; import org.litesoft.bo.views.*; import org.litesoft.prioritizer.client.*; import org.litesoft.uispecification.*; public class ReprioritizeFactory extends ScreenViewFactory { private static final String SECTION = ViewDefs.HOME_SECTION_STORIES; private static final ViewDef VIEW_DEF = ViewDefs.REPRIORITIZE_STORIES; public ReprioritizeFactory() { super( VIEW_DEF ); UriFragmentIdInteger.FACTORY.register(); } @Override public ScreenView createScreen( UriFragmentIdParams pParams ) { return new Reprioritize( SECTION, VIEW_DEF, decodeParams( pParams ) ); } protected static Integer decodeParams( UriFragmentIdParams pParams ) { return UriFragmentIdInteger.decode( pParams ); } public static UriFragmentIdParams encodeParams( Integer pTopRowOffset ) { return UriFragmentIdInteger.encode( pTopRowOffset ); } } |