453 acc = AccessController.getContext();
454
455 s.defaultReadObject();
456
457 appContext = AppContext.getAppContext();
458 }
459
460 /**
461 * Initialize JNI field and method IDs.
462 */
463 private static native void initIDs();
464
465
466 /*
467 * --- Accessibility Support ---
468 *
469 * MenuComponent will contain all of the methods in interface Accessible,
470 * though it won't actually implement the interface - that will be up
471 * to the individual objects which extend MenuComponent.
472 */
473
474 AccessibleContext accessibleContext = null;
475
476 /**
477 * Gets the {@code AccessibleContext} associated with
478 * this {@code MenuComponent}.
479 *
480 * The method implemented by this base class returns {@code null}.
481 * Classes that extend {@code MenuComponent}
482 * should implement this method to return the
483 * {@code AccessibleContext} associated with the subclass.
484 *
485 * @return the {@code AccessibleContext} of this
486 * {@code MenuComponent}
487 * @since 1.3
488 */
489 public AccessibleContext getAccessibleContext() {
490 return accessibleContext;
491 }
492
493 /**
|
453 acc = AccessController.getContext();
454
455 s.defaultReadObject();
456
457 appContext = AppContext.getAppContext();
458 }
459
460 /**
461 * Initialize JNI field and method IDs.
462 */
463 private static native void initIDs();
464
465
466 /*
467 * --- Accessibility Support ---
468 *
469 * MenuComponent will contain all of the methods in interface Accessible,
470 * though it won't actually implement the interface - that will be up
471 * to the individual objects which extend MenuComponent.
472 */
473 @SuppressWarnings("serial") // Not statically typed as Serializable
474 AccessibleContext accessibleContext = null;
475
476 /**
477 * Gets the {@code AccessibleContext} associated with
478 * this {@code MenuComponent}.
479 *
480 * The method implemented by this base class returns {@code null}.
481 * Classes that extend {@code MenuComponent}
482 * should implement this method to return the
483 * {@code AccessibleContext} associated with the subclass.
484 *
485 * @return the {@code AccessibleContext} of this
486 * {@code MenuComponent}
487 * @since 1.3
488 */
489 public AccessibleContext getAccessibleContext() {
490 return accessibleContext;
491 }
492
493 /**
|