/** * Searches all bundles for the specified key and returns the value for the * first match or null if the key is not found. */ public String getImageFromBundles(String key) { if (key != null) { Iterator<mxImageBundle> it = imageBundles.iterator(); while (it.hasNext()) { String value = it.next().getImage(key); if (value != null) { return value; } } } return null; }
/** * Searches all bundles for the specified key and returns the value for the * first match or null if the key is not found. */ public String getImageFromBundles(String key) { if (key != null) { Iterator<mxImageBundle> it = imageBundles.iterator(); while (it.hasNext()) { String value = it.next().getImage(key); if (value != null) { return value; } } } return null; }