com.atlassian.confluence.plugins.linkbrowser.client
Interface LinkInserter

All Known Implementing Classes:
LinkInserterImpl

public interface LinkInserter


Method Summary
 void cancel()
          Cancels the link insertion.
 void insertExternalLink(java.lang.String alias, java.lang.String href, boolean aliasspecified)
          Inserts an external link with the given values into the editor.
 void insertLink(java.lang.String destination, java.lang.String alias, java.lang.String href, boolean aliasspecified)
          Inserts a link with the given values into the editor.
 

Method Detail

insertLink

void insertLink(java.lang.String destination,
                java.lang.String alias,
                java.lang.String href,
                boolean aliasspecified)
Inserts a link with the given values into the editor. The appropriate javascript is called for the current editor and inserted in the correct cursor position. For external links, use insertExternalLink(String, String, boolean).


insertExternalLink

void insertExternalLink(java.lang.String alias,
                        java.lang.String href,
                        boolean aliasspecified)
Inserts an external link with the given values into the editor. The appropriate javascript is called for the current editor and inserted in the correct cursor position.


cancel

void cancel()
Cancels the link insertion. Any clean up code, such as restoring the scroll position should be done at this point.



Copyright © 2003-2011 Atlassian. All Rights Reserved.