Package adams.gui.tools
Class FavoritesManagementPanel.AbstractFavoritesListModel
- java.lang.Object
-
- javax.swing.AbstractListModel<E>
-
- javax.swing.DefaultListModel
-
- adams.gui.tools.FavoritesManagementPanel.AbstractFavoritesListModel
-
- All Implemented Interfaces:
Serializable
,ListModel
- Direct Known Subclasses:
FavoritesManagementPanel.FavoritesListModel
,FavoritesManagementPanel.SuperclassListModel
- Enclosing class:
- FavoritesManagementPanel
public abstract static class FavoritesManagementPanel.AbstractFavoritesListModel extends DefaultListModel
Abstract List model class for displaying favorites.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Favorites
m_Favorites
the underlying favorites.-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description AbstractFavoritesListModel()
Initializes the model with no favorites.AbstractFavoritesListModel(Favorites fav)
Initializes the model.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Favorites
getFavorites()
Returns the underlying favorites.void
setFavorites(Favorites value)
Sets the favorites to display.abstract void
update()
Updates the list.-
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
-
-
-
-
Field Detail
-
m_Favorites
protected Favorites m_Favorites
the underlying favorites.
-
-
Constructor Detail
-
AbstractFavoritesListModel
public AbstractFavoritesListModel()
Initializes the model with no favorites.
-
AbstractFavoritesListModel
public AbstractFavoritesListModel(Favorites fav)
Initializes the model.- Parameters:
fav
- the favorites to use
-
-
Method Detail
-
setFavorites
public void setFavorites(Favorites value)
Sets the favorites to display.- Parameters:
value
- the favorites to use
-
getFavorites
public Favorites getFavorites()
Returns the underlying favorites.- Returns:
- the favorites in use
-
update
public abstract void update()
Updates the list.
-
-