Class ClientScriptSearchProvider.MenuNodeScriptSearchObject

java.lang.Object
AbstractScriptSearchProvider<ClientScriptConfig>.AbstractScriptSearchObject
com.inductiveautomation.factorypmi.designer.search.ClientScriptSearchProvider.MenuNodeScriptSearchObject
All Implemented Interfaces:
SearchObject
Enclosing class:
ClientScriptSearchProvider

protected class ClientScriptSearchProvider.MenuNodeScriptSearchObject extends AbstractScriptSearchProvider<ClientScriptConfig>.AbstractScriptSearchObject
  • Constructor Details

    • MenuNodeScriptSearchObject

      public MenuNodeScriptSearchObject(String parentPath, MenuNode node)
  • Method Details

    • getNode

      public MenuNode getNode()
    • getIcon

      public Icon getIcon()
      Description copied from interface: SearchObject
      Returns an icon that can be used to identify this type of result. Should be 16x16 or smaller.
    • getOwnerName

      public String getOwnerName()
      Description copied from interface: SearchObject
      The name of the entity where this result is found. Used in the results display to help distinguish similar items.
      Specified by:
      getOwnerName in interface SearchObject
      Overrides:
      getOwnerName in class AbstractScriptSearchProvider<ClientScriptConfig>.AbstractScriptSearchObject
    • getName

      public String getName()
      Description copied from interface: SearchObject
      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

      public String getText()
      Description copied from interface: SearchObject
      Gets the text representation of the search result. This is what will be used for the "search".
    • setText

      public void setText(String value) throws IllegalArgumentException
      Description copied from interface: SearchObject
      Updates the search result with the new value- the "replace" in "search & replace".
      Throws:
      IllegalArgumentException - If the new text value is not suitable for this search object