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,6 +213,7 @@ 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")));
if (!tabPanel.getGridTab().isSortTab()) {
button = new ToolBarButton(); button = new ToolBarButton();
button.setImage(PROCESS_IMAGE); button.setImage(PROCESS_IMAGE);
toolbar.appendChild(button); toolbar.appendChild(button);
@ -223,6 +224,7 @@ public class DetailPane extends Panel implements EventListener<Event> {
} }
}); });
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");