Class SearchResultsTree

All Implemented Interfaces:
com.dassault_systemes.modeler.magic.ui.EditActionExecutorsOwner, com.nomagic.awt.PopupOwner, com.nomagic.magicdraw.ui.Activatable, WindowComponent, com.nomagic.magicdraw.ui.Updatable, Cachable, Autoscroll, FocusListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

@OpenApi public class SearchResultsTree extends BrowserTabTree
Tree for search results displaying.
See Also:
  • Field Details

    • INFO

      public static final com.nomagic.magicdraw.ui.browser.BrowserComponentInfo INFO
  • Constructor Details

    • SearchResultsTree

      public SearchResultsTree(Browser browser, com.nomagic.magicdraw.ui.browser.BrowserComponentInfo info, Integer id)
  • Method Details

    • getInstanceID

      public Integer getInstanceID()
    • initTree

      public void initTree()
      Description copied from class: BrowserTabTree
      Initializes the tree. Root nodes will be created here.
      Overrides:
      initTree in class BrowserTabTree
    • setAdditionalCompletionHandler

      public void setAdditionalCompletionHandler(com.nomagic.magicdraw.utils.concurrent.CompletionHandler<Boolean,Object> handler)
      Set additional task completion handler
      Parameters:
      handler - handler
    • searchCompletedCallback

      public void searchCompletedCallback()
    • disposeAll

      public void disposeAll()
      Overrides:
      disposeAll in class BrowserTabTree
    • dispose

      public void dispose()
      Description copied from class: Tree
      Removes all nodes recursively.
      Overrides:
      dispose in class Tree
    • getRoot

      public com.nomagic.magicdraw.ui.browser.search.SearchResultsRootNode getRoot()
    • addFoundElements

      @OpenApi public void addFoundElements(Collection<Element> elements)
      Add elements to search results.
      Parameters:
      elements - elements to add.
    • addFoundSymbols

      @OpenApi public void addFoundSymbols(Collection<PresentationElement> symbols)
      Add symbols to search results.
      Parameters:
      symbols - symbols to add.
    • addElements

      public void addElements(Collection<BaseElement> elements)
      Add elements to search results.
      Parameters:
      elements - elements to add.
    • clearSearchResults

      @OpenApi public void clearSearchResults()
      Clear search results.
    • updateBySearchResults

      public void updateBySearchResults()
    • getActions

      protected ActionsManager getActions()
      Description copied from class: BrowserTabTree
      Returns shortcuts action manager for this browser.
      Overrides:
      getActions in class BrowserTabTree
      Returns:
      ActionsManager with actions to register in this browser as KeyListeners
    • configureContextActions

      protected void configureContextActions(ActionsManager manager)
      Description copied from class: BrowserTabTree
      Configures context menu actions.
      Specified by:
      configureContextActions in class BrowserTabTree
      Parameters:
      manager - a manager with context menu actions to configure.
    • configureToolbarActions

      protected void configureToolbarActions(ActionsManager manager)
      Specified by:
      configureToolbarActions in class BrowserTabTree
    • isShowOwner

      protected boolean isShowOwner()
      Overrides:
      isShowOwner in class Tree
    • setNeedsInit

      public void setNeedsInit(boolean needsInit)
      Description copied from class: BrowserTabTree
      Sets needs init flag.
      Overrides:
      setNeedsInit in class BrowserTabTree
      Parameters:
      needsInit - if this flag is true, tree will be initialized on activation.
    • resetTabTree

      protected void resetTabTree()
      Overrides:
      resetTabTree in class BrowserTabTree