Class FavoritesManagementPanel.FavoritesListModel

    • Field Detail

      • m_Superclass

        protected Class m_Superclass
        the superclass to display.
      • m_Array

        protected boolean m_Array
        whether we are managing arrays.
    • 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,
                                  boolean array)
        Initializes the model.
        Parameters:
        fav - the favorites to use
        cls - the class to display
        array - whether this is for arrays
    • Method Detail

      • setSuperclass

        public void setSuperclass​(String value)
        Sets the superclass to use.
        Parameters:
        value - the superclass, can have trailing [] to denote arrays
      • setSuperclass

        public void setSuperclass​(String value,
                                  boolean array)
        Sets the superclass to use.
        Parameters:
        value - the superclass
        array - whether this is for arrays
      • setSuperclass

        public void setSuperclass​(Class value,
                                  boolean array)
        Sets the superclass to use.
        Parameters:
        value - the superclass
        array - whether this is for arrays
      • getSuperclass

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

        public boolean isArray()
        Returns whether this is for arrays.
        Returns:
        true if for arrays
      • 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