Package snap.viewx

Class WebSitePane

All Implemented Interfaces:
PropChange.DoChange
Direct Known Subclasses:
RecentFilesSitePane, WebSitePaneX

public class WebSitePane extends ViewOwner
This class is the base class for WebSite open/save browsers.
  • Field Details

  • Constructor Details

    • WebSitePane

      public WebSitePane()
      Constructor.
  • Method Details

    • getSite

      public WebSite getSite()
      Returns the site currently being browsed.
    • setSite

      public void setSite(WebSite aSite)
      Sets the site for the panel.
    • getSelFile

      public WebFile getSelFile()
      Returns the selected file.
    • setSelFile

      public void setSelFile(WebFile aFile)
      Sets the selected file or directory.
    • getSelDir

      public WebFile getSelDir()
      Returns the selected directory.
    • getTargFile

      public WebFile getTargFile()
      Returns the file targeted by the input text.
    • setTargFile

      public void setTargFile(WebFile aFile)
      Sets the file targeted by the input text.
    • getValidSelOrTargFile

      public WebFile getValidSelOrTargFile()
      Returns the selected or targeted file if valid.
    • isOpening

      public boolean isOpening()
      Returns whether is opening.
    • isSaving

      public boolean isSaving()
      Returns whether is saving.
    • setSaving

      public void setSaving(boolean aValue)
      Sets whether is saving.
    • getFileValidator

      public Predicate<WebFile> getFileValidator()
      Returns the function that determines whether file can be selected.
    • setFileValidator

      public void setFileValidator(Predicate<WebFile> fileValidator)
      Sets the function that determines whether file can be selected.
    • getTypes

      public String[] getTypes()
      Returns the file types.
    • setTypes

      public void setTypes(String... theExts)
      Sets the file types.
    • getActionHandler

      public EventListener getActionHandler()
      Returns the listener triggered when action event is fired.
    • setActionHandler

      public void setActionHandler(EventListener actionListener)
      Sets the listener triggered when action event is fired.
    • isValidFile

      public boolean isValidFile(WebFile aFile)
      Returns whether given file is valid.
    • fireActionEvent

      protected void fireActionEvent(ViewEvent anEvent)
      Called on FileBrowser double-click or InputText enter key.
    • setShowing

      protected void setShowing(boolean aValue)
      Override to reset files UI when showing.
      Overrides:
      setShowing in class ViewOwner
    • resetFilesUI

      protected void resetFilesUI()
      Called when Showing changes.
    • getDefaultSelFile

      protected WebFile getDefaultSelFile()
      Resets the selected file.
    • setSiteFilesInUI

      protected void setSiteFilesInUI()
      Called to set the WebFiles in UI.