1 7 8 package javax.accessibility; 9 10 import java.util.Vector ; 11 import java.util.Locale ; 12 import java.util.MissingResourceException ; 13 import java.util.ResourceBundle ; 14 15 32 public class AccessibleRelation extends AccessibleBundle { 33 34 44 private Object [] target = new Object [0]; 45 46 55 public static final String LABEL_FOR = new String ("labelFor"); 56 57 66 public static final String LABELED_BY = new String ("labeledBy"); 67 68 78 public static final String MEMBER_OF = new String ("memberOf"); 79 80 90 public static final String CONTROLLER_FOR = new String ("controllerFor"); 91 92 102 public static final String CONTROLLED_BY = new String ("controlledBy"); 103 104 118 public static final String FLOWS_TO = "flowsTo"; 119 120 133 public static final String FLOWS_FROM = "flowsFrom"; 134 135 141 public static final String SUBWINDOW_OF = "subwindowOf"; 142 143 149 public static final String PARENT_WINDOW_OF = "parentWindowOf"; 150 151 157 public static final String EMBEDS = "embeds"; 158 159 165 public static final String EMBEDDED_BY = "embeddedBy"; 166 167 173 public static final String CHILD_NODE_OF = "childNodeOf"; 174 175 178 public static final String LABEL_FOR_PROPERTY = "labelForProperty"; 179 180 183 public static final String LABELED_BY_PROPERTY = "labeledByProperty"; 184 185 188 public static final String MEMBER_OF_PROPERTY = "memberOfProperty"; 189 190 193 public static final String CONTROLLER_FOR_PROPERTY = "controllerForProperty"; 194 195 199 public static final String CONTROLLED_BY_PROPERTY = "controlledByProperty"; 200 201 207 public static final String FLOWS_TO_PROPERTY = "flowsToProperty"; 208 209 215 public static final String FLOWS_FROM_PROPERTY = "flowsFromProperty"; 216 217 223 public static final String SUBWINDOW_OF_PROPERTY = "subwindowOfProperty"; 224 225 231 public static final String PARENT_WINDOW_OF_PROPERTY = "parentWindowOfProperty"; 232 233 239 public static final String EMBEDS_PROPERTY = "embedsProperty"; 240 241 247 public static final String EMBEDDED_BY_PROPERTY = "embeddedByProperty"; 248 249 255 public static final String CHILD_NODE_OF_PROPERTY = "childNodeOfProperty"; 256 257 266 public AccessibleRelation(String key) { 267 this.key = key; 268 this.target = null; 269 } 270 271 281 public AccessibleRelation(String key, Object target) { 282 this.key = key; 283 this.target = new Object [1]; 284 this.target[0] = target; 285 } 286 287 297 public AccessibleRelation(String key, Object [] target) { 298 this.key = key; 299 this.target = target; 300 } 301 302 313 public String getKey() { 314 return this.key; 315 } 316 317 322 public Object [] getTarget() { 323 if (target == null) { 324 target = new Object [0]; 325 } 326 Object [] retval = new Object [target.length]; 327 for (int i = 0; i < target.length; i++) { 328 retval[i] = target[i]; 329 } 330 return retval; 331 } 332 333 338 public void setTarget(Object target) { 339 this.target = new Object [1]; 340 this.target[0] = target; 341 } 342 343 348 public void setTarget(Object [] target) { 349 this.target = target; 350 } 351 } 352 | Popular Tags |