iDempiere IDEMPIERE-234 Configurable Toolbar. Process button should be invisible for sort tab.

This commit is contained in:
Heng Sin Low 2012-10-19 23:24:19 +08:00
parent 6d7d975d22
commit 1214a9a6c6
1 changed files with 12 additions and 10 deletions

View File

@ -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");