|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A model that supports at most one indexed selection.
Method Summary | |
void |
addChangeListener(ChangeListener listener)
Adds listener as a listener to changes in the model. |
void |
clearSelection()
Clears the selection (to -1). |
int |
getSelectedIndex()
Returns the model's selection. |
boolean |
isSelected()
Returns true if the selection model currently has a selected value. |
void |
removeChangeListener(ChangeListener listener)
Removes listener as a listener to changes in the model. |
void |
setSelectedIndex(int index)
Sets the model's selected index to index. |
Method Detail |
public int getSelectedIndex()
setSelectedIndex(int)
public void setSelectedIndex(int index)
an
- int specifying the model selectiongetSelectedIndex()
,
addChangeListener(javax.swing.event.ChangeListener)
public void clearSelection()
public boolean isSelected()
public void addChangeListener(ChangeListener listener)
l
- the ChangeListener to addpublic void removeChangeListener(ChangeListener listener)
l
- the ChangeListener to remove
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.