public void remove(Object[] links) { for (int i = 0; i < links.length; i++) { disposeLink(links[i]); } updateMoreState(linkContainer.getChildren().length > linkNumberLimit); reflow(); }
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; }
@Override public void refresh() { // dispose old links Control[] children = linkContainer.getChildren(); for (int i = 0; i < children.length; i++) { children[i].dispose(); } createLinks(); reflow(); }