IDEMPIERE-4665 SearchQuery should behave the same as the toolbar buttons - role access,advanced button,dynamic display (#548)
This commit is contained in:
parent
070ce8e7da
commit
2dbbc93485
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue