1 | /* JRadioButtonMenuItem.java --
|
---|
2 | Copyright (C) 2002 Free Software Foundation, Inc.
|
---|
3 |
|
---|
4 | This file is part of GNU Classpath.
|
---|
5 |
|
---|
6 | GNU Classpath is free software; you can redistribute it and/or modify
|
---|
7 | it under the terms of the GNU General Public License as published by
|
---|
8 | the Free Software Foundation; either version 2, or (at your option)
|
---|
9 | any later version.
|
---|
10 |
|
---|
11 | GNU Classpath is distributed in the hope that it will be useful, but
|
---|
12 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | General Public License for more details.
|
---|
15 |
|
---|
16 | You should have received a copy of the GNU General Public License
|
---|
17 | along with GNU Classpath; see the file COPYING. If not, write to the
|
---|
18 | Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
---|
19 | 02111-1307 USA.
|
---|
20 |
|
---|
21 | Linking this library statically or dynamically with other modules is
|
---|
22 | making a combined work based on this library. Thus, the terms and
|
---|
23 | conditions of the GNU General Public License cover the whole
|
---|
24 | combination.
|
---|
25 |
|
---|
26 | As a special exception, the copyright holders of this library give you
|
---|
27 | permission to link this library with independent modules to produce an
|
---|
28 | executable, regardless of the license terms of these independent
|
---|
29 | modules, and to copy and distribute the resulting executable under
|
---|
30 | terms of your choice, provided that you also meet, for each linked
|
---|
31 | independent module, the terms and conditions of the license of that
|
---|
32 | module. An independent module is a module which is not derived from
|
---|
33 | or based on this library. If you modify this library, you may extend
|
---|
34 | this exception to your version of the library, but you are not
|
---|
35 | obligated to do so. If you do not wish to do so, delete this
|
---|
36 | exception statement from your version. */
|
---|
37 |
|
---|
38 | package javax.swing;
|
---|
39 |
|
---|
40 | // Imports
|
---|
41 | import java.io.*;
|
---|
42 | import javax.accessibility.*;
|
---|
43 |
|
---|
44 | /**
|
---|
45 | * JRadioButtonMenuItem
|
---|
46 | * @author Andrew Selkirk
|
---|
47 | * @version 1.0
|
---|
48 | */
|
---|
49 | public class JRadioButtonMenuItem extends JMenuItem implements Accessible {
|
---|
50 |
|
---|
51 | //-------------------------------------------------------------
|
---|
52 | // Classes ----------------------------------------------------
|
---|
53 | //-------------------------------------------------------------
|
---|
54 |
|
---|
55 | /**
|
---|
56 | * AccessibleJRadioButtonMenuItem
|
---|
57 | */
|
---|
58 | protected class AccessibleJRadioButtonMenuItem extends AccessibleJMenuItem {
|
---|
59 |
|
---|
60 | //-------------------------------------------------------------
|
---|
61 | // Initialization ---------------------------------------------
|
---|
62 | //-------------------------------------------------------------
|
---|
63 |
|
---|
64 | /**
|
---|
65 | * Constructor AccessibleJRadioButtonMenuItem
|
---|
66 | * @param component TODO
|
---|
67 | */
|
---|
68 | protected AccessibleJRadioButtonMenuItem(JRadioButtonMenuItem component) {
|
---|
69 | super(component);
|
---|
70 | // TODO
|
---|
71 | } // AccessibleJRadioButtonMenuItem()
|
---|
72 |
|
---|
73 |
|
---|
74 | //-------------------------------------------------------------
|
---|
75 | // Methods ----------------------------------------------------
|
---|
76 | //-------------------------------------------------------------
|
---|
77 |
|
---|
78 | /**
|
---|
79 | * getAccessibleRole
|
---|
80 | * @returns AccessibleRole
|
---|
81 | */
|
---|
82 | public AccessibleRole getAccessibleRole() {
|
---|
83 | return AccessibleRole.RADIO_BUTTON;
|
---|
84 | } // getAccessibleRole()
|
---|
85 |
|
---|
86 |
|
---|
87 | } // AccessibleJRadioButtonMenuItem
|
---|
88 |
|
---|
89 |
|
---|
90 | //-------------------------------------------------------------
|
---|
91 | // Variables --------------------------------------------------
|
---|
92 | //-------------------------------------------------------------
|
---|
93 |
|
---|
94 | /**
|
---|
95 | * uiClassID
|
---|
96 | */
|
---|
97 | private static final String uiClassID = "RadioButtonMenuItemUI";
|
---|
98 |
|
---|
99 |
|
---|
100 | //-------------------------------------------------------------
|
---|
101 | // Initialization ---------------------------------------------
|
---|
102 | //-------------------------------------------------------------
|
---|
103 |
|
---|
104 | /**
|
---|
105 | * Constructor JRadioButtonMenuItem
|
---|
106 | */
|
---|
107 | public JRadioButtonMenuItem() {
|
---|
108 | // TODO
|
---|
109 | } // JRadioButtonMenuItem()
|
---|
110 |
|
---|
111 | /**
|
---|
112 | * Constructor JRadioButtonMenuItem
|
---|
113 | * @param icon TODO
|
---|
114 | */
|
---|
115 | public JRadioButtonMenuItem(Icon icon) {
|
---|
116 | // TODO
|
---|
117 | } // JRadioButtonMenuItem()
|
---|
118 |
|
---|
119 | /**
|
---|
120 | * Constructor JRadioButtonMenuItem
|
---|
121 | * @param text TODO
|
---|
122 | */
|
---|
123 | public JRadioButtonMenuItem(String text) {
|
---|
124 | // TODO
|
---|
125 | } // JRadioButtonMenuItem()
|
---|
126 |
|
---|
127 | /**
|
---|
128 | * Constructor JRadioButtonMenuItem
|
---|
129 | * @param action TODO
|
---|
130 | */
|
---|
131 | public JRadioButtonMenuItem(Action action) {
|
---|
132 | // TODO
|
---|
133 | } // JRadioButtonMenuItem()
|
---|
134 |
|
---|
135 | /**
|
---|
136 | * Constructor JRadioButtonMenuItem
|
---|
137 | * @param text TODO
|
---|
138 | * @param icon TODO
|
---|
139 | */
|
---|
140 | public JRadioButtonMenuItem(String text, Icon icon) {
|
---|
141 | // TODO
|
---|
142 | } // JRadioButtonMenuItem()
|
---|
143 |
|
---|
144 | /**
|
---|
145 | * Constructor JRadioButtonMenuItem
|
---|
146 | * @param text TODO
|
---|
147 | * @param selected TODO
|
---|
148 | */
|
---|
149 | public JRadioButtonMenuItem(String text, boolean selected) {
|
---|
150 | // TODO
|
---|
151 | } // JRadioButtonMenuItem()
|
---|
152 |
|
---|
153 | /**
|
---|
154 | * Constructor JRadioButtonMenuItem
|
---|
155 | * @param icon TODO
|
---|
156 | * @param selected TODO
|
---|
157 | */
|
---|
158 | public JRadioButtonMenuItem(Icon icon, boolean selected) {
|
---|
159 | // TODO
|
---|
160 | } // JRadioButtonMenuItem()
|
---|
161 |
|
---|
162 | /**
|
---|
163 | * Constructor JRadioButtonMenuItem
|
---|
164 | * @param text TODO
|
---|
165 | * @param icon TODO
|
---|
166 | * @param selected TODO
|
---|
167 | */
|
---|
168 | public JRadioButtonMenuItem(String text, Icon icon, boolean selected) {
|
---|
169 | // TODO
|
---|
170 | } // JRadioButtonMenuItem()
|
---|
171 |
|
---|
172 |
|
---|
173 | //-------------------------------------------------------------
|
---|
174 | // Methods ----------------------------------------------------
|
---|
175 | //-------------------------------------------------------------
|
---|
176 |
|
---|
177 | /**
|
---|
178 | * writeObject
|
---|
179 | * @param stream TODO
|
---|
180 | * @exception IOException TODO
|
---|
181 | */
|
---|
182 | private void writeObject(ObjectOutputStream stream) throws IOException {
|
---|
183 | // TODO
|
---|
184 | } // writeObject()
|
---|
185 |
|
---|
186 | /**
|
---|
187 | * getUIClassID
|
---|
188 | * @returns String
|
---|
189 | */
|
---|
190 | public String getUIClassID() {
|
---|
191 | return uiClassID;
|
---|
192 | } // getUIClassID()
|
---|
193 |
|
---|
194 | /**
|
---|
195 | * requestFocus
|
---|
196 | */
|
---|
197 | public void requestFocus() {
|
---|
198 | // TODO
|
---|
199 | } // requestFocus()
|
---|
200 |
|
---|
201 | /**
|
---|
202 | * paramString
|
---|
203 | * @returns String
|
---|
204 | */
|
---|
205 | protected String paramString() {
|
---|
206 | return null; // TODO
|
---|
207 | } // paramString()
|
---|
208 |
|
---|
209 | /**
|
---|
210 | * getAccessibleContext
|
---|
211 | * @returns AccessibleContext
|
---|
212 | */
|
---|
213 | public AccessibleContext getAccessibleContext() {
|
---|
214 | if (accessibleContext == null) {
|
---|
215 | accessibleContext = new AccessibleJRadioButtonMenuItem(this);
|
---|
216 | } // if
|
---|
217 | return accessibleContext;
|
---|
218 | } // getAccessibleContext()
|
---|
219 |
|
---|
220 |
|
---|
221 | } // JRadioButtonMenuItem
|
---|