Search in sources :

Example 1 with ProcessPanel

use of org.adempiere.webui.apps.ProcessPanel in project adempiere by adempiere.

the class WBrowser method statInit.

/**
	 * Static Setup - add fields to parameterPanel (GridLayout)
	 */
private void statInit() {
    searchGrid.init();
    Panel search = searchGrid.getPanel();
    search.setStyle("background-color: transparent");
    topPanel.appendChild(search);
    topPanel.setStyle("overflow-y:auto");
    //	
    if (getAD_Process_ID() > 0) {
        //	FR [ 245 ]
        initProcessInfo();
        //	FR [ 265 ]
        parameterPanel = new ProcessPanel(getWindowNo(), getBrowseProcessInfo(), "100%", ProcessPanel.COLUMNS_2);
        parameterPanel.setShowDescription(false);
        parameterPanel.setShowButtons(false);
        //	
        parameterPanel.createFieldsAndEditors();
        //	If don't have parameters then don'show collapsible panel
        if (parameterPanel.hasParameters()) {
            Panel panel = parameterPanel.getPanel();
            panel.setWidth("100%");
            panel.setHeight("100%");
            panel.setStyle("overflow-y:auto");
            South south = new South();
            south.setBorder("none");
            south.setAutoscroll(true);
            south.setFlex(true);
            south.setCollapsible(true);
            south.setTitle(Msg.getMsg(Env.getCtx(), ("Parameter")));
            south.setCollapsible(true);
            south.setAutoscroll(true);
            south.appendChild(panel);
            south.setStyle("background-color: transparent");
            south.setStyle("border: none");
            south.setHeight("40%");
            //	
            detailPanel.appendChild(south);
        }
        //	
        detailPanel.setStyle("overflow-y:auto");
    }
}
Also used : Panel(org.adempiere.webui.component.Panel) ProcessPanel(org.adempiere.webui.apps.ProcessPanel) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) StatusBarPanel(org.adempiere.webui.panel.StatusBarPanel) South(org.zkoss.zul.South) ProcessPanel(org.adempiere.webui.apps.ProcessPanel)

Aggregations

ProcessPanel (org.adempiere.webui.apps.ProcessPanel)1 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)1 Panel (org.adempiere.webui.component.Panel)1 StatusBarPanel (org.adempiere.webui.panel.StatusBarPanel)1 South (org.zkoss.zul.South)1