Search in sources :

Example 1 with APanel

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);
}
Also used : APanel(org.compiere.apps.APanel) BorderLayout(java.awt.BorderLayout) CollapsiblePanel(org.compiere.swing.CollapsiblePanel)

Aggregations

BorderLayout (java.awt.BorderLayout)1 APanel (org.compiere.apps.APanel)1 CollapsiblePanel (org.compiere.swing.CollapsiblePanel)1