- @Override
- public String toString() {
- return wrappedNode.toString() + (defaultNode ? " (default)" : "");
- }
-
- }
-
- /**
- * List model for the {@link ManageNodesDialog#nodeList}. TODO
- *
- * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
- */
- private class NodeListModel extends AbstractListModel {
-
- /** The list of wrapped nodes. */
- @SuppressWarnings("hiding")
- private List<NodeWrapper> nodeList = Collections.emptyList();
-
- /**
- * Creates a new node list model.
- */
- public NodeListModel() {
- }
-
- /**
- * Sets the new node list.
- *
- * @param nodeList
- * The list of nodes to display
- */
- public void setNodeList(List<NodeWrapper> nodeList) {
- this.nodeList = nodeList;
- fireContentsChanged(this, 0, nodeList.size() - 1);