KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > table > 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.table;
14
15 import com.tonbeller.wcf.selection.SelectionChangeEvent;
16 import com.tonbeller.wcf.selection.SelectionChangeListener;
17
18 public class TestBean {
19   class MyTableModel extends TestModel implements SelectionChangeListener {
20     public MyTableModel() {
21       super.setTitle(null);
22     }
23     public void selectionChanged(SelectionChangeEvent event) {
24       System.out.println("tree selection changed");
25     }
26   };
27
28   String JavaDoc stringValue = "some String";
29   int intValue = 123;
30
31   TableModel tableValue = new MyTableModel();
32
33   public int getIntValue() {
34     return intValue;
35   }
36
37   public String JavaDoc getStringValue() {
38     return stringValue;
39   }
40
41   public void setIntValue(int i) {
42     intValue = i;
43   }
44
45   public void setStringValue(String JavaDoc string) {
46     stringValue = string;
47   }
48
49   public TableModel getTableValue() {
50     return tableValue;
51   }
52
53   public void setTableValue(TableModel model) {
54     tableValue = model;
55   }
56
57 }
58
Popular Tags