Search in sources :

Example 1 with MultiTabPart

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());
    }
}
Also used : Window(org.adempiere.webui.component.Window) MultiTabPart(org.adempiere.webui.part.MultiTabPart) Tabpanel(org.adempiere.webui.component.Tabpanel) SQLException(java.sql.SQLException) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 SQLException (java.sql.SQLException)1 Tabpanel (org.adempiere.webui.component.Tabpanel)1 Window (org.adempiere.webui.component.Window)1 MultiTabPart (org.adempiere.webui.part.MultiTabPart)1