Subversion Repository Public Repository

litesoft

Diff Revisions 717 vs 718 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/pavsupport/PlaceActivityManager.java

Diff revisions: vs.
  @@ -86,15 +86,24 @@
86 86 }
87 87
88 88 /**
89 + * @return true if the call to goBack() is expected to succeed..
90 + */
91 + @Override
92 + public boolean backable()
93 + {
94 + return mHistorian.backable();
95 + }
96 +
97 + /**
89 98 * Request a change to the previous place on the browser's history stack.
90 - * If there is no previous place on the browser's history stack, the behavior
91 - * is unspecified. Otherwise, the location changes and a
99 + * If there is no previous place on the browser's history stack, false will
100 + * be returned. Otherwise, the location changes and a
92 101 * {@link PlaceChangeEvent} is posted announcing the previous place.
93 102 */
94 103 @Override
95 - public void goBack()
104 + public boolean goBack()
96 105 {
97 - mHistorian.back();
106 + return mHistorian.back();
98 107 }
99 108
100 109 /**
  @@ -225,9 +234,15 @@
225 234 }
226 235
227 236 @Override
228 - public void goBack()
237 + public boolean backable()
238 + {
239 + return PlaceActivityManager.this.backable();
240 + }
241 +
242 + @Override
243 + public boolean goBack()
229 244 {
230 - PlaceActivityManager.this.goBack();
245 + return PlaceActivityManager.this.goBack();
231 246 }
232 247
233 248 @Override