public interface IconInterface
Important note: Do not provide an implementation of this interface unless you are a DD API provider!
Modifier and Type | Method and Description |
---|---|
Map |
getAllIcons()
Returns all icon elements in the form of
Map . |
Icon |
getDefaultIcon()
Returns the icon element value for default locale.
|
String |
getLargeIcon()
Returns the large-icon element value for default locale.
|
String |
getLargeIcon(String locale)
Returns the large-icon element value for particular locale.
If locale=null method returns large-icon for default locale. |
String |
getSmallIcon()
Returns the small-icon element value for default locale.
|
String |
getSmallIcon(String locale)
Returns the small-icon element value for particular locale.
If locale=null method returns small-icon for default locale. |
void |
removeAllIcons()
Removes all icon elements from DD element.
|
void |
removeIcon()
Removes icon element for default locale.
|
void |
removeIcon(String locale)
Removes the icon element for particular locale.
|
void |
removeLargeIcon()
Removes large-icon element for default locale.
|
void |
removeLargeIcon(String locale)
Removes the large-icon element for particular locale.
|
void |
removeSmallIcon()
Removes small-icon element for default locale.
|
void |
removeSmallIcon(String locale)
Removes the small-icon element for particular locale.
|
void |
setAllIcons(String[] locales,
String[] smallIcons,
String[] largeIcons)
Sets the multiple icon elements.
|
void |
setIcon(Icon icon)
Sets the icon element.
|
void |
setLargeIcon(String icon)
Sets the large-icon element value for icon element where xml:lang attribute is not specified.
|
void |
setLargeIcon(String locale,
String icon)
Sets the large-icon element value for particular locale.
If locale=null the method sets the large-icon value for icon element where xml:lang attribute is not specified. If icon=null method removes the large-icon element for a specified locale. |
void |
setSmallIcon(String icon)
Sets the small-icon element value for icon element where xml:lang attribute is not specified.
|
void |
setSmallIcon(String locale,
String icon)
Sets the small-icon element value for particular locale.
If locale=null the method sets the small-icon value for icon element where xml:lang attribute is not specified. If icon=null method removes the small-icon element for a specified locale. |
void setSmallIcon(String locale, String icon) throws VersionNotSupportedException
locale
- string representing the locale - the value for xml:lang attribute e.g. "fr"icon
- value for small-icon elementVersionNotSupportedException
void setSmallIcon(String icon)
icon
- value for small-icon elementvoid setLargeIcon(String locale, String icon) throws VersionNotSupportedException
locale
- string representing the locale - the value for xml:lang attribute e.g. "fr"icon
- value for large-icon elementVersionNotSupportedException
void setLargeIcon(String icon)
icon
- value for large-icon elementvoid setAllIcons(String[] locales, String[] smallIcons, String[] largeIcons) throws VersionNotSupportedException
locales
- array of locales (xml:lang attribute values for icon elements)smallIcons
- array of values for small-icon elementslargeIcons
- array of values for large-icon elementsVersionNotSupportedException
void setIcon(Icon icon)
icon
- value for icon elementString getSmallIcon(String locale) throws VersionNotSupportedException
locale
- string representing the locale - the value of xml:lang attribute e.g. "fr".VersionNotSupportedException
String getSmallIcon()
String getLargeIcon(String locale) throws VersionNotSupportedException
locale
- string representing the locale - the value of xml:lang attribute e.g. "fr".VersionNotSupportedException
String getLargeIcon()
Icon getDefaultIcon()
Map getAllIcons()
Map
.void removeSmallIcon(String locale) throws VersionNotSupportedException
locale
- string representing the locale - the value of xml:lang attribute e.g. "fr"VersionNotSupportedException
void removeLargeIcon(String locale) throws VersionNotSupportedException
locale
- string representing the locale - the value of xml:lang attribute e.g. "fr"VersionNotSupportedException
void removeIcon(String locale) throws VersionNotSupportedException
locale
- string representing the locale - the value of xml:lang attribute e.g. "fr"VersionNotSupportedException
void removeSmallIcon()
void removeLargeIcon()
void removeIcon()
void removeAllIcons()