Search in sources :

Example 1 with DesktopTabpanel

use of org.adempiere.webui.component.DesktopTabpanel in project adempiere by adempiere.

the class WGenForm method zkInit.

//	init
/**
	 *	Static Init.
	 *  <pre>
	 *  selPanel (tabbed)
	 *      fOrg, fBPartner
	 *      scrollPane & miniTable
	 *  genPanel
	 *      info
	 *  </pre>
	 *  @throws Exception
	 */
void zkInit() throws Exception {
    //
    selPanel.setWidth("99%");
    selPanel.setHeight("90%");
    selPanel.setStyle("border: none; position: absolute");
    DesktopTabpanel tabpanel = new DesktopTabpanel();
    tabpanel.appendChild(selPanel);
    Tabpanels tabPanels = new Tabpanels();
    tabPanels.appendChild(tabpanel);
    tabbedPane.appendChild(tabPanels);
    Tabs tabs = new Tabs();
    tabbedPane.appendChild(tabs);
    Tab tab = new Tab(Msg.getMsg(Env.getCtx(), "Select"));
    tabs.appendChild(tab);
    North north = new North();
    selPanel.appendChild(north);
    north.appendChild(selNorthPanel);
    South south = new South();
    selPanel.appendChild(south);
    south.appendChild(confirmPanelSel);
    Center center = new Center();
    selPanel.appendChild(center);
    center.appendChild(miniTable);
    center.setHflex("true");
    center.setVflex("true");
    miniTable.setHeight("99%");
    confirmPanelSel.addActionListener(this);
    //
    tabpanel = new DesktopTabpanel();
    tabPanels.appendChild(tabpanel);
    tabpanel.appendChild(genPanel);
    tab = new Tab(Msg.getMsg(Env.getCtx(), "Generate"));
    tabs.appendChild(tab);
    genPanel.setWidth("99%");
    genPanel.setHeight("90%");
    genPanel.setStyle("border: none; position: absolute");
    center = new Center();
    genPanel.appendChild(center);
    Div div = new Div();
    div.appendChild(info);
    center.appendChild(div);
    south = new South();
    genPanel.appendChild(south);
    south.appendChild(confirmPanelGen);
    confirmPanelGen.addActionListener(this);
}
Also used : Div(org.zkoss.zul.Div) Center(org.zkoss.zul.Center) Tab(org.adempiere.webui.component.Tab) Tabpanels(org.adempiere.webui.component.Tabpanels) South(org.zkoss.zul.South) Tabs(org.adempiere.webui.component.Tabs) North(org.zkoss.zul.North) DesktopTabpanel(org.adempiere.webui.component.DesktopTabpanel)

Example 2 with DesktopTabpanel

use of org.adempiere.webui.component.DesktopTabpanel in project adempiere by adempiere.

the class TabbedDesktop method openWorkflow.

/**
	 *
	 * @param workflow_ID
	 */
public void openWorkflow(int workflow_ID) {
    WFPanel p = new WFPanel();
    p.load(workflow_ID);
    DesktopTabpanel tabPanel = new DesktopTabpanel();
    p.setParent(tabPanel);
    preOpenNewTab();
    windowContainer.addWindow(tabPanel, p.getWorkflow().get_Translation(MWorkflow.COLUMNNAME_Name), true);
}
Also used : WFPanel(org.adempiere.webui.apps.wf.WFPanel) DesktopTabpanel(org.adempiere.webui.component.DesktopTabpanel)

Example 3 with DesktopTabpanel

use of org.adempiere.webui.component.DesktopTabpanel in project adempiere by adempiere.

the class TabbedDesktop method openWindow.

/**
	 *
	 * @param windowId
     * @param query
	 * @return ADWindow
	 */
public ADWindow openWindow(int windowId, MQuery query) {
    ADWindow adWindow = new ADWindow(Env.getCtx(), windowId, query);
    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 4 with DesktopTabpanel

use of org.adempiere.webui.component.DesktopTabpanel in project adempiere by adempiere.

the class TabbedDesktop method openProcessDialog.

/**
     *
     * @param processId
     * @param soTrx
     * @return ProcessDialog
     */
public ProcessDialog openProcessDialog(int processId, boolean soTrx) {
    ProcessDialog pd = new ProcessDialog(processId, soTrx);
    if (pd.isValid()) {
        DesktopTabpanel tabPanel = new DesktopTabpanel();
        pd.setParent(tabPanel);
        String title = pd.getTitle();
        pd.setTitle(null);
        preOpenNewTab();
        windowContainer.addWindow(tabPanel, title, true);
    }
    return pd;
}
Also used : ProcessDialog(org.adempiere.webui.apps.ProcessDialog) DesktopTabpanel(org.adempiere.webui.component.DesktopTabpanel)

Example 5 with DesktopTabpanel

use of org.adempiere.webui.component.DesktopTabpanel in project adempiere by adempiere.

the class TabbedDesktop method openBrowse.

public CustomForm openBrowse(int browseId, Boolean isSOTrx) {
    MBrowse browse = new MBrowse(Env.getCtx(), browseId, null);
    CustomForm ff = WBrowser.openBrowse(0, browseId, "", isSOTrx);
    DesktopTabpanel tabPanel = new DesktopTabpanel();
    ff.setParent(tabPanel);
    preOpenNewTab();
    windowContainer.addWindow(tabPanel, browse.getTitle(), true);
    return ff;
}
Also used : CustomForm(org.adempiere.webui.panel.CustomForm) DesktopTabpanel(org.adempiere.webui.component.DesktopTabpanel) MBrowse(org.adempiere.model.MBrowse)

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