use of org.compiere.swing.CollapsiblePanel in project adempiere by adempiere.
the class VPanel method includeTab.
/**
*
* @param detail
*/
public void includeTab(GridController detail) {
CollapsiblePanel section = m_tabincludelist.get(detail.getMTab().getAD_Tab_ID());
if (section != null) {
APanel panel = new APanel(detail, m_WindowNo);
String name = detail.getMTab().getName() + "";
section.setTitle(name);
section.getCollapsiblePane().getContentPane().setLayout(new BorderLayout());
section.getCollapsiblePane().getContentPane().add(panel, BorderLayout.CENTER);
}
//this can be call before addField
if (!includedTabList.containsKey(detail.getMTab().getAD_Tab_ID()))
includedTabList.put(detail.getMTab().getAD_Tab_ID(), detail);
}
use of org.compiere.swing.CollapsiblePanel in project adempiere by adempiere.
the class VBrowser method statInit.
/**
* Static Setup - add fields to parameterPanel (GridLayout)
*/
private void statInit() {
//
if (getAD_Process_ID() > 0) {
// FR [ 245 ]
initProcessInfo();
processParameterPanel = new ProcessPanel(getWindowNo(), getBrowseProcessInfo());
processParameterPanel.setColumns(ProcessController.COLUMNS_2);
processParameterPanel.setShowButtons(false);
processParameterPanel.setShowDescription(false);
processParameterPanel.createFieldsAndEditors();
// If don't have parameters then don'show collapsible panel
if (processParameterPanel.hasParameters()) {
// Add collapsible panel for process pane;
CollapsiblePanel collapsibleProcess = new CollapsiblePanel(Msg.getMsg(Env.getCtx(), ("Parameter")));
collapsibleProcess.add(processParameterPanel.getPanel());
collapsibleProcess.validate();
processPanel.add(collapsibleProcess);
}
}
}
Aggregations