Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.DefaultSingleSelectionModel
A generic implementation of SingleSelectionModel.
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. A future release of Swing will provide support for long term persistence.
Field Summary | |
protected ChangeEvent |
changeEvent
|
protected EventListenerList |
listenerList
The collection of registered listeners |
Constructor Summary | |
DefaultSingleSelectionModel()
|
Method Summary | |
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener to the button. |
void |
clearSelection()
Clears the selection (to -1). |
protected void |
fireStateChanged()
|
int |
getSelectedIndex()
Returns the model's selection. |
boolean |
isSelected()
Returns true if the selection model currently has a selected value. |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from the button. |
void |
setSelectedIndex(int index)
Sets the model's selected index to index. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected transient ChangeEvent changeEvent
protected EventListenerList listenerList
Constructor Detail |
public DefaultSingleSelectionModel()
Method Detail |
public int getSelectedIndex()
SingleSelectionModel.setSelectedIndex(int)
public void setSelectedIndex(int index)
an
- int specifying the model selectionSingleSelectionModel.getSelectedIndex()
,
SingleSelectionModel.addChangeListener(javax.swing.event.ChangeListener)
public void clearSelection()
public boolean isSelected()
public void addChangeListener(ChangeListener l)
l
- the ChangeListener to addpublic void removeChangeListener(ChangeListener l)
l
- the ChangeListener to removeprotected void fireStateChanged()
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |