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 D4BD6D909 for ; Tue, 11 Sep 2012 17:08:08 +0000 (UTC) Received: (qmail 81856 invoked by uid 500); 11 Sep 2012 17:08:08 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 81815 invoked by uid 500); 11 Sep 2012 17:08:08 -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 81805 invoked by uid 99); 11 Sep 2012 17:08:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2012 17:08:08 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [72.167.82.88] (HELO p3plsmtpa01-08.prod.phx3.secureserver.net) (72.167.82.88) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Sep 2012 16:30:35 +0000 Received: (qmail 19183 invoked from network); 11 Sep 2012 16:26:42 -0000 Received: from unknown (76.232.9.232) by p3plsmtpa01-08.prod.phx3.secureserver.net (72.167.82.88) with ESMTP; 11 Sep 2012 16:26:39 -0000 Message-ID: <504F663E.2030706@rbwhitcomb.com> Date: Tue, 11 Sep 2012 09:26:38 -0700 From: Roger and Beth Whitcomb User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: user@pivot.apache.org Subject: Re: Process meter presentation problem References: <2BF11E2280E7F34A81940048EBA222F033E22B3950@svrmx01.ADV.BIZ> <6152BDF053E74643B4C0A41150F5ADC34632AA@USINVMAILB01.ingres.prv> <2BF11E2280E7F34A81940048EBA222F033E2307419@svrmx01.ADV.BIZ> <6152BDF053E74643B4C0A41150F5ADC3463349@USINVMAILB01.ingres.prv> <2BF11E2280E7F34A81940048EBA222F033E230741C@svrmx01.ADV.BIZ> <2BF11E2280E7F34A81940048EBA222F033E230741F@svrmx01.ADV.BIZ> <2BF11E2280E7F34A81940048EBA222F033E23077E7@svrmx01.ADV.BIZ> In-Reply-To: <2BF11E2280E7F34A81940048EBA222F033E23077E7@svrmx01.ADV.BIZ> Content-Type: multipart/alternative; boundary="------------010503010506020104050102" This is a multi-part message in MIME format. --------------010503010506020104050102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hmm, it should be enough just to make it visible or not visible. I just did it this way, just because .... But, you should try it. I'm not aware of any bug. If it works, then I can change my code ;) Thanks, ~Roger Whitcomb On 9/11/12 6:54 AM, Camilo Casadiego wrote: > > I was checking my code, and I was wondering why I have to remove and > re-add the component? shouldn't it be enougth to just activate or > desactivate? is it a bug? if it is how can I work on it? (I already > have the pivot sources) > > *De:*Camilo Casadiego [mailto:Camilo.Casadiego@adv.co] > *Enviado el:* Thursday, September 06, 2012 7:38 PM > *Para:* user@pivot.apache.org > *Asunto:* RE: Process meter presentation problem > > I'm really sorry please ignore my last email, It was just a overwork > error (just missed something really simple) > > *De:*Camilo Casadiego [mailto:Camilo.Casadiego@adv.co] > *Enviado el:* Thursday, September 06, 2012 7:21 PM > *Para:* user@pivot.apache.org > *Asunto:* RE: Process meter presentation problem > > Hi there Roger...thank you very much for your answer, actually after I > got some success, I started checking some options and tried the one > you are just telling me, and now my code looks like this: > > > > > > > > > > The contents are loaded programmatically, but the stackpane stills the > parent object, the code to show or hide the activity is this one... > > *public**void*activateWaitAction(){ > > System./out/.println(baseFrame.getActivityIndicator().isShowing()); > > baseFrame.getActivityIndicator().repaint(); > > baseFrame.getActivityIndicator().requestFocus(); > > baseFrame.getActivityIndicator().setActive(*true*); > > baseFrame.setEnabled(*false*); > > } > > *public**void*releaseWaitAction(){ > > baseFrame.getActivityIndicator().setActive(*false*); > > baseFrame.setEnabled(*true*); > > } > > and I keep a reference to the baseframe through a singleton, the first > time I call the activateWaitAction, it works like a charm, but in the > subsequent calls, it never shows the indicator again ;( > > the print for isShowing sais true all the time, I also checked the > index of the activityIndicator into the stack and is always zero. > > The contents is a panel that is build according to which company is > selected. > > My first attemp was without the repaint and stuff, but no differences > any ideas? > > *De:*Roger L. Whitcomb [mailto:Roger.Whitcomb@actian.com] > *Enviado el:* Thursday, September 06, 2012 7:00 PM > *Para:* user@pivot.apache.org > *Asunto:* RE: Process meter presentation problem > > So, we do something similar. What works is to have a StackPane that > is the parent of your workspace. Then you can add a new component > that has the ActivityIndication as a child of the StackPane, then > remove that child when you're done (revealing the original > component). Here's what our code looks like: > > > > verticalScrollBarPolicy="fill_to_capacity"> > >