566 |
return (ItemListener[]) getListeners (ItemListener.class); |
return (ItemListener[]) getListeners (ItemListener.class); |
567 |
} |
} |
568 |
|
|
569 |
|
/** |
570 |
|
* Gets the AccessibleContext associated with this <code>Choice</code>. |
571 |
|
* The context is created, if necessary. |
572 |
|
* |
573 |
|
* @return the associated context |
574 |
|
*/ |
575 |
public AccessibleContext getAccessibleContext() |
public AccessibleContext getAccessibleContext() |
576 |
{ |
{ |
577 |
return new AccessibleAWTChoice(); |
/* Create the context if this is the first request */ |
578 |
|
if (accessibleContext == null) |
579 |
|
accessibleContext = new AccessibleAWTChoice(); |
580 |
|
return accessibleContext; |
581 |
} |
} |
582 |
} // class Choice |
} // class Choice |