1 19 20 package org.netbeans.modules.tasklist.core.filter; 21 22 import org.openide.util.NbBundle; 23 24 25 26 39 public abstract class SuggestionProperty { 40 protected SuggestionProperty(String id, Class valueClass) { 41 this.id = id; 42 } 43 44 public String getID() { return id;} 45 46 53 public String getName() { 54 if (name == null) { 55 name = NbBundle.getMessage(this.getClass(), "LBL_" + id + "Property"); 56 } 57 return name; 58 } 59 60 67 public String getHint() { 68 if (hint == null) { 69 hint = NbBundle.getMessage(this.getClass(), "HNT_" + id + "Property"); 70 } 71 return hint; 72 } 73 74 75 81 public abstract Object getValue(Object obj); 82 83 public String toString() { return id;} 84 85 89 public Class getValueClass() { return valueClass;} 90 91 92 private String id; 94 transient private String name; 95 transient private String hint; 96 private Class valueClass; 97 } 98 99 | Popular Tags |