source: trunk/gcc/libjava/javax/swing/JRadioButtonMenuItem.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 5.9 KB
Line 
1/* JRadioButtonMenuItem.java --
2 Copyright (C) 2002 Free Software Foundation, Inc.
3
4This file is part of GNU Classpath.
5
6GNU Classpath is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Classpath is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Classpath; see the file COPYING. If not, write to the
18Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
1902111-1307 USA.
20
21Linking this library statically or dynamically with other modules is
22making a combined work based on this library. Thus, the terms and
23conditions of the GNU General Public License cover the whole
24combination.
25
26As a special exception, the copyright holders of this library give you
27permission to link this library with independent modules to produce an
28executable, regardless of the license terms of these independent
29modules, and to copy and distribute the resulting executable under
30terms of your choice, provided that you also meet, for each linked
31independent module, the terms and conditions of the license of that
32module. An independent module is a module which is not derived from
33or based on this library. If you modify this library, you may extend
34this exception to your version of the library, but you are not
35obligated to do so. If you do not wish to do so, delete this
36exception statement from your version. */
37
38package javax.swing;
39
40// Imports
41import java.io.*;
42import javax.accessibility.*;
43
44/**
45 * JRadioButtonMenuItem
46 * @author Andrew Selkirk
47 * @version 1.0
48 */
49public 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
Note: See TracBrowser for help on using the repository browser.