Exemplo n.º 1
0
 /** @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);
 }
Exemplo n.º 2
0
 /**
  * @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;
 }