Java Code Examples for com.vaadin.flow.component.orderedlayout.HorizontalLayout#setSizeFull()
The following examples show how to use
com.vaadin.flow.component.orderedlayout.HorizontalLayout#setSizeFull() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractView.java From vaadin-app-layout with Apache License 2.0 | 6 votes |
public AbstractView() { HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); layout.setMargin(false); layout.add(new Label("< " + getViewName() + " >")); layout.setAlignItems(Alignment.CENTER); layout.setJustifyContentMode(JustifyContentMode.CENTER); add(layout); setMargin(false); setSizeFull(); getElement() .getStyle() .set("overflow", "auto"); }
Example 2
Source File: GridTest.java From vaadin-app-layout with Apache License 2.0 | 6 votes |
public GridTest() { Random random = new Random(); for (int i = 0; i < 300; i++) { people.add(new Person(UUID.randomUUID().toString(), random.nextInt(), i)); } Grid<Person> grid = getGrid(); grid.setSelectionMode(Grid.SelectionMode.MULTI); grid.setSizeFull(); HorizontalLayout gridWrapper = new HorizontalLayout(grid); gridWrapper.setMargin(false); gridWrapper.setPadding(false); gridWrapper.setSpacing(false); gridWrapper.setFlexGrow(1, grid); gridWrapper.setSizeFull(); add(gridWrapper); setMargin(false); setPadding(false); setSpacing(false); setAlignItems(Alignment.STRETCH); setFlexGrow(1, gridWrapper); setSizeFull(); }
Example 3
Source File: AbstractView.java From vaadin-app-layout with Apache License 2.0 | 6 votes |
public AbstractView() { HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); layout.setMargin(false); layout.add(new Label("< " + getViewName() + " >")); layout.setAlignItems(Alignment.CENTER); layout.setJustifyContentMode(JustifyContentMode.CENTER); add(layout); setMargin(false); setSizeFull(); getElement() .getStyle() .set("overflow", "auto"); }
Example 4
Source File: GridTest.java From vaadin-app-layout with Apache License 2.0 | 6 votes |
public GridTest() { Random random = new Random(); for (int i = 0; i < 300; i++) { people.add(new Person(UUID.randomUUID().toString(), random.nextInt(), i)); } Grid<Person> grid = getGrid(); grid.setSelectionMode(Grid.SelectionMode.MULTI); grid.setSizeFull(); HorizontalLayout gridWrapper = new HorizontalLayout(grid); gridWrapper.setMargin(false); gridWrapper.setPadding(false); gridWrapper.setSpacing(false); gridWrapper.setFlexGrow(1, grid); gridWrapper.setSizeFull(); add(gridWrapper); setMargin(false); setPadding(false); setSpacing(false); setAlignItems(Alignment.STRETCH); setFlexGrow(1, gridWrapper); setSizeFull(); }
Example 5
Source File: GridTest.java From vaadin-app-layout with Apache License 2.0 | 6 votes |
public GridTest() { Random random = new Random(); for (int i = 0; i < 300; i++) { people.add(new Person(UUID.randomUUID().toString(), random.nextInt(), i)); } Grid<Person> grid = getGrid(); grid.setSelectionMode(Grid.SelectionMode.MULTI); grid.setSizeFull(); HorizontalLayout gridWrapper = new HorizontalLayout(grid); gridWrapper.setMargin(false); gridWrapper.setPadding(false); gridWrapper.setSpacing(false); gridWrapper.setFlexGrow(1, grid); gridWrapper.setSizeFull(); add(gridWrapper); setMargin(false); setPadding(false); setSpacing(false); setAlignItems(Alignment.STRETCH); setFlexGrow(1, gridWrapper); setSizeFull(); }
Example 6
Source File: AbstractView.java From vaadin-app-layout with Apache License 2.0 | 6 votes |
public AbstractView() { HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); layout.setMargin(false); layout.add(new Label("< " + getViewName() + " >")); layout.setAlignItems(Alignment.CENTER); layout.setJustifyContentMode(JustifyContentMode.CENTER); add(layout); setMargin(false); setSizeFull(); getElement() .getStyle() .set("overflow", "auto"); }
Example 7
Source File: GridTest.java From vaadin-app-layout with Apache License 2.0 | 6 votes |
public GridTest() { Random random = new Random(); for (int i = 0; i < 300; i++) { people.add(new Person(UUID.randomUUID().toString(), random.nextInt(), i)); } Grid<Person> grid = getGrid(); grid.setSelectionMode(Grid.SelectionMode.MULTI); grid.setSizeFull(); HorizontalLayout gridWrapper = new HorizontalLayout(grid); gridWrapper.setMargin(false); gridWrapper.setPadding(false); gridWrapper.setSpacing(false); gridWrapper.setFlexGrow(1, grid); gridWrapper.setSizeFull(); add(gridWrapper); setMargin(false); setPadding(false); setSpacing(false); setAlignItems(Alignment.STRETCH); setFlexGrow(1, gridWrapper); setSizeFull(); }
Example 8
Source File: GridTest.java From vaadin-app-layout with Apache License 2.0 | 5 votes |
public GridTest() { Random random = new Random(); for (int i = 0; i < 300; i++) { people.add(new Person(UUID.randomUUID().toString(), random.nextInt(), i)); } Grid<Person> grid = getGrid(); grid.setSelectionMode(Grid.SelectionMode.MULTI); grid.setSizeFull(); HorizontalLayout gridWrapper = new HorizontalLayout(grid); gridWrapper.setMargin(false); gridWrapper.setPadding(false); gridWrapper.setSpacing(false); gridWrapper.setFlexGrow(1, grid); gridWrapper.setSizeFull(); add(gridWrapper); setMargin(false); setPadding(false); setSpacing(false); setAlignItems(Alignment.STRETCH); setFlexGrow(1, gridWrapper); setSizeFull(); }
Example 9
Source File: AbstractView.java From vaadin-app-layout with Apache License 2.0 | 5 votes |
public AbstractView() { HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); layout.setMargin(false); setMargin(false); Label label = new Label("< " + getViewName() + " >"); layout.add(label); layout.setAlignItems(Alignment.CENTER); add(layout); setSizeFull(); getElement().getStyle().set("overflow", "auto"); }
Example 10
Source File: AbstractView.java From vaadin-app-layout with Apache License 2.0 | 5 votes |
public AbstractView() { HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); layout.setMargin(false); setMargin(false); Label label = new Label("< " + getViewName() + " >"); layout.add(label); layout.setAlignItems(Alignment.CENTER); layout.setJustifyContentMode(JustifyContentMode.CENTER); add(layout); setSizeFull(); getElement().getStyle().set("overflow", "auto"); }
Example 11
Source File: AbstractView.java From vaadin-app-layout with Apache License 2.0 | 5 votes |
public AbstractView() { HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); layout.setMargin(false); setMargin(false); Label label = new Label("< " + getViewName() + " >"); layout.add(label); layout.setAlignItems(Alignment.CENTER); layout.setJustifyContentMode(JustifyContentMode.CENTER); add(layout); setSizeFull(); getElement().getStyle().set("overflow", "auto"); }
Example 12
Source File: AbstractView.java From vaadin-app-layout with Apache License 2.0 | 5 votes |
public AbstractView() { HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); layout.setMargin(false); setMargin(false); Label label = new Label("< " + getViewName() + " >"); layout.add(label); layout.setAlignItems(Alignment.CENTER); layout.setJustifyContentMode(JustifyContentMode.CENTER); add(layout); setSizeFull(); getElement().getStyle().set("overflow", "auto"); }
Example 13
Source File: AbstractView.java From vaadin-app-layout with Apache License 2.0 | 5 votes |
public AbstractView() { HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); layout.setMargin(false); setMargin(false); Label label = new Label("< " + getViewName() + " >"); layout.add(label); layout.setAlignItems(Alignment.CENTER); layout.setJustifyContentMode(JustifyContentMode.CENTER); add(layout); setSizeFull(); getElement().getStyle().set("overflow", "auto"); }
Example 14
Source File: AbstractView.java From vaadin-app-layout with Apache License 2.0 | 5 votes |
public AbstractView() { HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); layout.setMargin(false); setMargin(false); Label label = new Label("< " + getViewName() + " >"); layout.add(label); layout.setAlignItems(Alignment.CENTER); layout.setJustifyContentMode(JustifyContentMode.CENTER); add(layout); setSizeFull(); getElement().getStyle().set("overflow", "auto"); }
Example 15
Source File: AbstractView.java From vaadin-app-layout with Apache License 2.0 | 5 votes |
public AbstractView() { HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); layout.setMargin(false); setMargin(false); Label label = new Label("< " + getViewName() + " >"); layout.add(label); layout.setAlignItems(Alignment.CENTER); layout.setJustifyContentMode(JustifyContentMode.CENTER); add(layout); setSizeFull(); getElement().getStyle().set("overflow", "auto"); }