|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.client.plugin.link.LinkConfig
public class LinkConfig
Stores the data about a link: information about the link: reference (wiki, space, page), URL and also about its representation in a document (parameters, etc).
| Nested Class Summary | |
|---|---|
static class |
LinkConfig.LinkType
Enumeration type to store the type of link: wiki external link, link to an existing page, link to a new page, etc. |
| Constructor Summary | |
|---|---|
LinkConfig()
|
|
| Method Summary | |
|---|---|
void |
fromJSON(java.lang.String json)
Fills this object with data from the passed JSON representation. |
java.lang.String |
getLabel()
|
java.lang.String |
getLabelText()
|
java.lang.String |
getPage()
|
java.lang.String |
getParameter(java.lang.String name)
|
java.lang.String |
getReference()
|
java.lang.String |
getSpace()
|
java.lang.String |
getTooltip()
|
LinkConfig.LinkType |
getType()
|
java.lang.String |
getUrl()
|
java.lang.String |
getWiki()
|
boolean |
isOpenInNewWindow()
|
boolean |
isReadOnlyLabel()
|
java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>> |
listParameters()
Returns an iterable type over the list of parameters for this LinkConfig. |
java.lang.String |
removeParameter(java.lang.String name)
|
void |
setLabel(java.lang.String label)
|
void |
setLabelText(java.lang.String labelText)
|
void |
setOpenInNewWindow(boolean openInNewWindow)
|
void |
setPage(java.lang.String page)
|
java.lang.String |
setParameter(java.lang.String name,
java.lang.String value)
Sets the value of the specified parameter to the specified value and returns the old value, if any, or null otherwise. |
void |
setReadOnlyLabel(boolean readOnlyLabel)
|
void |
setReference(java.lang.String reference)
|
void |
setSpace(java.lang.String space)
|
void |
setTooltip(java.lang.String tooltip)
|
void |
setType(LinkConfig.LinkType type)
|
void |
setUrl(java.lang.String url)
|
void |
setWiki(java.lang.String wiki)
|
java.lang.String |
toJSON()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinkConfig()
| Method Detail |
|---|
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url - the url to setpublic java.lang.String getWiki()
public void setWiki(java.lang.String wiki)
wiki - the wiki to setpublic java.lang.String getSpace()
public void setSpace(java.lang.String space)
space - the space to setpublic java.lang.String getPage()
public void setPage(java.lang.String page)
page - the page to setpublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - the label to setpublic LinkConfig.LinkType getType()
public void setType(LinkConfig.LinkType type)
type - the type to setpublic java.lang.String getLabelText()
public void setLabelText(java.lang.String labelText)
labelText - the labelText to setpublic boolean isReadOnlyLabel()
public void setReadOnlyLabel(boolean readOnlyLabel)
readOnlyLabel - the readOnlyLabel to setpublic java.lang.String getReference()
public void setReference(java.lang.String reference)
reference - the reference to setpublic boolean isOpenInNewWindow()
true if this link is configured to open in a new window, false otherwisepublic void setOpenInNewWindow(boolean openInNewWindow)
openInNewWindow - whether this link should be opened in a new window or notpublic java.lang.String getTooltip()
public void setTooltip(java.lang.String tooltip)
tooltip - the tooltip to set for this linkpublic java.lang.String getParameter(java.lang.String name)
name - the name of the parameter to get
public java.lang.String setParameter(java.lang.String name,
java.lang.String value)
name - the name of the parameter to setvalue - the value of the parameter to set
public java.lang.String removeParameter(java.lang.String name)
name - the name of the parameter to unset
null otherwisepublic java.lang.String toJSON()
public void fromJSON(java.lang.String json)
json - the JSON representation of this image config object.public java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>> listParameters()
LinkConfig. Implemented through this
function to hide the actual parameters map and return only a read-only iterator.
LinkConfig's parameters collection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||