218
219 /**
220 * Resets the UI property to a value from the current look and feel.
221 *
222 * @see JComponent#updateUI
223 */
224 public void updateUI() {
225 setUI((ButtonUI)UIManager.getUI(this));
226 }
227
228
229 /**
230 * Returns a string that specifies the name of the L&F class
231 * that renders this component.
232 *
233 * @return the string "CheckBoxUI"
234 * @see JComponent#getUIClassID
235 * @see UIDefaults#getUI
236 */
237 @BeanProperty(bound = false, expert = true, description
238 = "A string that specifies the name of the L&F class")
239 public String getUIClassID() {
240 return uiClassID;
241 }
242
243
244 /**
245 * The icon for checkboxs comes from the look and feel,
246 * not the Action; this is overriden to do nothing.
247 */
248 void setIconFromAction(Action a) {
249 }
250
251 /*
252 * See readObject and writeObject in JComponent for more
253 * information about serialization in Swing.
254 */
255 private void writeObject(ObjectOutputStream s) throws IOException {
256 s.defaultWriteObject();
257 if (getUIClassID().equals(uiClassID)) {
258 byte count = JComponent.getWriteObjCounter(this);
|
218
219 /**
220 * Resets the UI property to a value from the current look and feel.
221 *
222 * @see JComponent#updateUI
223 */
224 public void updateUI() {
225 setUI((ButtonUI)UIManager.getUI(this));
226 }
227
228
229 /**
230 * Returns a string that specifies the name of the L&F class
231 * that renders this component.
232 *
233 * @return the string "CheckBoxUI"
234 * @see JComponent#getUIClassID
235 * @see UIDefaults#getUI
236 */
237 @BeanProperty(bound = false, expert = true, description
238 = "A string that specifies the name of the L&F class")
239 public String getUIClassID() {
240 return uiClassID;
241 }
242
243
244 /**
245 * The icon for checkboxs comes from the look and feel,
246 * not the Action; this is overriden to do nothing.
247 */
248 void setIconFromAction(Action a) {
249 }
250
251 /*
252 * See readObject and writeObject in JComponent for more
253 * information about serialization in Swing.
254 */
255 private void writeObject(ObjectOutputStream s) throws IOException {
256 s.defaultWriteObject();
257 if (getUIClassID().equals(uiClassID)) {
258 byte count = JComponent.getWriteObjCounter(this);
|