Пример #1
0
 public void remove(Object[] links) {
   for (int i = 0; i < links.length; i++) {
     disposeLink(links[i]);
   }
   updateMoreState(linkContainer.getChildren().length > linkNumberLimit);
   reflow();
 }
Пример #2
0
 private Hyperlink find(Object object) {
   Control[] children = linkContainer.getChildren();
   for (int i = 0; i < children.length; i++) {
     Control child = children[i];
     if (child.getData().equals(object)) return (Hyperlink) child;
   }
   return null;
 }
Пример #3
0
 @Override
 public void refresh() {
   // dispose old links
   Control[] children = linkContainer.getChildren();
   for (int i = 0; i < children.length; i++) {
     children[i].dispose();
   }
   createLinks();
   reflow();
 }