|
@@ -5,57 +5,47 @@ |
5 |
5 |
|
import org.litesoft.core.*; |
6 |
6 |
|
import org.litesoft.uispecification.*; |
7 |
7 |
|
|
8 |
|
- |
public class ShowScreenCommand extends CommandHandlerAdaptor |
9 |
|
- |
{ |
|
8 |
+ |
public class ShowScreenCommand extends CommandHandlerAdaptor { |
10 |
9 |
|
private final ViewDef mViewDef; |
11 |
10 |
|
private final UriFragmentIdParams mParams; |
12 |
11 |
|
private final UriFragmentIdParams.ScreenParamsFactory mParamsFactory; |
13 |
12 |
|
private final TransientScreenProperties mNewScreenProperties = new TransientScreenProperties(); |
14 |
13 |
|
|
15 |
|
- |
protected ShowScreenCommand( ViewDef pViewDef, UriFragmentIdParams pParams, String pError, UriFragmentIdParams.ScreenParamsFactory pParamsFactory ) |
16 |
|
- |
{ |
|
14 |
+ |
protected ShowScreenCommand( ViewDef pViewDef, UriFragmentIdParams pParams, String pError, UriFragmentIdParams.ScreenParamsFactory pParamsFactory ) { |
17 |
15 |
|
mViewDef = pViewDef; |
18 |
16 |
|
mParams = pParams; |
19 |
17 |
|
mParamsFactory = pParamsFactory; |
20 |
18 |
|
getNewScreenProperties().ERROR.set( pError ); |
21 |
19 |
|
} |
22 |
20 |
|
|
23 |
|
- |
public ShowScreenCommand( ViewDef pViewDef, UriFragmentIdParams pParams, String pError ) |
24 |
|
- |
{ |
|
21 |
+ |
public ShowScreenCommand( ViewDef pViewDef, UriFragmentIdParams pParams, String pError ) { |
25 |
22 |
|
this( pViewDef, pParams, pError, null ); |
26 |
23 |
|
} |
27 |
24 |
|
|
28 |
|
- |
public ShowScreenCommand( ViewDef pViewDef, UriFragmentIdParams pParams ) |
29 |
|
- |
{ |
|
25 |
+ |
public ShowScreenCommand( ViewDef pViewDef, UriFragmentIdParams pParams ) { |
30 |
26 |
|
this( pViewDef, pParams, null, null ); |
31 |
27 |
|
} |
32 |
28 |
|
|
33 |
|
- |
public ShowScreenCommand( ViewDef pViewDef, String pError ) |
34 |
|
- |
{ |
|
29 |
+ |
public ShowScreenCommand( ViewDef pViewDef, String pError ) { |
35 |
30 |
|
this( pViewDef, null, pError, null ); |
36 |
31 |
|
} |
37 |
32 |
|
|
38 |
|
- |
public ShowScreenCommand( ViewDef pViewDef ) |
39 |
|
- |
{ |
|
33 |
+ |
public ShowScreenCommand( ViewDef pViewDef ) { |
40 |
34 |
|
this( pViewDef, null, null, null ); |
41 |
35 |
|
} |
42 |
36 |
|
|
43 |
|
- |
public ShowScreenCommand( ViewDef pViewDef, UriFragmentIdParams.ScreenParamsFactory pParamsFactory ) |
44 |
|
- |
{ |
|
37 |
+ |
public ShowScreenCommand( ViewDef pViewDef, UriFragmentIdParams.ScreenParamsFactory pParamsFactory ) { |
45 |
38 |
|
this( pViewDef, null, null, pParamsFactory ); |
46 |
39 |
|
} |
47 |
40 |
|
|
48 |
|
- |
public TransientScreenProperties getNewScreenProperties() |
49 |
|
- |
{ |
|
41 |
+ |
public TransientScreenProperties getNewScreenProperties() { |
50 |
42 |
|
return mNewScreenProperties; |
51 |
43 |
|
} |
52 |
44 |
|
|
53 |
45 |
|
@Override |
54 |
|
- |
public void execute() |
55 |
|
- |
{ |
|
46 |
+ |
public void execute() { |
56 |
47 |
|
UriFragmentIdParams zParams = mParams; |
57 |
|
- |
if ( (zParams == null) && (mParamsFactory != null) ) |
58 |
|
- |
{ |
|
48 |
+ |
if ( (zParams == null) && (mParamsFactory != null) ) { |
59 |
49 |
|
zParams = mParamsFactory.create( mViewDef ); |
60 |
50 |
|
} |
61 |
51 |
|
ClientContext.get().get( ScreenViewShower.class ).showScreen( mViewDef, zParams, mNewScreenProperties ); |