184
185 /**
186 * Resets the UI property to a value from the current look and feel.
187 *
188 * @see JComponent#updateUI
189 */
190 public void updateUI() {
191 setUI((ButtonUI)UIManager.getUI(this));
192 }
193
194
195 /**
196 * Returns the name of the L&F class
197 * that renders this component.
198 *
199 * @return String "RadioButtonUI"
200 * @see JComponent#getUIClassID
201 * @see UIDefaults#getUI
202 */
203 @BeanProperty(bound = false, expert = true, description
204 = "A string that specifies the name of the L&F class.")
205 public String getUIClassID() {
206 return uiClassID;
207 }
208
209
210 /**
211 * The icon for radio buttons comes from the look and feel,
212 * not the Action.
213 */
214 void setIconFromAction(Action a) {
215 }
216
217 /**
218 * See readObject() and writeObject() in JComponent for more
219 * information about serialization in Swing.
220 */
221 private void writeObject(ObjectOutputStream s) throws IOException {
222 s.defaultWriteObject();
223 if (getUIClassID().equals(uiClassID)) {
224 byte count = JComponent.getWriteObjCounter(this);
|
184
185 /**
186 * Resets the UI property to a value from the current look and feel.
187 *
188 * @see JComponent#updateUI
189 */
190 public void updateUI() {
191 setUI((ButtonUI)UIManager.getUI(this));
192 }
193
194
195 /**
196 * Returns the name of the L&F class
197 * that renders this component.
198 *
199 * @return String "RadioButtonUI"
200 * @see JComponent#getUIClassID
201 * @see UIDefaults#getUI
202 */
203 @BeanProperty(bound = false, expert = true, description
204 = "A string that specifies the name of the L&F class.")
205 public String getUIClassID() {
206 return uiClassID;
207 }
208
209
210 /**
211 * The icon for radio buttons comes from the look and feel,
212 * not the Action.
213 */
214 void setIconFromAction(Action a) {
215 }
216
217 /**
218 * See readObject() and writeObject() in JComponent for more
219 * information about serialization in Swing.
220 */
221 private void writeObject(ObjectOutputStream s) throws IOException {
222 s.defaultWriteObject();
223 if (getUIClassID().equals(uiClassID)) {
224 byte count = JComponent.getWriteObjCounter(this);
|