1 33 34 package com.nqadmin.swingSet.formatting.helpers; 35 36 40 public class SelectorElement extends Object 41 { 42 43 46 private Object listValue; 47 48 51 private java.beans.PropertyChangeSupport propertyChangeSupport = new java.beans.PropertyChangeSupport (this); 52 53 56 private Object dataValue; 57 58 public SelectorElement() { 59 60 } 61 62 public SelectorElement(Object bD, Object lD) 63 { 64 this.setDataValue(bD); 65 this.setListValue(lD); 66 } 67 68 public String toString() 69 { 70 return listValue.toString().trim() + " (" + dataValue.toString().trim() + ")"; 71 } 72 73 77 public void addPropertyChangeListener(java.beans.PropertyChangeListener l) 78 { 79 80 propertyChangeSupport.addPropertyChangeListener(l); 81 } 82 83 87 public void removePropertyChangeListener(java.beans.PropertyChangeListener l) 88 { 89 90 propertyChangeSupport.removePropertyChangeListener(l); 91 } 92 93 97 public Object getListValue() 98 99 { 100 101 return this.listValue; 102 } 103 104 108 public void setListValue(Object listValue) 109 { 110 111 Object oldListValue = this.listValue; 112 this.listValue = listValue; 113 propertyChangeSupport.firePropertyChange("listValue", oldListValue, listValue); 114 } 115 116 120 public Object getDataValue() 121 122 { 123 124 return this.dataValue; 125 } 126 127 131 public void setDataValue(Object dataValue) 132 { 133 Object olddataValue = this.dataValue; 134 this.dataValue = dataValue; 135 propertyChangeSupport.firePropertyChange("dataValue", olddataValue, dataValue); 136 } 137 138 139 140 } 141 | Popular Tags |