KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > common > XComboBox


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.admin.common;
5
6 import org.dijon.ComboBox;
7
8 import javax.swing.JPopupMenu JavaDoc;
9
10 public class XComboBox extends ComboBox {
11   protected XPopupListener m_popupListener;
12   
13   public XComboBox() {
14     super();
15     m_popupListener = new XPopupListener(this);
16     setPopupMenu(createPopup());
17   }
18   
19   protected JPopupMenu JavaDoc createPopup() {
20     return null;
21   }
22
23   public void setPopupMenu(JPopupMenu JavaDoc popupMenu) {
24     m_popupListener.setPopupMenu(popupMenu);
25   }
26
27   public JPopupMenu JavaDoc getPopupMenu() {
28     return m_popupListener.getPopupMenu();
29   }
30 }
31
Popular Tags