Class SearchableBaseListWithButtons

    • Field Detail

      • m_PanelSearch

        protected SearchPanel m_PanelSearch
        the search panel, if search is required.
    • Constructor Detail

      • SearchableBaseListWithButtons

        public SearchableBaseListWithButtons()
        The default constructor.
      • SearchableBaseListWithButtons

        public SearchableBaseListWithButtons​(ListModel model)
        Initializes the list with the specified model.
        Parameters:
        model - the model to use
    • Method Detail

      • setAllowSearch

        public void setAllowSearch​(boolean value)
        Sets whether searching is possible.
        Parameters:
        value - true if to allow
      • getAllowSearch

        public boolean getAllowSearch()
        Returns whether search is available.
        Returns:
        true if allowed
      • getActualIndex

        public int getActualIndex​(int index)
        Returns the actual index in the model.
        Parameters:
        index - the index of the currently displayed data
        Returns:
        the index in the underlying data
      • search

        public void search​(String search)
        Performs a search using the specified search string (if search is allowed).
        Parameters:
        search - the string to search for
        See Also:
        getAllowSearch()
      • clearSearch

        public void clearSearch()
        Clears the search (if search is allowed).