|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.policy.AbstractPolicyFilter
com.jalios.jcms.policy.BasicWikiPolicyFilter
com.jalios.jcmsplugin.smiley.SmileyWikiPolicyFilter
public class SmileyWikiPolicyFilter
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter |
---|
order |
Constructor Summary | |
---|---|
SmileyWikiPolicyFilter()
|
Method Summary | |
---|---|
String |
beforeRendering(String text,
Locale userLocale,
WikiRenderingHints hints)
Convert all emoticons in the given text to smileys. |
String |
getEmoticonIcon(String emoticon)
Retrieves the relative smiley's icon path of an emoticon. |
String |
getEmoticonLabel(String emoticon,
String lang)
Retrieves the I18N label to use for an emoticon. |
List |
getEmoticonList()
Retrieves a list of all emoticons managed by this wiki policy filter. |
String |
getEmoticonName(String emoticon)
Retrieve the internal name of an emoticon. |
static SmileyWikiPolicyFilter |
getInstance()
Retrieves the instance of SmileyWikiPolicyFilter being used to perform emoticon to smiley conversion. |
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration |
void |
propertiesChange(JProperties properties)
|
protected void |
reloadProperties()
Load smiley plugin properties and update internal variable used by this wiki policy filter for emoticon to smiley conversion. |
Methods inherited from class com.jalios.jcms.policy.BasicWikiPolicyFilter |
---|
afterRendering |
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter |
---|
compareTo, equals, getOrder, setOrder |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jalios.jcms.policy.WikiPolicyFilter |
---|
afterRendering |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public SmileyWikiPolicyFilter()
Method Detail |
---|
public static SmileyWikiPolicyFilter getInstance()
protected void reloadProperties()
public List getEmoticonList()
public String getEmoticonName(String emoticon)
emoticon
- an emoticon, e.g. : ":)"
"smile"
public String getEmoticonIcon(String emoticon)
emoticon
- an emoticon, e.g. : ":)"
"smile"
public String getEmoticonLabel(String emoticon, String lang)
emoticon
- an emoticon, e.g. : ":)"
lang
- an ISO-639 code in which to retrieve the label
"Smiling"
public boolean init(Plugin plugin)
PluginComponent
init
in interface PluginComponent
init
in class BasicWikiPolicyFilter
plugin
- the calling plugin
PluginComponent.init(Plugin)
public void propertiesChange(JProperties properties)
propertiesChange
in interface JPropertiesListener
JPropertiesListener.propertiesChange(JProperties)
public String beforeRendering(String text, Locale userLocale, WikiRenderingHints hints)
beforeRendering
in interface WikiPolicyFilter
beforeRendering
in class BasicWikiPolicyFilter
text
- the text to be rendered.userLocale
- an optionnal Locale
of the user for which the text will be generatedhints
- the rendering options to use.
WikiPolicyFilter.beforeRendering(String, Locale, WikiRenderingHints)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |