Class BaseExplorerFileType<T extends IExplorerFileTypeHandler>

    • Constructor Detail

      • BaseExplorerFileType

        public BaseExplorerFileType()
      • BaseExplorerFileType

        public BaseExplorerFileType​(String name,
                                    String defaultFileExtension,
                                    String[] filterExtensions,
                                    String[] filterNames,
                                    Properties capabilities)
    • Method Detail

      • supportsFile

        public boolean supportsFile​(IHasFilename metaObject)
        Description copied from interface: IHopFileType
        Checks whether or not this file type supports the given metadata class
        Specified by:
        supportsFile in interface IHopFileType
        Parameters:
        metaObject - The object to verify support for
        Returns:
      • getContextHandlers

        public List<IGuiContextHandler> getContextHandlers()
        Specified by:
        getContextHandlers in interface IHopFileType
        Returns:
        A list of context handlers allowing you to see all the actions that can be taken with the current file type. (CRUD, ...)
      • setName

        public void setName​(String name)
        Parameters:
        name - The name to set
      • setDefaultFileExtension

        public void setDefaultFileExtension​(String defaultFileExtension)
        Parameters:
        defaultFileExtension - The defaultFileExtension to set
      • setFilterExtensions

        public void setFilterExtensions​(String[] filterExtensions)
        Parameters:
        filterExtensions - The filterExtensions to set
      • setFilterNames

        public void setFilterNames​(String[] filterNames)
        Parameters:
        filterNames - The filterNames to set
      • setCapabilities

        public void setCapabilities​(Properties capabilities)
        Parameters:
        capabilities - The capabilities to set
      • getFileTypeImage

        public String getFileTypeImage()
        Description copied from interface: IHopFileType
        The icon image for this file type
        Specified by:
        getFileTypeImage in interface IHopFileType
        Returns:
        The path to the SVG file, a logo for this file type
      • openFile

        public T openFile​(HopGui hopGui,
                          String filename,
                          IVariables parentVariables)
                   throws HopException
        Description copied from interface: IHopFileType
        Load and display the file
        Specified by:
        openFile in interface IHopFileType
        Parameters:
        hopGui - The hop GUI to reference
        filename - The filename to load
        parentVariables - The parent variablespace to inherit from
        Returns:
        The hop file handler
        Throws:
        HopException