KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > tools > generator > ui > CloseableScrollpane


1 /*
2  * Created on May 22, 2003
3  *
4  * To change this generated comment go to
5  * Window>Preferences>Java>Code Generation>Code Template
6  */

7 package com.genimen.djeneric.tools.generator.ui;
8
9 import javax.swing.JScrollPane JavaDoc;
10
11 import com.genimen.djeneric.tools.generator.Generator;
12 import com.genimen.djeneric.ui.DjCloseable;
13
14 /**
15  * @author Wido
16  */

17 public class CloseableScrollpane extends JScrollPane JavaDoc implements DjCloseable
18 {
19   private static final long serialVersionUID = 1L;
20   Generator _generator;
21
22   public CloseableScrollpane(Generator gen)
23   {
24     _generator = gen;
25   }
26
27   public boolean canClose()
28   {
29     return true;
30
31   }
32
33   public boolean close()
34   {
35     _generator.closeTab(this);
36     return true;
37   }
38
39 }
Popular Tags