litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/pavsupport/PlaceOption.java
|
@@ -5,26 +5,22 @@ |
5 |
5 |
|
|
6 |
6 |
|
import com.google.gwt.place.shared.*; |
7 |
7 |
|
|
8 |
|
- |
public class PlaceOption extends SelectableOption |
9 |
|
- |
{ |
|
8 |
+ |
public class PlaceOption extends SelectableOption { |
10 |
9 |
|
private final PlaceChanger mPlaceChanger; |
11 |
10 |
|
private final Place mPlace; |
12 |
11 |
|
|
13 |
|
- |
public PlaceOption( PlaceChanger pPlaceChanger, String pName, boolean pSelectable, Place pPlace ) |
14 |
|
- |
{ |
|
12 |
+ |
public PlaceOption( PlaceChanger pPlaceChanger, String pName, boolean pSelectable, Place pPlace ) { |
15 |
13 |
|
super( pName, pSelectable ); |
16 |
14 |
|
mPlaceChanger = Objects.assertNotNull( "PlaceChanger", pPlaceChanger ); |
17 |
15 |
|
mPlace = Objects.assertNotNull( "Place", pPlace ); |
18 |
16 |
|
} |
19 |
17 |
|
|
20 |
|
- |
public PlaceOption( PlaceChanger pPlaceChanger, String pName, Place pPlace ) |
21 |
|
- |
{ |
|
18 |
+ |
public PlaceOption( PlaceChanger pPlaceChanger, String pName, Place pPlace ) { |
22 |
19 |
|
this( pPlaceChanger, pName, true, pPlace ); |
23 |
20 |
|
} |
24 |
21 |
|
|
25 |
22 |
|
@Override |
26 |
|
- |
public void run() |
27 |
|
- |
{ |
|
23 |
+ |
public void run() { |
28 |
24 |
|
mPlaceChanger.goForwardTo( mPlace ); |
29 |
25 |
|
} |
30 |
26 |
|
} |