|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a plugin that provides randomly selected quotes or nonsense, for being appended to a text message.
Field Summary | |
static java.lang.String |
TYPE_NONE
Defines a type that will flag that a user does not want anything to be appended to his email. |
Method Summary | |
java.lang.String |
getRandomAppend(java.lang.String type,
java.util.Locale locale)
Returns a randomly selected quote or nonsense for being appended to a message in a given Locale. |
java.lang.String[] |
listAppendTypes(java.util.Locale locale)
Returns a list of random append type identifiers this plugin can provide for a given Locale. |
boolean |
supportsAppendType(java.lang.String type,
java.util.Locale loc)
Tests whether this RandomAppendPlugin supports a given append type for a given Locale. |
Methods inherited from interface dtw.webmail.plugin.JwmaPlugin |
activate, deactivate |
Field Detail |
public static final java.lang.String TYPE_NONE
Method Detail |
public java.lang.String getRandomAppend(java.lang.String type, java.util.Locale locale)
type
- a String representing a type
what will be appended.locale
- the locale to be used for the append.
public java.lang.String[] listAppendTypes(java.util.Locale locale)
locale
- the Locale to be used.
public boolean supportsAppendType(java.lang.String type, java.util.Locale loc)
Note:
If the method returns false, the setting will
automatically be TYPE_NONE, which
will tell the application logic, that nothing
is to be appended.
type
- a String representing an
append type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |