01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /**
19: * @author Dennis Ushakov
20: * @version $Revision$
21: */package javax.accessibility;
22:
23: public class AccessibleState extends AccessibleBundle {
24: public static final AccessibleState ACTIVE = new AccessibleState(
25: "active"); //$NON-NLS-1$
26: public static final AccessibleState PRESSED = new AccessibleState(
27: "pressed"); //$NON-NLS-1$
28: public static final AccessibleState ARMED = new AccessibleState(
29: "armed"); //$NON-NLS-1$
30: public static final AccessibleState BUSY = new AccessibleState(
31: "busy"); //$NON-NLS-1$
32: public static final AccessibleState CHECKED = new AccessibleState(
33: "checked"); //$NON-NLS-1$
34: public static final AccessibleState EDITABLE = new AccessibleState(
35: "editable"); //$NON-NLS-1$
36: public static final AccessibleState EXPANDABLE = new AccessibleState(
37: "expandable"); //$NON-NLS-1$
38: public static final AccessibleState COLLAPSED = new AccessibleState(
39: "collapsed"); //$NON-NLS-1$
40: public static final AccessibleState EXPANDED = new AccessibleState(
41: "expanded"); //$NON-NLS-1$
42: public static final AccessibleState ENABLED = new AccessibleState(
43: "enabled"); //$NON-NLS-1$
44: public static final AccessibleState FOCUSABLE = new AccessibleState(
45: "focusable"); //$NON-NLS-1$
46: public static final AccessibleState FOCUSED = new AccessibleState(
47: "focused"); //$NON-NLS-1$
48: public static final AccessibleState ICONIFIED = new AccessibleState(
49: "iconified"); //$NON-NLS-1$
50: public static final AccessibleState MODAL = new AccessibleState(
51: "modal"); //$NON-NLS-1$
52: public static final AccessibleState OPAQUE = new AccessibleState(
53: "opaque"); //$NON-NLS-1$
54: public static final AccessibleState RESIZABLE = new AccessibleState(
55: "resizable"); //$NON-NLS-1$
56: public static final AccessibleState MULTISELECTABLE = new AccessibleState(
57: "multiSelectable"); //$NON-NLS-1$
58: public static final AccessibleState SELECTABLE = new AccessibleState(
59: "selectable"); //$NON-NLS-1$
60: public static final AccessibleState SELECTED = new AccessibleState(
61: "selected"); //$NON-NLS-1$
62: public static final AccessibleState SHOWING = new AccessibleState(
63: "showing"); //$NON-NLS-1$
64: public static final AccessibleState VISIBLE = new AccessibleState(
65: "visible"); //$NON-NLS-1$
66: public static final AccessibleState VERTICAL = new AccessibleState(
67: "vertical"); //$NON-NLS-1$
68: public static final AccessibleState HORIZONTAL = new AccessibleState(
69: "horizontal"); //$NON-NLS-1$
70: public static final AccessibleState SINGLE_LINE = new AccessibleState(
71: "singleLine"); //$NON-NLS-1$
72: public static final AccessibleState MULTI_LINE = new AccessibleState(
73: "multiLine"); //$NON-NLS-1$
74: public static final AccessibleState TRANSIENT = new AccessibleState(
75: "transient"); //$NON-NLS-1$
76: public static final AccessibleState MANAGES_DESCENDANTS = new AccessibleState(
77: "managesDescendants"); //$NON-NLS-1$
78: public static final AccessibleState INDETERMINATE = new AccessibleState(
79: "indeterminate"); //$NON-NLS-1$
80: public static final AccessibleState TRUNCATED = new AccessibleState(
81: "truncated"); //$NON-NLS-1$
82:
83: protected AccessibleState(final String key) {
84: this.key = key;
85: }
86: }
|