diff options
Diffstat (limited to 'src/cppcheckplus/outlookpanel/MyOutlookList.java')
-rw-r--r-- | src/cppcheckplus/outlookpanel/MyOutlookList.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/cppcheckplus/outlookpanel/MyOutlookList.java b/src/cppcheckplus/outlookpanel/MyOutlookList.java new file mode 100644 index 0000000..d5c04d5 --- /dev/null +++ b/src/cppcheckplus/outlookpanel/MyOutlookList.java | |||
@@ -0,0 +1,31 @@ | |||
1 | |||
2 | package cppcheckplus.outlookpanel; | ||
3 | |||
4 | import javax.swing.JList; | ||
5 | |||
6 | import cppcheckplus.control.MyContorlUtil; | ||
7 | |||
8 | public class MyOutlookList extends JList | ||
9 | { | ||
10 | //通过MyOutlookBar获得MyOutlookPanel是否sh | ||
11 | private MyOutlookBar bar; | ||
12 | public MyOutlookList(MyOutlookPanelListItem[] listItems,MyOutlookBar bar) | ||
13 | { | ||
14 | this.bar = bar; | ||
15 | setListData(listItems); | ||
16 | init(); | ||
17 | } | ||
18 | |||
19 | private void init() | ||
20 | { | ||
21 | setCellRenderer(new MyOutlookListRenderer()); | ||
22 | setFont(MyContorlUtil.FONT_12_BOLD); | ||
23 | setForeground(MyContorlUtil.OUTLOOK_TEXT_COLOR); | ||
24 | setSelectionMode(0); | ||
25 | } | ||
26 | |||
27 | public MyOutlookBar getOutlookBar() | ||
28 | { | ||
29 | return this.bar; | ||
30 | } | ||
31 | } | ||