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 8CC9F19247 for ; Thu, 14 Apr 2016 17:23:41 +0000 (UTC) Received: (qmail 85427 invoked by uid 500); 14 Apr 2016 17:23:41 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 85402 invoked by uid 500); 14 Apr 2016 17:23:41 -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 85392 invoked by uid 99); 14 Apr 2016 17:23:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 17:23:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EBD0118044B for ; Thu, 14 Apr 2016 17:23:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.98 X-Spam-Level: X-Spam-Status: No, score=0.98 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id txjr1eDFi2WA for ; Thu, 14 Apr 2016 17:23:40 +0000 (UTC) Received: from p3plsmtpa11-07.prod.phx3.secureserver.net (p3plsmtpa11-07.prod.phx3.secureserver.net [68.178.252.108]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DE6505FAEA for ; Thu, 14 Apr 2016 17:23:39 +0000 (UTC) Received: from Roger-Whitcombs-iMac.local ([24.6.166.18]) by p3plsmtpa11-07.prod.phx3.secureserver.net with id iHPY1s00G0Q8UT401HPYnH; Thu, 14 Apr 2016 10:23:32 -0700 X-Sender: RogerandBeth Subject: Re: MVC application To: user@pivot.apache.org References: <56B8B872.9080508@rbwhitcomb.com> <37460E92-A23B-4401-995F-9F8984D0DED3@soaringclub.org> <6DA5D2AC-DA4B-4C35-999A-BB33A8520487@soaringclub.org> <14857736-D998-49DA-A710-B7DBF2614077@soaringclub.org> From: Roger and Beth Whitcomb Message-ID: <570FD213.2010205@rbwhitcomb.com> Date: Thu, 14 Apr 2016 10:23:31 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <14857736-D998-49DA-A710-B7DBF2614077@soaringclub.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hey Tom, I'm not sure what you mean by a "detached MVC approach". IMO the "store" method of RowEditor is the canonical place to do the update -- this is what is meant to happen there. Can you do the parse beforehand and store some intermediate representation? That would be my first thought, without knowing more about the whole process. Thanks, ~Roger On 4/14/16 9:53 AM, Tom Coleman wrote: > Can someone please share some thoughts on an MVC approach to this application using Pivot? > > The question arises from trying to figure out how best to rewrite data changed by a TableViewRowEditor. > > Data underlying the model is a sequence of bytes, the position and length of which can represent different data types. These can be parsed and converted to TableData objects (the model?) which can be rendered and edited as Pivot ListButtons, TextInputs, and Checkboxes. > The parse is expensive and the position and length data can be stored in the TableData cell to facilitate the rewrite. > > I can probably rewrite the data as part of the "store" process in the RowEditor, but can someone suggest a more detached MVC approach? > > Thanks > > > > > > > > > > > > >