Interface SearchObject

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      javax.swing.Icon getIcon()
      Returns an icon that can be used to identify this type of result.
      java.lang.String getName()
      The name of the object that matches the search pattern.
      java.lang.String getOwnerName()
      The name of the entity where this result is found.
      java.lang.String getText()
      Gets the text representation of the search result.
      default boolean isMutable()
      Whether or not the found object is mutable.
      void locate()
      Brings focus to the item in the UI in whatever way is appropriate.
      void setText​(java.lang.String value)
      Updates the search result with the new value- the "replace" in "search & replace".
    • Method Detail

      • getIcon

        javax.swing.Icon getIcon()
        Returns an icon that can be used to identify this type of result. Should be 16x16 or smaller.
      • getOwnerName

        java.lang.String getOwnerName()
        The name of the entity where this result is found. Used in the results display to help distinguish similar items.
      • getName

        java.lang.String getName()
        The name of the object that matches the search pattern. In other words, a description of the element inside the owner, such as "Name", or "Expression".
      • getText

        java.lang.String getText()
        Gets the text representation of the search result. This is what will be used for the "search".
      • setText

        void setText​(java.lang.String value)
              throws java.lang.IllegalArgumentException
        Updates the search result with the new value- the "replace" in "search & replace".
        Throws:
        java.lang.IllegalArgumentException - If the new text value is not suitable for this search object
      • locate

        void locate()
        Brings focus to the item in the UI in whatever way is appropriate. Most of the time this will mean bringing up the editor for the object.
      • isMutable

        default boolean isMutable()
        Whether or not the found object is mutable. Used for display purposes, as well as whether or not setText should be called.