Search in sources :

Example 6 with DesktopTabpanel

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;
}
Also used : DesktopTabpanel(org.adempiere.webui.component.DesktopTabpanel) ADForm(org.adempiere.webui.panel.ADForm)

Example 7 with DesktopTabpanel

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;
    }
}
Also used : ADWindow(org.adempiere.webui.window.ADWindow) DesktopTabpanel(org.adempiere.webui.component.DesktopTabpanel)

Example 8 with DesktopTabpanel

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);
    }
}
Also used : ADWindow(org.adempiere.webui.window.ADWindow) DesktopTabpanel(org.adempiere.webui.component.DesktopTabpanel)

Aggregations

DesktopTabpanel (org.adempiere.webui.component.DesktopTabpanel)8 ADWindow (org.adempiere.webui.window.ADWindow)3 MBrowse (org.adempiere.model.MBrowse)1 ProcessDialog (org.adempiere.webui.apps.ProcessDialog)1 WFPanel (org.adempiere.webui.apps.wf.WFPanel)1 Tab (org.adempiere.webui.component.Tab)1 Tabpanels (org.adempiere.webui.component.Tabpanels)1 Tabs (org.adempiere.webui.component.Tabs)1 ADForm (org.adempiere.webui.panel.ADForm)1 CustomForm (org.adempiere.webui.panel.CustomForm)1 Center (org.zkoss.zul.Center)1 Div (org.zkoss.zul.Div)1 North (org.zkoss.zul.North)1 South (org.zkoss.zul.South)1