2004-01-09 Michael Koch <konqueror@gmx.de>
[official-gcc.git] / libjava / javax / swing / JCheckBoxMenuItem.java
blobcce8ec1ae34bf875a0c3e769f6b2ae084f6b5e7a
1 /* JCheckBoxMenuItem.java --
2 Copyright (C) 2002, 2004 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
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.
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.
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.
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.
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. */
38 package javax.swing;
40 import java.io.IOException;
41 import java.io.ObjectOutputStream;
42 import javax.accessibility.Accessible;
43 import javax.accessibility.AccessibleContext;
44 import javax.accessibility.AccessibleRole;
46 /**
47 * JCheckBoxMenuItem
48 * @author Andrew Selkirk
49 * @version 1.0
51 public class JCheckBoxMenuItem extends JMenuItem implements SwingConstants, Accessible
54 //-------------------------------------------------------------
55 // Classes ----------------------------------------------------
56 //-------------------------------------------------------------
58 /**
59 * AccessibleJCheckBoxMenuItem
61 protected class AccessibleJCheckBoxMenuItem extends AccessibleJMenuItem {
63 //-------------------------------------------------------------
64 // Variables --------------------------------------------------
65 //-------------------------------------------------------------
68 //-------------------------------------------------------------
69 // Initialization ---------------------------------------------
70 //-------------------------------------------------------------
72 /**
73 * Constructor AccessibleJCheckBoxMenuItem
74 * @param component TODO
76 protected AccessibleJCheckBoxMenuItem(JCheckBoxMenuItem component) {
77 super(component);
78 // TODO
79 } // AccessibleJCheckBoxMenuItem()
82 //-------------------------------------------------------------
83 // Methods ----------------------------------------------------
84 //-------------------------------------------------------------
86 /**
87 * getAccessibleRole
88 * @returns AccessibleRole
90 public AccessibleRole getAccessibleRole() {
91 return AccessibleRole.CHECK_BOX;
92 } // getAccessibleRole()
95 } // AccessibleJCheckBoxMenuItem
98 //-------------------------------------------------------------
99 // Variables --------------------------------------------------
100 //-------------------------------------------------------------
103 * uiClassID
105 private static final String uiClassID = "CheckBoxMenuItemUI";
108 //-------------------------------------------------------------
109 // Initialization ---------------------------------------------
110 //-------------------------------------------------------------
113 * Constructor JCheckBoxMenuItem
115 public JCheckBoxMenuItem() {
116 // TODO
117 } // JCheckBoxMenuItem()
120 * Constructor JCheckBoxMenuItem
121 * @param icon TODO
123 public JCheckBoxMenuItem(Icon icon) {
124 // TODO
125 } // JCheckBoxMenuItem()
128 * Constructor JCheckBoxMenuItem
129 * @param text TODO
131 public JCheckBoxMenuItem(String text) {
132 // TODO
133 } // JCheckBoxMenuItem()
136 * Constructor JCheckBoxMenuItem
137 * @param action TODO
139 public JCheckBoxMenuItem(Action action) {
140 // TODO
141 } // JCheckBoxMenuItem()
144 * Constructor JCheckBoxMenuItem
145 * @param text TODO
146 * @param icon TODO
148 public JCheckBoxMenuItem(String text, Icon icon) {
149 // TODO
150 } // JCheckBoxMenuItem()
153 * Constructor JCheckBoxMenuItem
154 * @param text TODO
155 * @param state TODO
157 public JCheckBoxMenuItem(String text, boolean state) {
158 // TODO
159 } // JCheckBoxMenuItem()
162 * Constructor JCheckBoxMenuItem
163 * @param text TODO
164 * @param icon TODO
165 * @param state TODO
167 public JCheckBoxMenuItem(String text, Icon icon, boolean state) {
168 // TODO
169 } // JCheckBoxMenuItem()
172 //-------------------------------------------------------------
173 // Methods ----------------------------------------------------
174 //-------------------------------------------------------------
177 * writeObject
178 * @param stream TODO
179 * @exception IOException TODO
181 private void writeObject(ObjectOutputStream stream) throws IOException {
182 // TODO
183 } // writeObject()
186 * getUIClassID
187 * @returns String
189 public String getUIClassID() {
190 return uiClassID;
191 } // getUIClassID()
194 * getState
195 * @returns boolean
197 public boolean getState() {
198 return false; // TODO
199 } // getState()
202 * setState
203 * @param state TODO
205 public synchronized void setState(boolean state) {
206 // TODO
207 } // setState()
210 * getSelectedObjects
211 * @returns Object[]
213 public Object[] getSelectedObjects() {
214 return null; // TODO
215 } // getSelectedObjects()
218 * requestFocus
220 public void requestFocus() {
221 // TODO
222 } // requestFocus()
225 * paramString
226 * @returns String
228 protected String paramString() {
229 return null; // TODO
230 } // paramString()
233 * getAccessibleContext
234 * @returns AccessibleContext
236 public AccessibleContext getAccessibleContext() {
237 if (accessibleContext == null) {
238 accessibleContext = new AccessibleJCheckBoxMenuItem(this);
239 } // if
240 return accessibleContext;
241 } // getAccessibleContext()
244 } // JCheckBoxMenuItem