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(String alias, String href, boolean aliasspecified)
          Inserts an external link with the given values into the editor.
 void insertLink(String destination, String alias, String href, boolean aliasspecified)
          Inserts a link with the given values into the editor.
 

Method Detail

insertLink

void insertLink(String destination,
                String alias,
                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(String alias,
                        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.