litesoft
Diff Revisions
728
vs
735
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/pavsupport/PlaceActivityManager.java
|
@@ -63,6 +63,11 @@ |
63 |
63 |
|
this( pPanel, null, null, null, null ); |
64 |
64 |
|
} |
65 |
65 |
|
|
|
66 |
+ |
public void add( PlaceChangeListener pPlaceChangeListener ) |
|
67 |
+ |
{ |
|
68 |
+ |
mActivityHelper.add( pPlaceChangeListener ); |
|
69 |
+ |
} |
|
70 |
+ |
|
66 |
71 |
|
/** |
67 |
72 |
|
* Go to the Current URL (current history token). |
68 |
73 |
|
* <p/> |
|
@@ -93,6 +98,7 @@ |
93 |
98 |
|
@Override |
94 |
99 |
|
public void goBack() |
95 |
100 |
|
{ |
|
101 |
+ |
mActivityHelper.placeChangeRequested( null, PlaceChangeListener.Source.Back ); |
96 |
102 |
|
mHistorian.back(); |
97 |
103 |
|
} |
98 |
104 |
|
|
|
@@ -127,6 +133,7 @@ |
127 |
133 |
|
{ |
128 |
134 |
|
return GoToPlace.CurrentActivityRejectedLeaving; // From Code, maybe the code shouldn't have allowed it! |
129 |
135 |
|
} |
|
136 |
+ |
mActivityHelper.placeChangeRequested( pNewPlace, PlaceChangeListener.Source.Forward ); |
130 |
137 |
|
mActivityHelper.clearPendingAsync(); |
131 |
138 |
|
mPendingCodePlace = pNewPlace; |
132 |
139 |
|
mHistorian.newItem( mMapper.getToken( pNewPlace ), true ); |