1 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 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 getStringValue() { 38 return stringValue; 39 } 40 41 public void setIntValue(int i) { 42 intValue = i; 43 } 44 45 public void setStringValue(String 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 |