Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E73B76774 for ; Tue, 7 Jun 2011 07:18:14 +0000 (UTC) Received: (qmail 25143 invoked by uid 500); 7 Jun 2011 07:18:14 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 25108 invoked by uid 500); 7 Jun 2011 07:18:14 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 25100 invoked by uid 99); 7 Jun 2011 07:18:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 07:18:14 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.159.29.9] (HELO mailstore05.sysedata.no) (195.159.29.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 07:18:05 +0000 Received: from [195.159.98.68] (helo=[10.0.1.172]) by mailstore05.sysedata.no with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QTqXp-0006FC-7d for user@pivot.apache.org; Tue, 07 Jun 2011 09:17:45 +0200 Message-ID: <4DEDD0A4.4070805@sysedata.no> Date: Tue, 07 Jun 2011 09:17:56 +0200 From: Edvin Syse User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nb-NO; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: user@pivot.apache.org Subject: How do I update a node in a TreeView when it has no parent? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Updating a node that has a parent, even changing it from a TreeNode to a BranchNode is trivial via det node.getParent().update() method. But when a node is at the root of the hierarchy, I don't have a parent to call update on. I guess I need to invoke some listener on the TreeView itselv, but how? :) -- Edvin