Class SearchDialog.SearchKeywordRow

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openstreetmap.josm.gui.dialogs.SearchDialog.SearchKeywordRow
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
SearchDialog

private static class SearchDialog.SearchKeywordRow extends JPanel
  • Field Details

  • Constructor Details

  • Method Details

    • addTitle

      Adds the title (prefix) label at the beginning of the row. Should be called only once.
      Parameters:
      title - English title
      Returns:
      this for easy chaining
    • addKeyword

      public SearchDialog.SearchKeywordRow addKeyword(String displayText, String insertText, String description, String... examples)
      Adds an example keyword label at the end of the row. Can be called several times.
      Parameters:
      displayText - displayed HTML text
      insertText - optional: if set, makes the label clickable, and insertText will be inserted in search string
      description - optional: HTML text to be displayed in the tooltip
      examples - optional: examples joined as HTML list in the tooltip
      Returns:
      this for easy chaining