01: package org.acm.seguin.pmd.swingui;
02:
03: import javax.swing.JPanel;
04: import javax.swing.JScrollPane;
05: import javax.swing.border.EmptyBorder;
06: import java.awt.BorderLayout;
07:
08: /**
09: *
10: * @author Donald A. Leckie
11: * @since September 8, 2002
12: * @version $Revision: 1.1 $, $Date: 2003/07/29 20:51:59 $
13: */
14: class RuleAllEditingPanel extends JPanel {
15: private RuleSetEditingPanel m_ruleSetPanel;
16: private RuleEditingPanel m_rulePanel;
17: private RulePropertyEditingPanel m_rulePropertyPanel;
18: private boolean m_isEditing;
19:
20: /**
21: *******************************************************************************
22: *
23: * @return
24: */
25: protected RuleAllEditingPanel() {
26: super (new BorderLayout());
27:
28: EmptyBorder emptyBorder = new EmptyBorder(15, 15, 15, 15);
29:
30: setBorder(emptyBorder);
31:
32: JScrollPane ruleScrollPane;
33:
34: m_ruleSetPanel = new RuleSetEditingPanel();
35: m_rulePanel = new RuleEditingPanel();
36: ruleScrollPane = ComponentFactory.createScrollPane(m_rulePanel);
37: m_rulePropertyPanel = new RulePropertyEditingPanel();
38:
39: add(m_ruleSetPanel, BorderLayout.NORTH);
40: add(ruleScrollPane, BorderLayout.CENTER);
41: add(m_rulePropertyPanel, BorderLayout.SOUTH);
42: }
43:
44: /**
45: *******************************************************************************
46: *
47: * @param isEditing
48: */
49: protected void setIsEditing(boolean isEditing) {
50: m_isEditing = isEditing;
51: m_ruleSetPanel.setIsEditing(isEditing);
52: m_rulePanel.setIsEditing(isEditing);
53: m_rulePropertyPanel.setIsEditing(isEditing);
54: }
55: }
|