com.atlassian.renderer
Class DefaultIconManager

java.lang.Object
  extended by com.atlassian.renderer.DefaultIconManager
All Implemented Interfaces:
IconManager

public class DefaultIconManager
extends java.lang.Object
implements IconManager

An icon manager that looks up a property to find the location of the emoticon icons and that has no link decoration icons.


Constructor Summary
DefaultIconManager()
           
 
Method Summary
 Icon getEmoticon(java.lang.String symbol)
          Retrieve an emoticon for a particular icon name.
protected  java.util.Map<java.lang.String,Icon> getEmoticonsMap()
           
 java.lang.String[] getEmoticonSymbols()
          Retrieve all the available emoticon symbols
protected  java.util.Map<java.lang.String,Icon> getIconsMap()
           
 Icon getLinkDecoration(java.lang.String iconName)
          Retrieve a link decoration for a particular icon name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIconManager

public DefaultIconManager()
Method Detail

getLinkDecoration

public Icon getLinkDecoration(java.lang.String iconName)
Retrieve a link decoration for a particular icon name. If no icon matches, an icon that draws no image, will be returned.

Specified by:
getLinkDecoration in interface IconManager
Parameters:
iconName - the name of the icon to retrieve
Returns:
the appropriate icon, or an icon that draws no image if nothing is found matching the icon name

getEmoticon

public Icon getEmoticon(java.lang.String symbol)
Retrieve an emoticon for a particular icon name. If no icon matches, an icon that draws no image, will be returned.

Specified by:
getEmoticon in interface IconManager
Parameters:
symbol - the symbol representing the emoticon to retrieve
Returns:
the appropriate emoticon, or an icon that draws no image if nothing is found matching the supplied symbol

getEmoticonSymbols

public java.lang.String[] getEmoticonSymbols()
Retrieve all the available emoticon symbols

Specified by:
getEmoticonSymbols in interface IconManager
Returns:
all the available emoticon symbols

getIconsMap

protected java.util.Map<java.lang.String,Icon> getIconsMap()

getEmoticonsMap

protected java.util.Map<java.lang.String,Icon> getEmoticonsMap()


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.