This repository was archived by the owner on Nov 29, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +13
-6
lines changed
src/examples/java/com/gwtplatform/samples/hplace Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 6
6
<inherits name =' com.google.gwt.user.User' />
7
7
<inherits name =" com.google.gwt.uibinder.UiBinder" />
8
8
<inherits name =" com.google.gwt.inject.Inject" />
9
+ <inherits name =" de.barop.gwt.PushState" />
9
10
10
11
<inherits name =' com.gwtplatform.dispatch.Dispatch' />
11
12
<inherits name =" com.gwtplatform.mvp.Mvp" />
Original file line number Diff line number Diff line change 30
30
import com .gwtplatform .samples .hplace .client .presenter .BreadcrumbsPresenter ;
31
31
import com .gwtplatform .samples .hplace .client .presenter .BreadcrumbsPresenter .MyView ;
32
32
33
+ import de .barop .gwt .client .ui .InlineHyperlinkPushState ;
34
+
33
35
/**
34
36
* This is the top-level view of the application. Every time another presenter
35
37
* wants to reveal itself, {@link BreadcrumbPresenterView} will add its content
@@ -71,7 +73,7 @@ public void clearBreadcrumbs(int breadcrumbSize) {
71
73
if (i > 0 ) {
72
74
breadcrumbs .add (new InlineLabel (" > " ));
73
75
}
74
- breadcrumbs .add (new InlineHyperlink ("Loading title..." ,
76
+ breadcrumbs .add (new InlineHyperlinkPushState ("Loading title..." ,
75
77
placeManager .buildRelativeHistoryToken (i + 1 )));
76
78
}
77
79
}
@@ -103,4 +105,4 @@ private void setMainContent(Widget content) {
103
105
}
104
106
}
105
107
106
- }
108
+ }
Original file line number Diff line number Diff line change 34
34
import com .gwtplatform .samples .hplace .client .presenter .ProductPresenter ;
35
35
import com .gwtplatform .samples .hplace .shared .Product ;
36
36
37
+ import de .barop .gwt .client .ui .HyperlinkPushState ;
38
+
37
39
import java .util .List ;
38
40
39
41
/**
@@ -81,7 +83,7 @@ public void setList(List<Product> products) {
81
83
for (Product product : products ) {
82
84
PlaceRequest request = new PlaceRequest (NameTokens .product ).with (
83
85
ProductPresenter .TOKEN_ID , Integer .toString (product .getId ()));
84
- productList .add (new Hyperlink (product .getName (),
86
+ productList .add (new HyperlinkPushState (product .getName (),
85
87
placeManager .buildRelativeHistoryToken (request )));
86
88
}
87
89
}
@@ -96,4 +98,4 @@ public void setMessage(String string) {
96
98
public void setTitle (String title ) {
97
99
this .title .setInnerHTML (title );
98
100
}
99
- }
101
+ }
Original file line number Diff line number Diff line change 19
19
import com .gwtplatform .dispatch .annotation .GenDispatch ;
20
20
import com .gwtplatform .dispatch .annotation .In ;
21
21
import com .gwtplatform .dispatch .annotation .Out ;
22
+ import com .gwtplatform .dispatch .shared .Action ;
22
23
23
24
/**
24
25
* This classes uses GWTP annotation processors
27
28
*
28
29
* @author Philippe Beaudoin
29
30
*/
30
- @ GenDispatch (isSecure = false )
31
+ @ GenDispatch (isSecure = false , serviceName = "/" + Action . DEFAULT_SERVICE_NAME + "GetProduct" )
31
32
public class GetProduct {
32
33
33
34
@ In (1 )
Original file line number Diff line number Diff line change 19
19
import com .gwtplatform .dispatch .annotation .GenDispatch ;
20
20
import com .gwtplatform .dispatch .annotation .In ;
21
21
import com .gwtplatform .dispatch .annotation .Out ;
22
+ import com .gwtplatform .dispatch .shared .Action ;
22
23
23
24
import java .util .ArrayList ;
24
25
29
30
*
30
31
* @author Philippe Beaudoin
31
32
*/
32
- @ GenDispatch (isSecure = false )
33
+ @ GenDispatch (isSecure = false , serviceName = "/" + Action . DEFAULT_SERVICE_NAME + "GetProductList" )
33
34
public class GetProductList {
34
35
@ In (1 )
35
36
int flags ;
You can’t perform that action at this time.
0 commit comments