Пример #1
0
 @Override
 public void elementRemoved(ListEvent<CompanionFacade> e) {
   String type = e.getElement().getCompanionType();
   int index = Collections.binarySearch(types, type, Comparators.toStringIgnoreCaseCollator());
   CompanionTypeNode child = (CompanionTypeNode) getChildAt(index);
   child.removeCompanion(e.getElement());
 }
Пример #2
0
 @Override
 public void elementAdded(ListEvent<CompanionFacade> e) {
   addCompanion(e.getElement(), false);
 }