summaryrefslogtreecommitdiffstats
path: root/settings/l10n/mn.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/l10n/mn.js')
0 files changed, 0 insertions, 0 deletions
class="p">} /** * Returns the mime type. * @return The mime type */ public String getMimeType() { return mimeType; } private void setMimeType(String mimeType) { this.mimeType = mimeType; } /** * Returns the class from the first available provider. * @return The first available class or null if none can be found */ public Class getFirstImplementingClass() { if (providers == null) { return null; } for (Iterator it = providers.iterator(); it.hasNext();) { ImageProvider ip = (ImageProvider)it.next(); Class clazz = ip.getImplementingClass(); if (clazz != null) { return clazz; } } return null; } /** * Adds a new provider. * The provider is added to the end of the current provider list. * @param The new provider to add */ public void addProvider(ImageProvider provider) { if (providers == null) { providers = new ArrayList(4); // Assume we only have a few providers } if (!providers.contains(provider)) { providers.add(provider); } } }