Skip to content

Commit c93b5b3

Browse files
committed
style: apply code formatting
1 parent 7159823 commit c93b5b3

23 files changed

+1405
-1345
lines changed

src/main/java/com/flowingcode/vaadin/addons/chipfield/Chip.java

Lines changed: 43 additions & 44 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.
@@ -41,54 +41,53 @@
4141
@JavaScript("./paper-chip.js")
4242
public class Chip extends Component {
4343

44-
public static final String CHIP_LABEL = "event.detail.chipLabel";
45-
private String label;
46-
private boolean closable;
47-
private Icon icon;
44+
public static final String CHIP_LABEL = "event.detail.chipLabel";
45+
private String label;
46+
private boolean closable;
47+
private Icon icon;
4848

49-
public Chip(String label, boolean closable, Icon icon) {
50-
this.setLabel(label);
51-
this.setClosable(closable);
52-
this.setIcon(icon);
53-
}
49+
public Chip(String label, boolean closable, Icon icon) {
50+
this.setLabel(label);
51+
this.setClosable(closable);
52+
this.setIcon(icon);
53+
}
5454

55-
public Chip(String chipText) {
56-
this(chipText, true, null);
57-
}
55+
public Chip(String chipText) {
56+
this(chipText, true, null);
57+
}
5858

59-
public String getLabel() {
60-
return label;
61-
}
59+
public String getLabel() {
60+
return label;
61+
}
6262

63-
public void setLabel(String label) {
64-
this.getElement().setAttribute("label", label);
65-
this.label = label;
66-
}
63+
public void setLabel(String label) {
64+
this.getElement().setAttribute("label", label);
65+
this.label = label;
66+
}
6767

68-
public boolean isClosable() {
69-
return closable;
70-
}
68+
public boolean isClosable() {
69+
return closable;
70+
}
7171

72-
public void setClosable(boolean closable) {
73-
if (closable) {
74-
this.getElement().setAttribute("closable", closable);
75-
}
76-
this.closable = closable;
77-
}
72+
public void setClosable(boolean closable) {
73+
if (closable) {
74+
this.getElement().setAttribute("closable", closable);
75+
}
76+
this.closable = closable;
77+
}
7878

79-
public Icon getIcon() {
80-
return icon;
81-
}
82-
83-
public void setIcon(Icon icon) {
84-
if (icon != null) {
85-
Span s = new Span();
86-
s.setClassName("chip-background");
87-
s.getElement().setAttribute("slot", "avatar");
88-
s.add(icon);
89-
this.getElement().appendChild(s.getElement());
90-
}
91-
this.icon = icon;
92-
}
79+
public Icon getIcon() {
80+
return icon;
81+
}
9382

83+
public void setIcon(Icon icon) {
84+
if (icon != null) {
85+
Span s = new Span();
86+
s.setClassName("chip-background");
87+
s.getElement().setAttribute("slot", "avatar");
88+
s.add(icon);
89+
this.getElement().appendChild(s.getElement());
90+
}
91+
this.icon = icon;
92+
}
9493
}

0 commit comments

Comments
 (0)