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.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Delete")));
button = new ToolBarButton(); if (!tabPanel.getGridTab().isSortTab()) {
button.setImage(PROCESS_IMAGE); button = new ToolBarButton();
toolbar.appendChild(button); button.setImage(PROCESS_IMAGE);
button.addEventListener(Events.ON_CLICK, new EventListener<Event>() { toolbar.appendChild(button);
@Override button.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
public void onEvent(Event event) throws Exception { @Override
onProcess(event.getTarget()); public void onEvent(Event event) throws Exception {
} onProcess(event.getTarget());
}); }
button.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Process"))); });
button.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Process")));
}
Hbox messageContainer = new Hbox(); Hbox messageContainer = new Hbox();
messageContainer.setPack("end"); messageContainer.setPack("end");