Package adams.gui.tools
Class FavoritesManagementPanel.SuperclassListModel
- java.lang.Object
-
- javax.swing.AbstractListModel<E>
-
- javax.swing.DefaultListModel
-
- adams.gui.tools.FavoritesManagementPanel.AbstractFavoritesListModel
-
- adams.gui.tools.FavoritesManagementPanel.SuperclassListModel
-
- All Implemented Interfaces:
Serializable
,ListModel
- Enclosing class:
- FavoritesManagementPanel
public static class FavoritesManagementPanel.SuperclassListModel extends FavoritesManagementPanel.AbstractFavoritesListModel
Table model class for displaying the superclasses.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.tools.FavoritesManagementPanel.AbstractFavoritesListModel
m_Favorites
-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description SuperclassListModel()
Initializes the model with no favorites.SuperclassListModel(Favorites fav)
Initializes the model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Favorites
getFavorites()
Returns the underlying favorites.void
update()
Updates the list.-
Methods inherited from class adams.gui.tools.FavoritesManagementPanel.AbstractFavoritesListModel
setFavorites
-
Methods inherited from class javax.swing.DefaultListModel
add, addAll, addAll, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
SuperclassListModel
public SuperclassListModel()
Initializes the model with no favorites.
-
SuperclassListModel
public SuperclassListModel(Favorites fav)
Initializes the model.- Parameters:
fav
- the favorites to use
-
-
Method Detail
-
update
public void update()
Updates the list.- Specified by:
update
in classFavoritesManagementPanel.AbstractFavoritesListModel
-
getFavorites
public Favorites getFavorites()
Returns the underlying favorites.- Overrides:
getFavorites
in classFavoritesManagementPanel.AbstractFavoritesListModel
- Returns:
- the favorites in use
-
-