iDempiere IDEMPIERE-234 Configurable Toolbar. Process button should be invisible for sort tab.
This commit is contained in:
parent
6d7d975d22
commit
1214a9a6c6
|
@ -213,16 +213,18 @@ public class DetailPane extends Panel implements EventListener<Event> {
|
|||
});
|
||||
button.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Delete")));
|
||||
|
||||
button = new ToolBarButton();
|
||||
button.setImage(PROCESS_IMAGE);
|
||||
toolbar.appendChild(button);
|
||||
button.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
onProcess(event.getTarget());
|
||||
}
|
||||
});
|
||||
button.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Process")));
|
||||
if (!tabPanel.getGridTab().isSortTab()) {
|
||||
button = new ToolBarButton();
|
||||
button.setImage(PROCESS_IMAGE);
|
||||
toolbar.appendChild(button);
|
||||
button.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
onProcess(event.getTarget());
|
||||
}
|
||||
});
|
||||
button.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Process")));
|
||||
}
|
||||
|
||||
Hbox messageContainer = new Hbox();
|
||||
messageContainer.setPack("end");
|
||||
|
|
Loading…
Reference in New Issue