Skip to content

Commit de764e6

Browse files
committed
Deprecate PaperCard
1 parent 07c935a commit de764e6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/com/flowingcode/addons/applayout/PaperCard.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@
3939
* Component that renders a paper-card
4040
*
4141
* @author mlopez
42-
*
42+
* @deprecated This component will be removed in a future version.
4343
*/
4444
@SuppressWarnings("serial")
4545
@HtmlImport("bower_components/paper-card/paper-card.html")
4646
@Tag("paper-card")
47+
@Deprecated
4748
public class PaperCard extends Component implements HasSize, HasStyle, ThemableLayout {
4849

4950
private final Div cardContentDiv = new Div();

src/test/java/com/flowingcode/addons/applayout/DemoView.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ private MenuItem[] createMenuItems() {
213213
};
214214
}
215215

216+
@SuppressWarnings("deprecation")
216217
private void showContent(String content) {
217218
container.setClassName("");
218219
container.removeAll();
@@ -225,6 +226,7 @@ private void showContent(String content) {
225226
container.add(pc);
226227
}
227228

229+
@SuppressWarnings("deprecation")
228230
private void showHamletContent() {
229231
InputStream in = this.getClass().getClassLoader().getResourceAsStream("hamlet");
230232
String text = new BufferedReader(new InputStreamReader(in)).lines().collect(Collectors.joining("\n"));

0 commit comments

Comments
 (0)