| public class javax.swing DefaultSingleSelectionModel
|
Java SE 6 |
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans package.
Please see java.beans.XMLEncoder.
| version | 1.36 11/17/05 |
| Fields | |
|---|---|
| protected ChangeEvent | changeEvent |
| protected EventListenerList | listenerList The collection of registered listeners |
| Constructors | |
|---|---|
| public | DefaultSingleSelectionModel() |
| Methods | |||
|---|---|---|---|
| public void | addChangeListener(ChangeListener l) Adds a ChangeListener to the button.
| ||
| public void | clearSelection() | ||
| protected void | fireStateChanged() Details
Notifies all listeners that have registered interest for
notification on this event type. The event instance
is created lazily.
| ||
| public void | removeChangeListener(ChangeListener l) Removes a ChangeListener from the button.
| ||
| Properties | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public ChangeListener[] | getChangeListeners() Details
Returns an array of all the change listeners
registered on this DefaultSingleSelectionModel.
| ||||||||||
| public EventListener[]<T> | getListeners(Class listenerType) Details
Returns an array of all the objects currently registered as
FooListeners
upon this model.
FooListeners
are registered using the addFooListener method.
You can specify the ChangeListener[] cls = (ChangeListener[])(m.getListeners(ChangeListener.class));If no such listeners exist, this method returns an empty array.
| ||||||||||
| public boolean | isSelected() | ||||||||||
| public void | setSelectedIndex(int index) | ||||||||||
| public int | getSelectedIndex() | ||||||||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|