de.ls10.jsf.components.models
Class TagCloudLink

java.lang.Object
  extended by de.ls10.jsf.components.models.TagCloudLink
All Implemented Interfaces:
java.lang.Comparable<TagCloudLink>
Direct Known Subclasses:
TagCloudLinkExternal, TagCloudLinkInternal

public abstract class TagCloudLink
extends java.lang.Object
implements java.lang.Comparable<TagCloudLink>

Author:
Philip Gerlach , Oliver Horst

Field Summary
protected  boolean enabled
           
protected  java.lang.String value
           
protected  TagCloudLinkImportance weight
           
 
Constructor Summary
TagCloudLink()
           
 
Method Summary
 int compareTo(TagCloudLink other)
          Implementation of the @link Comparable interface.
 java.lang.String getValue()
           
 TagCloudLinkImportance getWeight()
           
 boolean isEnabled()
           
 void setEnabled(boolean enabled)
          Should the link be clickable?
 void setValue(java.lang.String value)
          The text that should be displayed for this link in the tagcloud.
 void setWeight(TagCloudLinkImportance weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected java.lang.String value

weight

protected TagCloudLinkImportance weight

enabled

protected boolean enabled
Constructor Detail

TagCloudLink

public TagCloudLink()
Method Detail

setValue

public void setValue(java.lang.String value)
The text that should be displayed for this link in the tagcloud. Usually this is the name of the tag corresponding to this Link.

Parameters:
value - Text that should be rendered in the tagcloud.

getValue

public java.lang.String getValue()

setWeight

public void setWeight(TagCloudLinkImportance weight)
Parameters:
weight -

getWeight

public TagCloudLinkImportance getWeight()

setEnabled

public void setEnabled(boolean enabled)
Should the link be clickable?

Parameters:
enabled -
true The link is rendered as normal link and could be clicked by the user.
false The link is rendered as normal text.

isEnabled

public boolean isEnabled()

compareTo

public int compareTo(TagCloudLink other)
Implementation of the @link Comparable interface.

Specified by:
compareTo in interface java.lang.Comparable<TagCloudLink>
See Also:
Comparable.compareTo(Object)


Copyright © 2007 University of Dortmund (FB4 / LS10). All Rights Reserved.