Search in sources :

Example 6 with CollapsiblePanel

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

Example 7 with CollapsiblePanel

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

Aggregations

CollapsiblePanel (org.compiere.swing.CollapsiblePanel)7 Component (java.awt.Component)4 CPanel (org.compiere.swing.CPanel)4 BorderLayout (java.awt.BorderLayout)3 CLabel (org.compiere.swing.CLabel)2 FlowLayout (java.awt.FlowLayout)1 HashSet (java.util.HashSet)1 JSeparator (javax.swing.JSeparator)1 MigLayout (net.miginfocom.swing.MigLayout)1 APanel (org.compiere.apps.APanel)1 ProcessPanel (org.compiere.apps.ProcessPanel)1 VChart (org.compiere.grid.ed.VChart)1 VEditor (org.compiere.grid.ed.VEditor)1 VString (org.compiere.grid.ed.VString)1 GridField (org.compiere.model.GridField)1 VBrowserTable (org.eevolution.grid.VBrowserTable)1 JXCollapsiblePane (org.jdesktop.swingx.JXCollapsiblePane)1