KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > tree > TestBean


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.tree;
14
15 import com.tonbeller.wcf.selection.SelectionChangeEvent;
16 import com.tonbeller.wcf.selection.SelectionChangeListener;
17
18 public class TestBean {
19   class MyTreeModel extends TestTreeModel implements SelectionChangeListener {
20     public void selectionChanged(SelectionChangeEvent event) {
21       System.out.println("selection changed");
22     }
23   };
24   
25   String JavaDoc stringValue = "some String";
26   int intValue = 123;
27   
28   TreeModel treeValue = new MyTreeModel();
29   /**
30    * @return
31    */

32   public int getIntValue() {
33     return intValue;
34   }
35
36   /**
37    * @return
38    */

39   public String JavaDoc getStringValue() {
40     return stringValue;
41   }
42
43   /**
44    * @return
45    */

46   public TreeModel getTreeValue() {
47     return treeValue;
48   }
49
50   /**
51    * @param i
52    */

53   public void setIntValue(int i) {
54     intValue = i;
55   }
56
57   /**
58    * @param string
59    */

60   public void setStringValue(String JavaDoc string) {
61     stringValue = string;
62   }
63
64   /**
65    * @param model
66    */

67   public void setTreeValue(TreeModel model) {
68     treeValue = model;
69   }
70
71 }
72
Popular Tags