Skip to content

Commit 80a69f5

Browse files
mlopezFCjavier-godoy
authored andcommitted
refactor: use a private constructor
1 parent af94c76 commit 80a69f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ public class AppLayout extends Div implements PageConfigurator {
4949
private List<Component> toolbarComponents = new ArrayList<>();
5050

5151
public AppLayout(String title) {
52-
configureAppLayout(null, title, null);
52+
this(null, title, null);
5353
}
5454

5555
public AppLayout(Component menuHeader, String title) {
56-
configureAppLayout(menuHeader, title, null);
56+
this(menuHeader, title, null);
5757
}
5858

5959
public AppLayout(Image logo, Component menuHeader, String title) {
60-
configureAppLayout(menuHeader, title, logo);
60+
this(menuHeader, title, logo);
6161
}
6262

63-
private void configureAppLayout(Component menuHeader, String aTitle, Image aLogo) {
63+
private AppLayout(Component menuHeader, String aTitle, Image aLogo) {
6464
if (aLogo!=null) {
6565
aLogo.getElement().setAttribute("slot", "title");
6666
add(aLogo);

0 commit comments

Comments
 (0)