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) intgetSize()voidsetSelectedItem(Object obj) Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Constructor Details
-
MetadataComboBoxModel
protected MetadataComboBoxModel()
-
-
Method Details
-
getSize
public int getSize()- Specified by:
getSizein interfaceListModel<LibraryResource.Metadata>
-
getElementAt
- Specified by:
getElementAtin interfaceListModel<LibraryResource.Metadata>
-
setSelectedItem
- Specified by:
setSelectedItemin interfaceComboBoxModel<LibraryResource.Metadata>
-
getSelectedItem
- Specified by:
getSelectedItemin interfaceComboBoxModel<LibraryResource.Metadata>
-