Class AbstractFilePickList<T extends IFilePickItem>

    • Constructor Detail

      • AbstractFilePickList

        public AbstractFilePickList()
      • AbstractFilePickList

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

        public AbstractFilePickList​(com.google.gwt.json.client.JSONArray jsonFilePickList)
    • Method Detail

      • contains

        public abstract boolean contains​(String fileNameWithPath)
      • toJson

        public com.google.gwt.json.client.JSONArray toJson()
        Returns:
        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.
        Parameters:
        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()
        Returns:
        serialize to JSON String suitable for storage
      • toString

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

        public ArrayList<T> getFilePickList()
      • setFilePickList

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

        public int getMaxSize()
        Returns:
        the maxSize
      • setMaxSize

        public void setMaxSize​(int maxSize)
        Parameters:
        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
        Parameters:
        settingName -
      • reloadFavorites

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

        public void reloadRecents​(T pickListItem,
                                  String command)