Пример #1
0
 /**
  * Remove the behavior entry with the specified name.
  *
  * @param behvName the name of the behavior to remove.
  */
 public void removeBehaviorMix(String behvName) {
   PropertyIterator iter = getBehaviorMix().iterator();
   while (iter.hasNext()) {
     BehaviorMixEntry behv = (BehaviorMixEntry) iter.next().getObjectValue();
     if (behv.getName().equals(behvName)) {
       iter.remove();
     }
   }
 }
Пример #2
0
 /**
  * Remove the specified behavior entry from the list.
  *
  * @param behv the entry to remove.
  */
 public void removeBehaviorMix(BehaviorMixEntry behv) {
   PropertyIterator iter = getBehaviorMix().iterator();
   while (iter.hasNext()) {
     BehaviorMixEntry item = (BehaviorMixEntry) iter.next().getObjectValue();
     if (behv.equals(item)) {
       iter.remove();
     }
   }
 }