示例#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);
 }