use of org.adempiere.webui.component.DesktopTabpanel in project adempiere by adempiere.
the class TabbedDesktop method openForm.
/**
*
* @param formId
* @return ADWindow
*/
public ADForm openForm(int formId) {
ADForm form = ADForm.openForm(formId);
DesktopTabpanel tabPanel = new DesktopTabpanel();
form.setParent(tabPanel);
//do not show window title when open as tab
form.setTitle(null);
form.setAttribute(WINDOWNO_ATTRIBUTE, form.getWindowNo());
preOpenNewTab();
windowContainer.addWindow(tabPanel, form.getFormName(), true);
return form;
}
use of org.adempiere.webui.component.DesktopTabpanel in project adempiere by adempiere.
the class TabbedDesktop method openWindow.
/**
*
* @param windowId
* @return ADWindow
*/
public ADWindow openWindow(int windowId) {
ADWindow adWindow = new ADWindow(Env.getCtx(), windowId);
DesktopTabpanel tabPanel = new DesktopTabpanel();
if (adWindow.createPart(tabPanel) != null) {
preOpenNewTab();
windowContainer.addWindow(tabPanel, adWindow.getTitle(), true);
return adWindow;
} else {
//user cancel
return null;
}
}
use of org.adempiere.webui.component.DesktopTabpanel in project adempiere by adempiere.
the class TabbedDesktop method showZoomWindow.
/**
* @param AD_Window_ID
* @param query
*/
public void showZoomWindow(int AD_Window_ID, MQuery query) {
ADWindow wnd = new ADWindow(Env.getCtx(), AD_Window_ID, query);
DesktopTabpanel tabPanel = new DesktopTabpanel();
if (wnd.createPart(tabPanel) != null) {
preOpenNewTab();
windowContainer.insertAfter(windowContainer.getSelectedTab(), tabPanel, wnd.getTitle(), true, true);
}
}
Aggregations