Exemplo n.º 1
0
 public void remove(Object[] links) {
   for (int i = 0; i < links.length; i++) {
     disposeLink(links[i]);
   }
   updateMoreState(linkContainer.getChildren().length > linkNumberLimit);
   reflow();
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
 }