1 package org.tigris.scarab.util; 2 3 48 49 61 public class OptionModel 62 { 63 private String name; 64 private String value; 65 private boolean selected; 66 67 public OptionModel() 68 { 69 } 70 71 public OptionModel(String value, String name) 72 { 73 this(value, name, false); 74 } 75 76 public OptionModel(int value, String name) 77 { 78 this(String.valueOf(value), name); 79 } 80 81 public OptionModel(int value, String name, boolean selected) 82 { 83 this(String.valueOf(value), name, selected); 84 } 85 86 public OptionModel(String value, String name, boolean selected) 87 { 88 this.name = name; 89 this.value = value; 90 this.selected = selected; 91 } 92 93 97 public String getName() 98 { 99 return name; 100 } 101 102 106 public void setName(String v) 107 { 108 this.name = v; 109 } 110 111 115 public String getValue() 116 { 117 return value; 118 } 119 120 124 public void setValue(String v) 125 { 126 this.value = v; 127 } 128 129 133 public boolean isSelected() 134 { 135 return selected; 136 } 137 138 142 public void setSelected(boolean v) 143 { 144 this.selected = v; 145 } 146 } 147 | Popular Tags |