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);
}
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);
}
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;
}
}
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;
}
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;
}
Aggregations