/** Get a property in the singleton. Values are shared among all instances of the same class. * The special tokens {@link Action#NAME}, {@link Action#SMALL_ICON} and "iconBase" are also recognized * and delegated to {@link #getName}, {@link #getIcon} and {@link #iconResource} resp. * @param name the name of the property * @return the value */ public final Object getValue(String name) { if ("iconBase".equals(name)) { // NOI18N return iconResource(); } Object val = getProperty(name); if (val == null) { if (NAME.equals(name)) { val = getName(); } else if (SMALL_ICON.equals(name)) { val = getIcon(); } } return val; }
String resName = iconResource();
/** Get a property in the singleton. Values are shared among all instances of the same class. * The special tokens {@link Action#NAME}, {@link Action#SMALL_ICON} and "iconBase" are also recognized * and delegated to {@link #getName}, {@link #getIcon} and {@link #iconResource} resp. * @param name the name of the property * @return the value */ public final Object getValue(String name) { if ("iconBase".equals(name)) { // NOI18N return iconResource(); } Object val = getProperty(name); if (val == null) { if (NAME.equals(name)) { val = getName(); } else if (SMALL_ICON.equals(name)) { val = getIcon(); } } return val; }
String resName = iconResource();
/** Get a property in the singleton. Values are shared among all instances of the same class. * The special tokens {@link Action#NAME}, {@link Action#SMALL_ICON} and "iconBase" are also recognized * and delegated to {@link #getName}, {@link #getIcon} and {@link #iconResource} resp. * @param name the name of the property * @return the value */ public final Object getValue (String name) { if ("iconBase".equals(name)) { // NOI18N return iconResource(); } Object val = getProperty (name); if (val == null) { if (NAME.equals (name)) val = getName (); else if (SMALL_ICON.equals (name)) val = getIcon (); } return val; }
/** Get a property in the singleton. Values are shared among all instances of the same class. * The special tokens {@link Action#NAME}, {@link Action#SMALL_ICON} and "iconBase" are also recognized * and delegated to {@link #getName}, {@link #getIcon} and {@link #iconResource} resp. * @param name the name of the property * @return the value */ public final Object getValue(String name) { if ("iconBase".equals(name)) { // NOI18N return iconResource(); } Object val = getProperty(name); if (val == null) { if (NAME.equals(name)) { val = getName(); } else if (SMALL_ICON.equals(name)) { val = getIcon(); } } return val; }
/** Get a property in the singleton. Values are shared among all instances of the same class. * The special tokens {@link Action#NAME}, {@link Action#SMALL_ICON} and "iconBase" are also recognized * and delegated to {@link #getName}, {@link #getIcon} and {@link #iconResource} resp. * @param name the name of the property * @return the value */ public final Object getValue (String name) { if ("iconBase".equals(name)) { // NOI18N return iconResource(); } Object val = getProperty (name); if (val == null) { if (NAME.equals (name)) val = getName (); else if (SMALL_ICON.equals (name)) val = getIcon (); } return val; }
/** Get a property in the singleton. Values are shared among all instances of the same class. * The special tokens {@link Action#NAME}, {@link Action#SMALL_ICON} and "iconBase" are also recognized * and delegated to {@link #getName}, {@link #getIcon} and {@link #iconResource} resp. * @param name the name of the property * @return the value */ public final Object getValue(String name) { if ("iconBase".equals(name)) { // NOI18N return iconResource(); } Object val = getProperty(name); if (val == null) { if (NAME.equals(name)) { val = getName(); } else if (SMALL_ICON.equals(name)) { val = getIcon(); } } return val; }
String resName = iconResource();
String resName = iconResource();
if (img == null) { String resName = iconResource ();
if (img == null) { String resName = iconResource ();