1 /* 2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 3 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 4 */ 5 6 package com.sun.java.accessibility.extensions; 7 8 import javax.accessibility.*; 9 10 /** 11 * <P>Class AccessibleExtendedRole contains extensions to the class 12 * AccessibleRole that are currently not in a public API. 13 * 14 * <P>Class AccessibleRole determines the role of a component. The role 15 * of a component describes its generic function. (E.G., 16 * "push button," "table," or "list.") 17 * <p>The constants in this class present a strongly typed enumeration 18 * of common object roles. A public constructor for this class has been 19 * purposely omitted and applications should use one of the constants 20 * from this class. If the constants in this class are not sufficient 21 * to describe the role of an object, a subclass should be generated 22 * from this class and it should provide constants in a similar manner. 23 * 24 */ 25 26 public abstract class AccessibleExtendedRoleConstants extends AccessibleRole { 27 28 /** 29 * Indicates this component is a text header. 30 */ 31 public static final AccessibleExtendedRole HEADER 32 = new AccessibleExtendedRole("Header"); 33 34 /** 35 * Indicates this component is a text footer. 36 */ 37 public static final AccessibleExtendedRole FOOTER 38 = new AccessibleExtendedRole("Footer"); 39 40 /** 41 * Indicates this component is a text paragraph. 42 */ 43 public static final AccessibleExtendedRole PARAGRAPH 44 = new AccessibleExtendedRole("Paragraph"); 45 46 /** 47 * Indicates this component is a ruler. 48 */ 49 public static final AccessibleExtendedRole RULER 50 = new AccessibleExtendedRole("RULER"); 51 52 public AccessibleExtendedRoleConstants(String s) { 53 super(s); 54 } 55 }