Filter gemeldete not visible in edit view

master
Markus Kreth 7 years ago
parent 3562c3823c
commit 1cf137d734
  1. 2
      src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/PersonEditDetails.java
  2. 6
      src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/PersonGrid.java

@ -40,6 +40,8 @@ public class PersonEditDetails extends HorizontalLayout {
public PersonEditDetails(List<GroupDef> groups, PersonDao dao, boolean showCloseButton) {
setCaption("Personendetails");
textPrename = new TextField("Vorname");
textSureName = new TextField("Nachname");
birthday = new DateField("Geburtstag");

@ -112,9 +112,7 @@ public class PersonGrid extends VerticalLayout {
public void setSelectionMode(SelectionMode selectionMode) {
grid.setSelectionMode(selectionMode);
currentSelectionMode = selectionMode;
if (selectionMode != SelectionMode.MULTI) {
checkIncluded.setVisible(false);
} else {
if (selectionMode == SelectionMode.MULTI) {
checkIncluded.setVisible(true);
}
}
@ -122,6 +120,8 @@ public class PersonGrid extends VerticalLayout {
private Layout setupFilterComponents() {
checkIncluded.setId("person.filter.checked");
checkIncluded.addValueChangeListener(ev -> onSelectedOnly(ev));
checkIncluded.setVisible(false);
comboGroups.setId("person.filter.groups");
comboGroups.setEmptySelectionAllowed(true);
comboGroups.setEmptySelectionCaption("Alle");

Loading…
Cancel
Save