Skip to content

Commit aee6ce8

Browse files
authored
Merge pull request #40 from GwtMaterialDesign/release_2.0
Release 2.0-rc2
2 parents f78f279 + 65697ad commit aee6ce8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+638
-241
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ before_install:
2222
- mvn install -DskipTests=true -DdryRun=true
2323
- cd ..
2424
# install the gwt-material-table library before we build the demo
25-
- git clone -b master https://github.com/GwtMaterialDesign/gwt-material-table.git
25+
- git clone -b release_1.0 https://github.com/GwtMaterialDesign/gwt-material-table.git
2626
- cd gwt-material-table
2727
- mvn install -DskipTests=true -DdryRun=true
2828
- cd ..

.utility/update_demo_site.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -ev
3-
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
3+
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "release_2.0" ]; then
44

55
if [[ -z "$GH_TOKEN" ]]; then
66
echo -e "GH_TOKEN is not set"
@@ -24,23 +24,23 @@ git clone --quiet --branch=gh-pages https://[email protected]/GwtMaterialDesi
2424
cd gh-pages
2525

2626
# remove the GwtMaterialDemo directories from git.
27-
if [[ -d ./gwtmaterialdemo ]]; then
28-
git rm -rf ./gwtmaterialdemo
27+
if [[ -d ./snapshot/gwtmaterialdemo ]]; then
28+
git rm -rf ./snapshot/gwtmaterialdemo
2929
fi
30-
if [[ -f ./index.html ]]; then
31-
git rm -rf ./index.html
30+
if [[ -f ./snapshot/index.html ]]; then
31+
git rm -rf ./snapshot/index.html
3232
fi
33-
if [[ -d ./META-INF ]]; then
34-
git rm -rf ./META-INF
33+
if [[ -d ./snapshot/META-INF ]]; then
34+
git rm -rf ./snapshot/META-INF
3535
fi
36-
if [[ -d ./WEB-INF ]]; then
37-
git rm -rf ./WEB-INF
36+
if [[ -d ./snapshot/WEB-INF ]]; then
37+
git rm -rf ./snapshot/WEB-INF
3838
fi
3939

40-
# copy the new GwtMaterialDemo the 2.0-SNAPSHOT dir.
41-
unzip -u $TRAVIS_BUILD_DIR/target/gwt-material-demo-*.war -d ./
42-
rm -rf ./META-INF
43-
rm -rf ./WEB-INF
40+
# copy the new GwtMaterialDemo the snapshot dir.
41+
unzip -u $TRAVIS_BUILD_DIR/target/gwt-material-demo-*.war -d ./snapshot/
42+
rm -rf ./snapshot/META-INF
43+
rm -rf ./snapshot/WEB-INF
4444

4545
git add -f .
4646
git commit -m "Auto-push demo to gh-pages successful. (Travis build: $TRAVIS_BUILD_NUMBER)"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
#gwt-material-demo [![Build Status](https://travis-ci.org/GwtMaterialDesign/gwt-material-demo.svg?branch=master)](https://travis-ci.org/GwtMaterialDesign/gwt-material-demo)
33
Demo application to show the features of the [gwt-material](https://github.com/GwtMaterialDesign/gwt-material) library.
44

5-
### Release 2.0-rc1 Demo
5+
### Release 2.0-rc2 Demo
66
[http://gwtmaterialdesign.github.io/gwt-material-demo](http://gwtmaterialdesign.github.io/gwt-material-demo)
77
```xml
88
<dependency>
99
<groupId>com.github.gwtmaterialdesign</groupId>
1010
<artifactId>gwt-material-demo</artifactId>
11-
<version>2.0-rc1</version>
11+
<version>2.0-rc2</version>
1212
</dependency>
1313
```
1414

pom.xml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<parent>
55
<artifactId>gwt-material-parent</artifactId>
66
<groupId>com.github.gwtmaterialdesign</groupId>
7-
<version>2.0-rc1</version>
7+
<version>2.0-rc2</version>
88
</parent>
99

1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>gwt-material-demo</artifactId>
1313
<packaging>war</packaging>
14-
<version>2.0-rc1</version>
14+
<version>2.0-rc2</version>
1515
<name>Gwt Material Demo</name>
1616
<description>Showcase for gwt-material</description>
1717

@@ -34,8 +34,8 @@
3434
<gwt.version>2.8.0</gwt.version>
3535
<gwtp.version>1.5.3</gwtp.version>
3636
<gin.version>2.1.2</gin.version>
37-
<gwt-material.version>2.0-rc1</gwt-material.version>
38-
<gwt-material-table.version>1.0-rc1</gwt-material-table.version>
37+
<gwt-material.version>2.0-rc2</gwt-material.version>
38+
<gwt-material-table.version>1.0-rc2</gwt-material-table.version>
3939

4040
<gwt.style>PRETTY</gwt.style>
4141

@@ -223,19 +223,14 @@
223223

224224
<repositories>
225225
<repository>
226-
<id>snapshots-repo</id>
227-
<url>https://oss.sonatype.org/content/repositories/google-snapshots</url>
228-
<releases>
229-
<enabled>false</enabled>
230-
</releases>
231-
<snapshots>
232-
<enabled>true</enabled>
233-
</snapshots>
226+
<id>central</id>
227+
<name>Central Repository</name>
228+
<url>https://repo.maven.apache.org/maven2</url>
234229
</repository>
235230
<repository>
236-
<id>jboss-public-repository-group</id>
237-
<name>JBoss Public Maven Repository Group</name>
238-
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
231+
<id>sonatype-nexus-snapshot</id>
232+
<name>Sonatype Nexus snapshot repository</name>
233+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
239234
</repository>
240235
</repositories>
241236

src/main/java/gwt/material/design/demo/client/application/addins/AddinsModule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import gwt.material.design.demo.client.application.addins.iconmorph.IconMorphModule;
3737
import gwt.material.design.demo.client.application.addins.masonry.MasonryModule;
3838
import gwt.material.design.demo.client.application.addins.menubar.MenuBarModule;
39+
import gwt.material.design.demo.client.application.addins.overlay.OverlayModule;
3940
import gwt.material.design.demo.client.application.addins.pathanimator.PathAnimatorModule;
4041
import gwt.material.design.demo.client.application.addins.rating.RatingModule;
4142
import gwt.material.design.demo.client.application.addins.richeditor.RichEditorModule;
@@ -81,5 +82,6 @@ protected void configure() {
8182
install(new RatingModule());
8283
install(new ComboBoxModule());
8384
install(new DataTableModule());
85+
install(new OverlayModule());
8486
}
8587
}

src/main/java/gwt/material/design/demo/client/application/addins/autocomplete/AutoCompleteView.ui.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<m:MaterialTitle title="Autocomplete" description="Use GWT Autocomplete to search for matches from local or remote data sources. We used MultiWordSuggestOracle to populate the list to be added on the autocomplete values"/>
4141
<m:MaterialRow>
4242
<m:MaterialColumn grid="s12 m12 l6">
43-
<ma:autocomplete.MaterialAutoComplete ui:field="acList" placeholder="Contacts" />
43+
<ma:autocomplete.MaterialAutoComplete ui:field="acList" placeholder="Contacts" grid="s12"/>
4444
</m:MaterialColumn>
4545
</m:MaterialRow>
4646

@@ -53,7 +53,7 @@
5353
<p>To disable , add enabled="false" parameter on the autocomplete widget</p>
5454
</blockquote>
5555

56-
<m:MaterialButton ui:field="btnGetAll" text="Get All States" waves="LIGHT" backgroundColor="BLUE"/>
56+
<m:MaterialButton ui:field="btnGetAll" text="Get All States" waves="LIGHT"/>
5757
<m:MaterialButton ui:field="btnClear" text="Clear" waves="DEFAULT" textColor="BLACK" backgroundColor="WHITE"/>
5858

5959
<m.demo:PrettyPre addStyleNames="lang-java">
@@ -119,7 +119,7 @@
119119
<m:MaterialTitle title="Type TEXT" description="Type TEXT is just an alternative for combo box component."/>
120120
<m:MaterialRow>
121121
<m:MaterialColumn grid="s12 m12 l6">
122-
<ma:autocomplete.MaterialAutoComplete ui:field="acListType" type="TEXT" limit="1" placeholder="Contacts" />
122+
<ma:autocomplete.MaterialAutoComplete ui:field="acListType" type="TEXT" limit="1" placeholder="Contacts" grid="s12"/>
123123
</m:MaterialColumn>
124124
</m:MaterialRow>
125125
<demo:PrettyPre addStyleNames="lang-xml">
@@ -131,7 +131,7 @@
131131
<m:MaterialTitle title="Limiting Items" description="You can limit the autocomplete items by adding limit='2' attribute."/>
132132
<m:MaterialRow>
133133
<m:MaterialColumn grid="s12 m12 l6">
134-
<ma:autocomplete.MaterialAutoComplete ui:field="acListLimit" limit="3" placeholder="Contacts" />
134+
<ma:autocomplete.MaterialAutoComplete ui:field="acListLimit" limit="3" placeholder="Contacts" grid="s12"/>
135135
</m:MaterialColumn>
136136
</m:MaterialRow>
137137
<demo:PrettyPre addStyleNames="lang-xml">
@@ -145,7 +145,7 @@
145145
<m:MaterialModal ui:field="modal">
146146
<m:MaterialModalContent>
147147
<m:MaterialTitle title="Select contacts" description="Some description here..."/>
148-
<ma:autocomplete.MaterialAutoComplete ui:field="acModal" placeholder="Contacts"/>
148+
<ma:autocomplete.MaterialAutoComplete ui:field="acModal" placeholder="Contacts" grid="s12"/>
149149
</m:MaterialModalContent>
150150
<m:MaterialModalFooter textAlign="RIGHT">
151151
<m:MaterialButton ui:field="btnClose" text="Close" type="FLAT" textColor="BLACK" waves="DEFAULT"/>

src/main/java/gwt/material/design/demo/client/application/addins/fileuploader/FileUploaderView.ui.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
<p><b>Drag End</b> - Dragging has ended.</p>
124124
<p><b>Drag Enter</b> - The user dragged a file onto the Dropzone.</p>
125125
<p><b>Drag Over</b> - The user is dragging a file over the Dropzone.</p>
126-
<p><b>Drag Leave</b> - The user is dragging a file over the Dropzone.</p>
126+
<p><b>Drag Leave</b> - The user dragged a file out of the Dropzone.</p>
127127
<p><b>Added File &lt;UploadFile></b> - When a file is added to the list.</p>
128128
<p><b>Removed File &lt;UploadFile></b> - Called whenever a file is removed from the list. You can listen to this and delete the file from your server if you want to.</p>
129129
<p><b>Error &lt;UploadFile></b> - An error occured. Receives the errorMessage as second parameter and if the error was due to the XMLHttpRequest the xhr object as third.</p>

src/main/java/gwt/material/design/demo/client/application/addins/masonry/MasonryView.ui.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898

9999
<m:MaterialRow addStyleNames="code">
100100
<m:MaterialTitle title="Origin Left" description="By default originLeft is set to true, you can rearrange the blocks into right by setting it to false." />
101-
<ma:masonry.MaterialMasonry grid="l6 s12 m12" originLeft="false">
101+
<ma:masonry.MaterialMasonry grid="l12 s12 m12" originLeft="false">
102102
<m:MaterialColumn grid="l2 s12 m6" backgroundColor="BLUE_LIGHTEN_1" height="200px" waves="DEFAULT" padding="0"/>
103103
<m:MaterialColumn grid="l3 s12 m6" backgroundColor="GREY_LIGHTEN_2" height="400px" waves="DEFAULT" padding="0"/>
104104
<m:MaterialColumn grid="l3 s12 m6" backgroundColor="YELLOW_LIGHTEN_3" height="200px" waves="DEFAULT" padding="0"/>
@@ -118,7 +118,7 @@
118118

119119
<m:MaterialRow addStyleNames="code">
120120
<m:MaterialTitle title="Origin Top" description="By default originLeft is set to false, you can rearrange the blocks into bottom by setting it to false." />
121-
<ma:masonry.MaterialMasonry grid="l6 s12 m12" originTop="false">
121+
<ma:masonry.MaterialMasonry grid="l12 s12 m12" originTop="false">
122122
<m:MaterialColumn grid="l2 s12 m6" backgroundColor="BLUE_LIGHTEN_1" height="200px" waves="DEFAULT" padding="0"/>
123123
<m:MaterialColumn grid="l3 s12 m6" backgroundColor="GREY_LIGHTEN_2" height="400px" waves="DEFAULT" padding="0"/>
124124
<m:MaterialColumn grid="l3 s12 m6" backgroundColor="YELLOW_LIGHTEN_3" height="200px" waves="DEFAULT" padding="0"/>
@@ -138,7 +138,7 @@
138138

139139
<m:MaterialRow addStyleNames="code">
140140
<m:MaterialTitle title="Transition Duration" description="You can set how fast the transition of masonry by settung it's duration, if set to 0 then no transition will be applied." />
141-
<ma:masonry.MaterialMasonry grid="l6 s12 m12" transitionDuration="0">
141+
<ma:masonry.MaterialMasonry grid="l12 s12 m12" transitionDuration="0">
142142
<m:MaterialColumn grid="l2 s12 m6" backgroundColor="BLUE_LIGHTEN_1" height="200px" waves="DEFAULT" padding="0"/>
143143
<m:MaterialColumn grid="l3 s12 m6" backgroundColor="GREY_LIGHTEN_2" height="400px" waves="DEFAULT" padding="0"/>
144144
<m:MaterialColumn grid="l3 s12 m6" backgroundColor="YELLOW_LIGHTEN_3" height="200px" waves="DEFAULT" padding="0"/>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package gwt.material.design.demo.client.application.addins.overlay;
2+
3+
/*
4+
* #%L
5+
* GwtMaterial
6+
* %%
7+
* Copyright (C) 2015 - 2016 GwtMaterialDesign
8+
* %%
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
* #L%
21+
*/
22+
23+
24+
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
25+
26+
public class OverlayModule extends AbstractPresenterModule {
27+
@Override
28+
protected void configure() {
29+
bindPresenter(OverlayPresenter.class, OverlayPresenter.MyView.class, OverlayView.class, OverlayPresenter.MyProxy.class);
30+
}
31+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
package gwt.material.design.demo.client.application.addins.overlay;
2+
3+
/*
4+
* #%L
5+
* GwtMaterial
6+
* %%
7+
* Copyright (C) 2015 - 2016 GwtMaterialDesign
8+
* %%
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
* #L%
21+
*/
22+
23+
24+
import com.google.inject.Inject;
25+
import com.google.web.bindery.event.shared.EventBus;
26+
import com.gwtplatform.mvp.client.Presenter;
27+
import com.gwtplatform.mvp.client.View;
28+
import com.gwtplatform.mvp.client.annotations.NameToken;
29+
import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
30+
import com.gwtplatform.mvp.client.presenter.slots.NestedSlot;
31+
import com.gwtplatform.mvp.client.proxy.ProxyPlace;
32+
import gwt.material.design.demo.client.application.ApplicationPresenter;
33+
import gwt.material.design.demo.client.event.SetPageTitleEvent;
34+
import gwt.material.design.demo.client.place.NameTokens;
35+
36+
public class OverlayPresenter extends Presenter<OverlayPresenter.MyView, OverlayPresenter.MyProxy> {
37+
interface MyView extends View {
38+
}
39+
40+
@NameToken(NameTokens.overlay)
41+
@ProxyCodeSplit
42+
interface MyProxy extends ProxyPlace<OverlayPresenter> {
43+
}
44+
45+
@Inject
46+
OverlayPresenter(
47+
EventBus eventBus,
48+
MyView view,
49+
MyProxy proxy) {
50+
super(eventBus, view, proxy, ApplicationPresenter.SLOT_MAIN);
51+
52+
}
53+
54+
@Override
55+
protected void onReveal() {
56+
super.onReveal();
57+
SetPageTitleEvent.fire("Overlay", "Provides a meaningful transition of source widget to popup or overlay panel.", "addins/scrollfire/OverlayView", this);
58+
}
59+
60+
}

0 commit comments

Comments
 (0)