1 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 stringValue = "some String"; 26 int intValue = 123; 27 28 TreeModel treeValue = new MyTreeModel(); 29 32 public int getIntValue() { 33 return intValue; 34 } 35 36 39 public String getStringValue() { 40 return stringValue; 41 } 42 43 46 public TreeModel getTreeValue() { 47 return treeValue; 48 } 49 50 53 public void setIntValue(int i) { 54 intValue = i; 55 } 56 57 60 public void setStringValue(String string) { 61 stringValue = string; 62 } 63 64 67 public void setTreeValue(TreeModel model) { 68 treeValue = model; 69 } 70 71 } 72 | Popular Tags |