Skip to content

Commit ef28791

Browse files
committed
Couple minor changes
1 parent 2b465f8 commit ef28791

4 files changed

Lines changed: 7 additions & 24 deletions

File tree

gocwebtemplate-core/gocwebtemplate-core-base/src/main/java/goc/webtemplate/BannerLink.java

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package goc.webtemplate;
22

3-
public class BannerLink {
4-
private String href;
5-
private String text;
3+
public class BannerLink extends Link{
4+
private static final long serialVersionUID = 1L;
5+
66
private boolean newWindow;
77

88
public BannerLink() {}
@@ -19,27 +19,10 @@ public BannerLink(String href, String text)
1919

2020
public BannerLink(String href, String text, boolean newWindow)
2121
{
22-
this.href = href;
23-
this.text = text;
22+
super(href, text);
2423
this.newWindow = newWindow;
2524
}
2625

27-
public String getHref() {
28-
return href;
29-
}
30-
31-
public void setHref(String href) {
32-
this.href = href;
33-
}
34-
35-
public String getText() {
36-
return text;
37-
}
38-
39-
public void setText(String text) {
40-
this.text = text;
41-
}
42-
4326
public boolean isNewWindow() {
4427
return newWindow;
4528
}

gocwebtemplate-core/gocwebtemplate-core-base/src/test/java/goc/webtemplate/component/abstractcorebeantest/RenderAppTopTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void testInfoBanner() {
3636
InfoBanner banner = new InfoBanner("Main Text", new BannerLink("google", "Link"), new BannerLink("yahoo", "Button"));
3737
sut.setInfoBanner(banner);
3838

39-
assertTrue(sut.getRenderAppTop().contains("\"infoBanner\":{\"mainHTML\":\"Main Text\",\"link\":{\"href\":\"google\",\"text\":\"Link\",\"newWindow\":false},\"button\":{\"href\":\"yahoo\",\"text\":\"Button\",\"newWindow\":false}"),
39+
assertTrue(sut.getRenderAppTop().contains("\"infoBanner\":{\"mainHTML\":\"Main Text\",\"link\":{\"newWindow\":false,\"href\":\"google\",\"text\":\"Link\"},\"button\":{\"newWindow\":false,\"href\":\"yahoo\",\"text\":\"Button\"}"),
4040
"\"RenderTop: InfoBanner not rendered as expected.\"");
4141
}
4242

gocwebtemplate-sample-jsp/src/main/webapp/samplecontents/footerlinkssamplecontent.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1>GoC Web Template Samples - Footer</h1>
2-
<p>Canada.ca is moving to a new global site footer as seen <a href="https://design.canada.ca/common-design-patterns/site-footer.html">here.</a></p>
2+
<p>Canada.ca provides a global site footer as seen <a href="https://design.canada.ca/common-design-patterns/site-footer.html">here.</a></p>
33
<p>For more information, please visit the WET footer documentation <a href="https://wet-boew.github.io/GCWeb/sites/footers/footers-en.html">here.</a></p>
44
<h2>Pre-requisite</h2>
55
<p>To override the Default GoC Web Template look &amp; feel, you will have to create a custom bean class that extends the <code class="wb-prettify">goc.webtemplate.component.jsp.BaseCoreBean</code> class, and then override the various methods made available to alter the look &amp; feel of the web page.</p>

gocwebtemplate-sample-spring/src/main/resources/samples/FooterLinksSample.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<body>
66
<section layout:fragment="content">
77
<h1>GoC Web Template Samples - Footer</h1>
8-
<p>Canada.ca is moving to a new global site footer as seen <a href="https://design.canada.ca/common-design-patterns/site-footer.html">here.</a></p>
8+
<p>Canada.ca provides a global site footer as seen <a href="https://design.canada.ca/common-design-patterns/site-footer.html">here.</a></p>
99
<p>For more information, please visit the WET footer documentation <a href="https://wet-boew.github.io/GCWeb/sites/footers/footers-en.html">here.</a></p>
1010
<h2>Pre-requisite</h2>
1111
<p>To override the Default GoC Web Template look &amp; feel, you will have to create a custom bean class that extends the <code class="wb-prettify">goc.webtemplate.component.spring.BaseCoreBean</code> class, and then override the various methods made available to alter the look &amp; feel of the web page.</p>

0 commit comments

Comments
 (0)