Class SearchBar

    • Method Detail

      • editor

        public void editor​(TextPanel text,
                           boolean srch)
        Sets the specified editor and updates the component layout.
        Parameters:
        text - editor
        srch - triggers a search in the specified editor
      • button

        public AbstractButton button​(String help)
        Returns a search button.
        Parameters:
        help - help text
        Returns:
        button
      • refreshLayout

        public void refreshLayout()
        Refreshes the layout.
      • activate

        public void activate​(String string,
                             boolean focus,
                             boolean enforce)
        Activates the search bar. A new search is triggered if the new search term differs from the last one.
        Parameters:
        string - search string (ignored if empty)
        enforce - enforce search
        focus - indicates if the search field should be focused
      • deactivate

        public boolean deactivate​(boolean close)
        Deactivates the search bar.
        Parameters:
        close - close bar
        Returns:
        true if panel was closed
      • toggle

        public void toggle​(AbstractButton button)
        Toggles a button and starts a new search.
        Parameters:
        button - button to toggle