Interface HyperlinkEditor

All Known Implementing Classes:
HyperlinkEditorPanel

@OpenApiAll public interface HyperlinkEditor
Hyperlink editor.
  • Method Details

    • getTitle

      String getTitle()
      Get editor title.
      Returns:
      title string.
    • getComponent

      Component getComponent()
      Get editor component.
      Returns:
      component.
    • getHyperlink

      @CheckForNull Hyperlink getHyperlink(String text)
      Get edited hyperlink.
      Parameters:
      text - hyperlink text.
      Returns:
      hyperlink.
    • setHyperlink

      void setHyperlink(Hyperlink link)
      Set hyperlink to edit.
      Parameters:
      link - hyperlink.
    • setFavorites

      @Deprecated void setFavorites(List<Hyperlink> favorites)
      Deprecated.
      Set favorite hyperlinks. Editor can show favorite hyperlinks.

      Deprecated Use setOptions(com.nomagic.magicdraw.hyperlinks.ui.HyperlinkEditorOptions)

      Parameters:
      favorites - favorite hyperlinks.
    • setOptions

      default void setOptions(@CheckForNull HyperlinkEditorOptions options)
      Set options which can be used in editor editor;
      Parameters:
      options - hyperlink editor options
    • isProjectScope

      boolean isProjectScope()
      If edited hyperlink is of project scope. Used to calculate favorite hyperlinks storage - project hyperlink is stored in project, non project hyperlink is stored in environment.
      Returns:
      true if hyperlink is project specific, false - environment specific.