Class AbstractFilePickList<T extends IFilePickItem>

    • Constructor Detail

      • AbstractFilePickList

        public AbstractFilePickList()
      • AbstractFilePickList

        public AbstractFilePickList​(ArrayList<T> filePickList)
      • AbstractFilePickList

        public AbstractFilePickList​( jsonFilePickList)
    • Method Detail

      • contains

        public abstract boolean contains​(String fileNameWithPath)
      • toJson

        public toJson()
        JSONArray representation of list suitable for storage
      • size

        public int size()
      • add

        public void add​(T pickListItem)
      • add

        public void add​(int index,
                        T pickListItem)
        If the object is already in the list it will be removed first and the index adjusted accordingly. If maxSize is positive and adding the item would exceed maxSize, then the item will not be added.
        index -
        pickListItem -
      • remove

        public void remove​(T pickListItem)
      • remove

        public T remove​(int index)
      • clear

        public void clear()
      • contains

        public boolean contains​(T pickListItem)
      • fireItemsChangedEvent

        public void fireItemsChangedEvent()
      • stringify

        public String stringify()
        serialize to JSON String suitable for storage
      • toString

        public String toString()
        helper method for debugging. Use stringify() for formal JSON conversion.
        toString in class Object
      • getFilePickList

        public ArrayList<T> getFilePickList()
      • setFilePickList

        public void setFilePickList​(ArrayList<T> filePickList)
      • getMaxSize

        public int getMaxSize()
        the maxSize
      • setMaxSize

        public void setMaxSize​(int maxSize)
        maxSize - Set Maximum number of entries in list, 0 = unlimited
      • save

        public void save​(String settingName)
        Convert the FilePickList to JSON and save it to a user setting
        settingName -
      • reloadFavorites

        public void reloadFavorites​(T pickListItem,
                                    String command)
      • reloadRecents

        public void reloadRecents​(T pickListItem,
                                  String command)