KickJava   Java API By Example, From Geeks To Geeks.

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


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.TextPane;
7
8 import javax.swing.JPopupMenu JavaDoc;
9
10 public class XTextPane extends TextPane {
11   protected TextComponentHelper m_helper;
12   
13   public XTextPane() {
14     super();
15     m_helper = createHelper();
16     setPopupMenu(createPopup());
17   }
18   
19   protected TextComponentHelper createHelper() {
20     return new TextComponentHelper(this);
21   }
22   
23   private JPopupMenu JavaDoc createPopup() {
24     return m_helper.createPopup();
25   }
26
27   public void setPopupMenu(JPopupMenu JavaDoc popupMenu) {
28     m_helper.setPopupMenu(popupMenu);
29   }
30
31   public JPopupMenu JavaDoc getPopupMenu() {
32     return m_helper.getPopupMenu();
33   }
34 }
35
Popular Tags