Skip to content

Commit

Permalink
style: apply code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy committed Jul 12, 2021
1 parent 4821076 commit 5c2dbbd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
27 changes: 15 additions & 12 deletions src/main/java/com/flowingcode/addons/applayout/AppToolbar.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
*/
package com.flowingcode.addons.applayout;

import java.util.stream.Stream;

import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.HasOrderedComponents;
import com.vaadin.flow.component.Tag;
Expand All @@ -29,6 +27,7 @@
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.html.Image;
import com.vaadin.flow.dom.Element;
import java.util.stream.Stream;

/**
* Component that renders the app toolbar
Expand All @@ -47,18 +46,22 @@ public class AppToolbar extends Component {
private Div divTitle;
private int index;

private HasOrderedComponents hasOrderedComponents = new HasOrderedComponents() {
@Override
public Element getElement() {
return AppToolbar.this.getElement();
}
private HasOrderedComponents hasOrderedComponents =
new HasOrderedComponents() {
@Override
public Element getElement() {
return AppToolbar.this.getElement();
}

@Override
public Stream<Component> getChildren() {
return ((Component) AppToolbar.this).getChildren();
}
@Override
public Stream<Component> getChildren() {
return ((Component) AppToolbar.this).getChildren();
}
};

};
public AppToolbar(String title, AppDrawer drawer) {
this(null, title, drawer);
}
public AppToolbar(String title, AppDrawer drawer) {
this(null, title, drawer);
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/flowingcode/addons/applayout/MenuItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
@Tag("fc-menuitem")
@JsModule("@flowingcode/fc-menuitem/src/fc-menuitem.ts")
@NpmPackage(value = "@flowingcode/fc-menuitem", version = "~0.9.5")
public class MenuItem extends SlottedMenuItem implements HasOrderedComponents, HasMenuItemCommands<MenuItem>, HasMenuItemIcon<MenuItem> {
public class MenuItem extends SlottedMenuItem
implements HasOrderedComponents, HasMenuItemCommands<MenuItem>, HasMenuItemIcon<MenuItem> {

static final String BLANK = "fc-menuitem-icons:empty";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/
package com.flowingcode.addons.applayout;


import com.flowingcode.addons.applayout.MouseClickEvent.MouseButton;
import com.flowingcode.addons.applayout.menu.PaperCard;
import com.flowingcode.addons.applayout.menu.PaperToggle;
Expand Down

0 comments on commit 5c2dbbd

Please sign in to comment.