Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/DATT/src/org/litesoft/datt/client/ui/views/stories/InitialPrioritizingFactory.java

Diff revisions: vs.
  @@ -1,30 +1,30 @@
1 - package org.litesoft.datt.client.ui.views.stories;
2 -
3 - import org.litesoft.GWT.client.view.*;
4 - import org.litesoft.bo.views.*;
5 - import org.litesoft.core.*;
6 - import org.litesoft.datt.client.*;
7 - import org.litesoft.uispecification.*;
8 -
9 - public class InitialPrioritizingFactory extends ScreenViewFactory {
10 - private static final String SECTION = ViewDefs.HOME_SECTION_STORIES;
11 - private static final ViewDef VIEW_DEF = ViewDefs.INITIAL_PRIORITIZING_STORIES;
12 -
13 - public InitialPrioritizingFactory() {
14 - super( VIEW_DEF );
15 - UriFragmentIdInteger.FACTORY.register();
16 - }
17 -
18 - @Override
19 - public ScreenView createScreen( ClientContext pClientContext, UriFragmentIdParams pParams ) {
20 - return new InitialPrioritizing( SECTION, VIEW_DEF, decodeParams( pParams ) );
21 - }
22 -
23 - protected static Integer decodeParams( UriFragmentIdParams pParams ) {
24 - return UriFragmentIdInteger.decode( pParams );
25 - }
26 -
27 - public static UriFragmentIdParams encodeParams( Integer pTopRowOffset ) {
28 - return UriFragmentIdInteger.encode( pTopRowOffset );
29 - }
30 - }
1 + package org.litesoft.datt.client.ui.views.stories;
2 +
3 + import org.litesoft.GWT.client.view.*;
4 + import org.litesoft.bo.views.*;
5 + import org.litesoft.core.*;
6 + import org.litesoft.datt.client.*;
7 + import org.litesoft.uispecification.*;
8 +
9 + public class InitialPrioritizingFactory extends ScreenViewFactory {
10 + private static final String SECTION = ViewDefs.HOME_SECTION_STORIES;
11 + private static final ViewDef VIEW_DEF = ViewDefs.INITIAL_PRIORITIZING_STORIES;
12 +
13 + public InitialPrioritizingFactory() {
14 + super( VIEW_DEF );
15 + UriFragmentIdInteger.FACTORY.register();
16 + }
17 +
18 + @Override
19 + public ScreenView createScreen( ClientContext pClientContext, UriFragmentIdParams pParams ) {
20 + return new InitialPrioritizing( SECTION, VIEW_DEF, decodeParams( pParams ) );
21 + }
22 +
23 + protected static Integer decodeParams( UriFragmentIdParams pParams ) {
24 + return UriFragmentIdInteger.decode( pParams );
25 + }
26 +
27 + public static UriFragmentIdParams encodeParams( Integer pTopRowOffset ) {
28 + return UriFragmentIdInteger.encode( pTopRowOffset );
29 + }
30 + }