litesoft
Diff Revisions
948
vs
950
for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/client/ui/views/stories/ReprioritizeFactory.java
|
@@ -1,30 +1,30 @@ |
1 |
|
- |
package org.litesoft.prioritizer.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.prioritizer.client.*; |
7 |
|
- |
import org.litesoft.uispecification.*; |
8 |
|
- |
|
9 |
|
- |
public class ReprioritizeFactory extends ScreenViewFactory { |
10 |
|
- |
private static final String SECTION = ViewDefs.HOME_SECTION_STORIES; |
11 |
|
- |
private static final ViewDef VIEW_DEF = ViewDefs.REPRIORITIZE_STORIES; |
12 |
|
- |
|
13 |
|
- |
public ReprioritizeFactory() { |
14 |
|
- |
super( VIEW_DEF ); |
15 |
|
- |
UriFragmentIdInteger.FACTORY.register(); |
16 |
|
- |
} |
17 |
|
- |
|
18 |
|
- |
@Override |
19 |
|
- |
public ScreenView createScreen( ClientContext pClientContext, UriFragmentIdParams pParams ) { |
20 |
|
- |
return new Reprioritize( 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.prioritizer.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.prioritizer.client.*; |
|
7 |
+ |
import org.litesoft.uispecification.*; |
|
8 |
+ |
|
|
9 |
+ |
public class ReprioritizeFactory extends ScreenViewFactory { |
|
10 |
+ |
private static final String SECTION = ViewDefs.HOME_SECTION_STORIES; |
|
11 |
+ |
private static final ViewDef VIEW_DEF = ViewDefs.REPRIORITIZE_STORIES; |
|
12 |
+ |
|
|
13 |
+ |
public ReprioritizeFactory() { |
|
14 |
+ |
super( VIEW_DEF ); |
|
15 |
+ |
UriFragmentIdInteger.FACTORY.register(); |
|
16 |
+ |
} |
|
17 |
+ |
|
|
18 |
+ |
@Override |
|
19 |
+ |
public ScreenView createScreen( ClientContext pClientContext, UriFragmentIdParams pParams ) { |
|
20 |
+ |
return new Reprioritize( 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 |
+ |
} |