Class SearchBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public final class SearchBar extends BaseXBack
This panel provides search and replace facilities.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
See Also:
  • Method Details

    • 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