Class FavoritesManagementPanel.FavoritesListModel

    • Field Detail

      • m_Superclass

        protected Class m_Superclass
        the superclass to display.
    • Constructor Detail

      • FavoritesListModel

        public FavoritesListModel()
        Initializes the model with no favorites.
      • FavoritesListModel

        public FavoritesListModel​(Favorites fav)
        Initializes the model.
        Parameters:
        fav - the favorites to use
      • FavoritesListModel

        public FavoritesListModel​(Favorites fav,
                                  Class cls)
        Initializes the model.
        Parameters:
        fav - the favorites to use
        cls - the class to display
    • Method Detail

      • setSuperclass

        public void setSuperclass​(String value)
        Sets the superclass to use.
        Parameters:
        value - the superclass
      • setSuperclass

        public void setSuperclass​(Class value)
        Sets the superclass to use.
        Parameters:
        value - the superclass
      • getSuperclass

        public Class getSuperclass()
        Returns the currently set superclass.
        Returns:
        the superclass, can be null
      • getName

        public String getName​(int index)
        Returns the name of the favorite at the specified location.
        Parameters:
        index - the list index of the favorite
        Returns:
        the name