IDEMPIERE-4665 SearchQuery should behave the same as the toolbar buttons - role access,advanced button,dynamic display (#548)

This commit is contained in:
Diego Ruiz 2021-01-23 12:32:19 +01:00 committed by GitHub
parent 070ce8e7da
commit 2dbbc93485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -898,6 +898,11 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
break;
}
}
} else if (p instanceof Combobox) {
if (advancedName.equals(((Combobox) p).getId())) {
this.removeChild(p);
break;
}
}
}
@ -946,6 +951,8 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
if (p instanceof ToolBarButton) {
if (!customButtons.contains(p) && !p.isVisible())
p.setVisible(true);
} else if (p instanceof Combobox && !p.isVisible()) {
p.setVisible(true);
}
}
@ -964,6 +971,11 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
break;
}
}
} else if (p instanceof Combobox) {
if (restrictName.equals(((Combobox) p).getId())) {
p.setVisible(false);
break;
}
}
}