use of org.adempiere.webui.part.MultiTabPart in project adempiere by adempiere.
the class FindWindow method initPanel.
// initAdvanced
/**
* initialise Main Window
*
**/
private void initPanel() {
winMain = new MultiTabPart();
winMain.createPart(this);
winMain.getComponent().setStyle("height: 100%; width: 100%; position: relative;");
winAdvanced = new Window();
winLookupRecord = new Window();
Tabpanel tabPanel = new Tabpanel();
tabPanel.setStyle("height: 100%; width: 100%");
tabPanel.appendChild(winLookupRecord);
winMain.addTab(tabPanel, Msg.getMsg(Env.getCtx(), "Find").replaceAll("&", ""), false, true);
tabPanel = new Tabpanel();
tabPanel.setStyle("height: 100%; width: 100%");
tabPanel.appendChild(winAdvanced);
winMain.addTab(tabPanel, Msg.getMsg(Env.getCtx(), "Advanced").replaceAll("&", ""), false, false);
m_sTipText = "<".concat(Msg.getMsg(Env.getCtx(), "SelectOrEnterQueryName")).concat(">");
m_sToolTipText = Msg.getMsg(Env.getCtx(), "SelectOrEnterQueryNameToolTip");
try {
initSimple();
initAdvanced();
} catch (Exception e) {
log.warning("Init failed " + e.getLocalizedMessage());
}
}
Aggregations