Class FileDropDownSelectionDataModel

    • Constructor Detail

      • FileDropDownSelectionDataModel

        public FileDropDownSelectionDataModel​(GhidraFileChooser chooser)
    • Method Detail

      • getIndexOfFirstMatchingEntry

        public int getIndexOfFirstMatchingEntry​(java.util.List<java.io.File> data,
                                                java.lang.String text)
        Description copied from interface: DropDownTextFieldDataModel
        Returns the index in the given list of the first item that matches the given text. For data sets that do not allow duplicates, this is simply the index of the item that matches the text in the list. For items that allow duplicates, the is the index of the first match.
        Specified by:
        getIndexOfFirstMatchingEntry in interface DropDownTextFieldDataModel<java.io.File>
        Parameters:
        data - the list to search
        text - the text to match against the items in the list
        Returns:
        the index in the given list of the first item that matches the given text.
      • getMatchingData

        public java.util.List<java.io.File> getMatchingData​(java.lang.String searchText)
        Description copied from interface: DropDownTextFieldDataModel
        Returns a list of data that matches the given searchText. A match typically means a "startsWith" match. A list is returned to allow for multiple matches.
        Specified by:
        getMatchingData in interface DropDownTextFieldDataModel<java.io.File>
        Parameters:
        searchText - The text used to find matches.
        Returns:
        a list of items matching the given text.