1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.xmlhammer.gui.output;
23
24 import java.awt.FlowLayout;
25 import java.awt.LayoutManager;
26
27 import javax.swing.JPanel;
28 import javax.swing.border.EmptyBorder;
29
30 import org.bounce.FormConstraints;
31
32 public class DetailsPanel extends JPanel {
33 private static final long serialVersionUID = 2259471077931263865L;
34 protected static final FormConstraints LABEL_CONSTRAINTS = new FormConstraints(FormConstraints.LEFT, FormConstraints.RIGHT, FormConstraints.TOP);
35
36 private String helpID = null;
37
38 public DetailsPanel(String helpID) {
39 this(true, helpID);
40 }
41
42 public DetailsPanel(LayoutManager layout, String helpID) {
43 this(layout, true, helpID);
44 }
45
46 public DetailsPanel(boolean flag, String helpID) {
47 this(new FlowLayout(), flag, helpID);
48 }
49
50 public DetailsPanel(LayoutManager layout, boolean flag, String helpID) {
51 super(layout, flag);
52
53 this.helpID = helpID;
54
55 setBorder(new EmptyBorder(10, 10, 10, 10));
56 }
57
58 public String getHelpID() {
59 return helpID;
60 }
61 }