Package org.opensourcephysics.tools
Class LibraryTreePanel.MetadataComboBoxModel
java.lang.Object
javax.swing.AbstractListModel<LibraryResource.Metadata>
org.opensourcephysics.tools.LibraryTreePanel.MetadataComboBoxModel
- All Implemented Interfaces:
Serializable
,ComboBoxModel<LibraryResource.Metadata>
,ListModel<LibraryResource.Metadata>
- Enclosing class:
- LibraryTreePanel
protected class LibraryTreePanel.MetadataComboBoxModel
extends AbstractListModel<LibraryResource.Metadata>
implements ComboBoxModel<LibraryResource.Metadata>
A ComboBoxModel for metadata.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetElementAt
(int index) int
getSize()
void
setSelectedItem
(Object obj) Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Constructor Details
-
MetadataComboBoxModel
protected MetadataComboBoxModel()
-
-
Method Details
-
getSize
public int getSize()- Specified by:
getSize
in interfaceListModel<LibraryResource.Metadata>
-
getElementAt
- Specified by:
getElementAt
in interfaceListModel<LibraryResource.Metadata>
-
setSelectedItem
- Specified by:
setSelectedItem
in interfaceComboBoxModel<LibraryResource.Metadata>
-
getSelectedItem
- Specified by:
getSelectedItem
in interfaceComboBoxModel<LibraryResource.Metadata>
-