/** @param sub The sub configuration to remove from this configuration */ public void removeSubConfig(MutableConfig sub) { theSubConfigs = prisms.util.ArrayUtils.remove(theSubConfigs, sub); if (sub.theParent == this) sub.theParent = null; sub.removeListener(theSubConfigListener); }
/** * @param sub The sub configuration to add to this configuration * @return The added config, for chaining */ public MutableConfig addSubConfig(MutableConfig sub) { theSubConfigs = prisms.util.ArrayUtils.add(theSubConfigs, sub); sub.theParent = this; sub.addListener(theSubConfigListener); return sub; }