01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin.common;
05:
06: import org.dijon.TextArea;
07:
08: import javax.swing.JPopupMenu;
09:
10: public class XTextArea extends TextArea {
11: protected TextComponentHelper m_helper;
12:
13: public XTextArea() {
14: super ();
15: m_helper = new TextComponentHelper(this );
16: setPopupMenu(createPopup());
17: }
18:
19: private JPopupMenu createPopup() {
20: return m_helper.createPopup();
21: }
22:
23: public void setPopupMenu(JPopupMenu popupMenu) {
24: m_helper.setPopupMenu(popupMenu);
25: }
26:
27: public JPopupMenu getPopupMenu() {
28: return m_helper.getPopupMenu();
29: }
30: }
|