| Modifier and Type | Method and Description |
|---|---|
| public void | addChangeListener(ChangeListener
the ChangeListener to add listener)Adds listener as a listener to changes in the model. |
| public void | |
| public int | Returns: the model's selection, or -1 if there is no selectionReturns the model's selection. |
| public boolean | Returns: true if a value is currently selectedReturns true if the selection model currently has a selected value. |
| public void | removeChangeListener(ChangeListener
the ChangeListener to remove listener)Removes listener as a listener to changes in the model. |
| public void | setSelectedIndex(int
an int specifying the model selection index)Sets the model's selected index to index. |
| addChangeListener | back to summary |
|---|---|
| public void addChangeListener(ChangeListener listener) Adds listener as a listener to changes in the model.
| |
| clearSelection | back to summary |
|---|---|
| public void clearSelection() Clears the selection (to -1). | |
| getSelectedIndex | back to summary |
|---|---|
| public int getSelectedIndex() Returns the model's selection.
| |
| isSelected | back to summary |
|---|---|
| public boolean isSelected() Returns true if the selection model currently has a selected value.
| |
| removeChangeListener | back to summary |
|---|---|
| public void removeChangeListener(ChangeListener listener) Removes listener as a listener to changes in the model.
| |
| setSelectedIndex | back to summary |
|---|---|
| public void setSelectedIndex(int index) Sets the model's selected index to index. Notifies any listeners if the model changes
| |