1 26 27 package org.objectweb.util.browser.core.popup; 28 29 import javax.swing.KeyStroke ; 30 31 import org.objectweb.util.browser.api.IconProvider; 32 33 39 public class ItemProperty { 40 41 47 48 protected String label_; 49 50 51 protected String className_; 52 53 54 protected boolean treeChildVisible_; 55 56 57 protected boolean typeChildVisible_; 58 59 60 protected IconProvider iconProvider_; 61 62 63 protected KeyStroke keyStroke_; 64 65 66 protected Character mnemonic_; 67 68 74 81 public ItemProperty(String label, String className) { 82 this(label, className, false, true); 83 } 84 85 92 public ItemProperty(String label, String className, boolean treeChildVisible, boolean typeChildVisible) { 93 this(label,className,treeChildVisible,typeChildVisible,null, null, null); 94 } 95 96 104 public ItemProperty(String label, String className, boolean treeChildVisible, boolean typeChildVisible, IconProvider iconProvider, KeyStroke keyStroke, Character mnemonic) { 105 label_ = label; 106 className_ = className; 107 treeChildVisible_ = treeChildVisible; 108 typeChildVisible_ = typeChildVisible; 109 if(iconProvider!=null) 110 iconProvider_ = iconProvider; 111 keyStroke_ = keyStroke; 112 mnemonic_ = mnemonic; 113 } 114 115 121 127 131 public String getLabel() { 132 return label_; 133 } 134 135 139 public String getClassName() { 140 return className_; 141 } 142 143 147 public boolean isTreeChildVisible() { 148 return treeChildVisible_; 149 } 150 151 155 public boolean isTypeChildVisible() { 156 return typeChildVisible_; 157 } 158 159 163 public IconProvider getIconProvider() { 164 return iconProvider_; 165 } 166 167 171 public KeyStroke getKeyStroke() { 172 return keyStroke_; 173 } 174 175 179 public Character getMnemonic() { 180 return mnemonic_; 181 } 182 } 183 | Popular Tags |