com.atlassian.confluence.plugins.linkbrowser.client
Class LinkInserterImpl
java.lang.Object
com.atlassian.confluence.plugins.linkbrowser.client.LinkInserterImpl
- All Implemented Interfaces:
- LinkInserter
public class LinkInserterImpl
- extends Object
- implements 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkInserterImpl
public LinkInserterImpl()
insertLink
public void insertLink(String destination,
String alias,
String href,
boolean aliasspecified)
- Description copied from interface:
LinkInserter
- 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
LinkInserter.insertExternalLink(String, String, boolean)
.
- Specified by:
insertLink
in interface LinkInserter
insertExternalLink
public void insertExternalLink(String alias,
String href,
boolean aliasspecified)
- Description copied from interface:
LinkInserter
- 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.
- Specified by:
insertExternalLink
in interface LinkInserter
cancel
public void cancel()
- Description copied from interface:
LinkInserter
- Cancels the link insertion. Any clean up code, such as restoring the scroll position should be done at this point.
- Specified by:
cancel
in interface LinkInserter
Copyright © 2003-2011 Atlassian. All Rights Reserved.