Revision 10992 trunk/frameworks/_fwAndami/src/com/iver/andami/iconthemes/IconTheme.java
IconTheme.java | ||
---|---|---|
51 | 51 |
import org.apache.log4j.Logger; |
52 | 52 |
|
53 | 53 |
import com.iver.andami.PluginServices; |
54 |
import com.iver.andami.messages.Messages; |
|
55 | 54 |
|
56 | 55 |
/** |
57 | 56 |
* <p>This class represents an icon theme, which is basically a mapping of |
... | ... | |
331 | 330 |
} |
332 | 331 |
} |
333 | 332 |
} |
333 |
|
|
334 |
/** |
|
335 |
* Return the URL which is currently associated with the |
|
336 |
* provided icon name, if this icon was registered as an |
|
337 |
* URL, or <code>null</code> if it is not present in the theme |
|
338 |
* or it was registred as an IconImage. |
|
339 |
* |
|
340 |
* @param iconName |
|
341 |
* @return The URL which is currently associated with the |
|
342 |
* provided icon name, if this icon was registered as an |
|
343 |
* URL, or <code>null</code> if it is not present in the theme |
|
344 |
* or it was registred as an IconImage. |
|
345 |
*/ |
|
346 |
public URL getURL(String iconName) { |
|
347 |
Object object = iconList.get(iconName); |
|
348 |
if (object !=null && object instanceof URL) |
|
349 |
return (URL) object; |
|
350 |
return null; |
|
351 |
} |
|
334 | 352 |
} |
Also available in: Unified diff