Package snap.web

Class RecentFiles

All Implemented Interfaces:
PropChange.DoChange

public class RecentFiles extends ViewOwner
A class to manage UI for recent files (can show a panel or a menu).
  • Constructor Details

    • RecentFiles

      public RecentFiles()
  • Method Details

    • getFiles

      public static WebFile[] getFiles()
      Returns the array of recent files.
    • getURLs

      public static WebURL[] getURLs()
      Returns the array of recent file URLs.
    • getUrlStrings

      public static String[] getUrlStrings()
      Returns the array of recent file URL strings.
    • addUrlString

      public static void addUrlString(String urlString)
      Adds a URL string to recent files and updates the users preferences.
    • removeUrlString

      public static void removeUrlString(String urlString)
      Removes a URL string from recent files and updates the users preferences.
    • clearRecentFiles

      public static void clearRecentFiles()
      Clears recent files from preferences.
    • addURL

      public static void addURL(WebURL aURL)
      Adds a URL string to recent files and updates the users preferences.
    • removeURL

      public static void removeURL(WebURL aURL)
      Removes a URL string from recent files and updates the users preferences.
    • getRecentUrlsForTypes

      public static WebURL[] getRecentUrlsForTypes(String[] theTypes)
      Returns the most recent file for given type.
    • getNormalizedUrlString

      public static String getNormalizedUrlString(String urlString)
      Returns a standard URL String for given URL string.
    • setPrefsKey

      public static void setPrefsKey(String aKey)
      Sets the Recent files key.