boolean containsReadOnlyConfigurationAsListener() { if (listeners == null) return false; for (ValueListener listener : listeners) { if (listener instanceof Configuration && ((Configuration)listener).isReadOnly()) return true; } return false; }
boolean containsReadOnlyConfigurationAsListener() { if (listeners == null) return false; for (ValueListener listener : listeners) { if (listener instanceof Configuration && ((Configuration)listener).isReadOnly()) return true; } return false; }
boolean containsReadOnlyConfigurationAsListener() { if (listeners == null) return false; for (ValueListener listener : listeners) { if (listener instanceof Configuration && ((Configuration)listener).isReadOnly()) return true; } return false; }
/** * Asserts if this receiver can be changed. * Subclasses <em>must</em> invoke this method before changing its * internal state. * * This receiver can not be changed if all of the following is true * <LI>this receiver is not dynamic * <LI>ValueListener attached to this receiver is a Configuration * <LI>Configuration is read-only */ protected void assertChangeable() { if (!isDynamic() && listen instanceof Configuration && ((Configuration)listen).isReadOnly()) { throw new RuntimeException(s_loc.get("veto-change", this.getProperty()).toString()); } }