1 26 27 package org.objectweb.util.browser.core.icon; 28 29 30 import org.objectweb.util.browser.api.Entry; 31 import org.objectweb.util.browser.api.IconProvider; 32 import org.objectweb.util.browser.core.api.BrowserProperty; 33 import org.objectweb.util.browser.core.api.Role; 34 import org.objectweb.util.browser.core.common.DefaultPropertyContainer; 35 import org.objectweb.util.browser.core.common.ExtendedBoolean; 36 37 43 public class IconPropertyContainer extends DefaultPropertyContainer { 44 45 51 57 61 public IconPropertyContainer(BrowserProperty loader) { 62 super(loader); 63 } 64 65 71 76 protected Entry getElement(String className, Role role, ExtendedBoolean nodeFound) { 77 return loader_.getIcon(className, role, nodeFound); 78 } 79 80 87 protected void addEntry(String id, IconProvider object) { 88 super.addEntry(id, object); 89 } 90 91 97 106 public void addEntry(String id, Object object) { 107 if (object != null) { 108 addEntry(id, (IconProvider) object); 109 } 110 } 111 112 } 113 | Popular Tags |