E
- the type of the elements of this modelComboBoxModel<E>
, MutableComboBoxModel<E>
AbstractListModel
, BasicDirectoryModel
, DefaultComboBoxModel
, DefaultListModel
, MetalFileChooserUI.DirectoryComboBoxModel
, MetalFileChooserUI.FilterComboBoxModel
public interface ListModel<E>
JList
Modifier and Type | Method | Description |
---|---|---|
void |
addListDataListener(ListDataListener l) |
Adds a listener to the list that's notified each time a change
to the data model occurs.
|
E |
getElementAt(int index) |
Returns the value at the specified index.
|
int |
getSize() |
Returns the length of the list.
|
void |
removeListDataListener(ListDataListener l) |
Removes a listener from the list that's notified each time a
change to the data model occurs.
|
int getSize()
E getElementAt(int index)
index
- the requested indexindex
void addListDataListener(ListDataListener l)
l
- the ListDataListener
to be addedvoid removeListDataListener(ListDataListener l)
l
- the ListDataListener
to be removed Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps