org.xwiki.gwt.wysiwyg.client.plugin.link
Class LinkConfig

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.wiki.EntityConfig
      extended by org.xwiki.gwt.wysiwyg.client.plugin.link.LinkConfig
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class LinkConfig
extends EntityConfig

Stores data about a link: reference (wiki, space, page), URL, label, tooltip.

Version:
$Id: 9c0b0b2772db9b4e45e9d1589722c79f226eeab8 $

Nested Class Summary
static class LinkConfig.LinkType
          Link types.
 
Constructor Summary
LinkConfig()
           
 
Method Summary
 String getLabel()
           
 String getLabelText()
           
 String getTooltip()
           
 LinkConfig.LinkType getType()
           
 boolean isOpenInNewWindow()
           
 boolean isReadOnlyLabel()
           
 void setLabel(String label)
           
 void setLabelText(String labelText)
           
 void setOpenInNewWindow(boolean openInNewWindow)
           
 void setReadOnlyLabel(boolean readOnlyLabel)
           
 void setTooltip(String tooltip)
           
 void setType(LinkConfig.LinkType type)
           
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.wiki.EntityConfig
getReference, getUrl, setReference, setUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkConfig

public LinkConfig()
Method Detail

getLabel

public String getLabel()
Returns:
the label

setLabel

public void setLabel(String label)
Parameters:
label - the label to set

getType

public LinkConfig.LinkType getType()
Returns:
the type

setType

public void setType(LinkConfig.LinkType type)
Parameters:
type - the type to set

getLabelText

public String getLabelText()
Returns:
the labelText

setLabelText

public void setLabelText(String labelText)
Parameters:
labelText - the labelText to set

isReadOnlyLabel

public boolean isReadOnlyLabel()
Returns:
the readOnlyLabel

setReadOnlyLabel

public void setReadOnlyLabel(boolean readOnlyLabel)
Parameters:
readOnlyLabel - the readOnlyLabel to set

isOpenInNewWindow

public boolean isOpenInNewWindow()
Returns:
true if this link is configured to open in a new window, false otherwise

setOpenInNewWindow

public void setOpenInNewWindow(boolean openInNewWindow)
Parameters:
openInNewWindow - whether this link should be opened in a new window or not

getTooltip

public String getTooltip()
Returns:
the tooltip of this link

setTooltip

public void setTooltip(String tooltip)
Parameters:
tooltip - the tooltip to set for this link


Copyright © 2004–2015 XWiki. All rights reserved.