de.ls10.jsf.components.models
Class DefaultTagCloudModel

java.lang.Object
  extended by de.ls10.jsf.components.models.DefaultTagCloudModel
All Implemented Interfaces:
TagCloudModel

public abstract class DefaultTagCloudModel
extends java.lang.Object
implements TagCloudModel

A default abstract implementation of TagCloudModel. Inheriting models have to implement the update method.

Author:
Philip Gerlach , Oliver Horst

Field Summary
protected  java.util.List<TagCloudLink> tags
           
 
Constructor Summary
DefaultTagCloudModel()
           
 
Method Summary
 void addTag(TagCloudLink tag)
          Add the given tag/link to the model.
 java.util.List<TagCloudLink> getTags()
          Get the list of all tags/links of the model.
 void removeAllTags()
          Remove all tags/links from the model.
 void removeTag(TagCloudLink tag)
          Remove the given tag/link from the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.ls10.jsf.components.models.TagCloudModel
update
 

Field Detail

tags

protected java.util.List<TagCloudLink> tags
Constructor Detail

DefaultTagCloudModel

public DefaultTagCloudModel()
Method Detail

addTag

public void addTag(TagCloudLink tag)
Description copied from interface: TagCloudModel
Add the given tag/link to the model.

Specified by:
addTag in interface TagCloudModel

removeTag

public void removeTag(TagCloudLink tag)
Description copied from interface: TagCloudModel
Remove the given tag/link from the model.

Specified by:
removeTag in interface TagCloudModel

getTags

public java.util.List<TagCloudLink> getTags()
Description copied from interface: TagCloudModel
Get the list of all tags/links of the model.

Specified by:
getTags in interface TagCloudModel
Returns:
alphabetically sorted list of all tags added to this model.

removeAllTags

public void removeAllTags()
Description copied from interface: TagCloudModel
Remove all tags/links from the model.

Specified by:
removeAllTags in interface TagCloudModel


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