Skip to content

Commit 8c6e411

Browse files
committed
Banner - License headers
1 parent 4b5796b commit 8c6e411

File tree

14 files changed

+116
-29
lines changed

14 files changed

+116
-29
lines changed

src/main/java/gwt/material/design/addins/client/avatar/MaterialAvatarDebugClientBundle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/gwt/material/design/addins/client/banner/MaterialBanner.java

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2021 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package gwt.material.design.addins.client.banner;
221

322
import com.google.gwt.dom.client.Document;
@@ -6,11 +25,9 @@
625
import com.google.gwt.event.logical.shared.OpenEvent;
726
import com.google.gwt.event.logical.shared.OpenHandler;
827
import com.google.gwt.event.shared.HandlerRegistration;
9-
import com.google.gwt.user.client.ui.Panel;
1028
import com.google.gwt.user.client.ui.Widget;
1129
import gwt.material.design.addins.client.MaterialAddins;
1230
import gwt.material.design.addins.client.banner.event.HasBannerHandlers;
13-
import gwt.material.design.addins.client.bubble.MaterialBubbleDarkTheme;
1431
import gwt.material.design.addins.client.dark.AddinsDarkThemeReloader;
1532
import gwt.material.design.client.MaterialDesignBase;
1633
import gwt.material.design.client.base.HasOpenClose;
@@ -64,7 +81,7 @@ protected void onLoad() {
6481
add(messageLabel);
6582
add(actions);
6683

67-
calculateTranslateY();
84+
6885
updateTransition();
6986

7087
AddinsDarkThemeReloader.get().reload(MaterialBannerDarkTheme.class);
@@ -83,7 +100,7 @@ public void add(Widget child) {
83100
public void open() {
84101
getOpenMixin().setOn(true);
85102
OpenEvent.fire(this, getMessage());
86-
pushTargetContainer(translateY);
103+
calculateTranslateY();
87104
}
88105

89106
@Override
@@ -101,6 +118,7 @@ public boolean isOpen() {
101118
protected void calculateTranslateY() {
102119
translateY = $(getElement()).outerHeight(true);
103120
setTransform("translateY(" + -translateY + "px)");
121+
pushTargetContainer(translateY);
104122
}
105123

106124
protected void pushTargetContainer(int translateY) {
@@ -161,7 +179,7 @@ public Widget getTargetContainer() {
161179
return targetContainer;
162180
}
163181

164-
public void setTargetContainer(MaterialWidget targetContainer) {
182+
public void setTargetContainer(Widget targetContainer) {
165183
this.targetContainer = targetContainer;
166184
}
167185

src/main/java/gwt/material/design/addins/client/banner/MaterialBannerActions.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2021 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package gwt.material.design.addins.client.banner;
221

322
import gwt.material.design.client.ui.MaterialPanel;

src/main/java/gwt/material/design/addins/client/banner/MaterialBannerDarkTheme.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/gwt/material/design/addins/client/banner/MaterialBannerDebugClientBundle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/gwt/material/design/addins/client/banner/event/HasBannerHandlers.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2021 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package gwt.material.design.addins.client.banner.event;
221

322
import com.google.gwt.event.logical.shared.HasCloseHandlers;

src/main/java/gwt/material/design/addins/client/combobox/MaterialComboBox.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/gwt/material/design/addins/client/inputmask/MaterialDateInputMask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/gwt/material/design/addins/client/inputmask/base/DateInputParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/gwt/material/design/addins/client/md5/Md5.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2021 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package gwt.material.design.addins.client.md5;
221

322
import jsinterop.annotations.JsMethod;

0 commit comments

Comments
 (0)