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