use of org.compiere.apps.APanel 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);
}
Aggregations